diff options
| author | Greg Roach <fisharebest@webtrees.net> | 2018-08-19 17:21:53 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@webtrees.net> | 2018-08-19 20:11:50 +0100 |
| commit | 59f2f229057fe08ec1b09bd435699190641eed6a (patch) | |
| tree | edae798c5680447a9cb156d2eb1501b7b8079fa7 /app/Date | |
| parent | ac1dac2987a776a9b2f5335b448bfce186831f31 (diff) | |
| download | webtrees-59f2f229057fe08ec1b09bd435699190641eed6a.tar.gz webtrees-59f2f229057fe08ec1b09bd435699190641eed6a.tar.bz2 webtrees-59f2f229057fe08ec1b09bd435699190641eed6a.zip | |
CodeStyle
Diffstat (limited to 'app/Date')
| -rw-r--r-- | app/Date/FrenchDate.php | 2 | ||||
| -rw-r--r-- | app/Date/GregorianDate.php | 2 | ||||
| -rw-r--r-- | app/Date/HijriDate.php | 2 | ||||
| -rw-r--r-- | app/Date/JalaliDate.php | 2 | ||||
| -rw-r--r-- | app/Date/JewishDate.php | 8 | ||||
| -rw-r--r-- | app/Date/JulianDate.php | 2 |
6 files changed, 9 insertions, 9 deletions
diff --git a/app/Date/FrenchDate.php b/app/Date/FrenchDate.php index 9dcbf2a711..daaab7e1f8 100644 --- a/app/Date/FrenchDate.php +++ b/app/Date/FrenchDate.php @@ -51,7 +51,7 @@ class FrenchDate extends CalendarDate */ public function __construct($date) { - $this->calendar = new FrenchCalendar; + $this->calendar = new FrenchCalendar(); parent::__construct($date); } diff --git a/app/Date/GregorianDate.php b/app/Date/GregorianDate.php index b5ee587f75..3d34942a08 100644 --- a/app/Date/GregorianDate.php +++ b/app/Date/GregorianDate.php @@ -32,7 +32,7 @@ class GregorianDate extends CalendarDate */ public function __construct($date) { - $this->calendar = new GregorianCalendar; + $this->calendar = new GregorianCalendar(); parent::__construct($date); } } diff --git a/app/Date/HijriDate.php b/app/Date/HijriDate.php index 8008177597..d317301afa 100644 --- a/app/Date/HijriDate.php +++ b/app/Date/HijriDate.php @@ -53,7 +53,7 @@ class HijriDate extends CalendarDate */ public function __construct($date) { - $this->calendar = new ArabicCalendar; + $this->calendar = new ArabicCalendar(); parent::__construct($date); } diff --git a/app/Date/JalaliDate.php b/app/Date/JalaliDate.php index a20ca61369..dc0c9446e5 100644 --- a/app/Date/JalaliDate.php +++ b/app/Date/JalaliDate.php @@ -50,7 +50,7 @@ class JalaliDate extends CalendarDate */ public function __construct($date) { - $this->calendar = new PersianCalendar; + $this->calendar = new PersianCalendar(); parent::__construct($date); } diff --git a/app/Date/JewishDate.php b/app/Date/JewishDate.php index 8e200b7a5a..4e1fdd9791 100644 --- a/app/Date/JewishDate.php +++ b/app/Date/JewishDate.php @@ -51,7 +51,7 @@ class JewishDate extends CalendarDate */ public function __construct($date) { - $this->calendar = new JewishCalendar; + $this->calendar = new JewishCalendar(); parent::__construct($date); } @@ -63,7 +63,7 @@ class JewishDate extends CalendarDate protected function formatDay() { if (WT_LOCALE === 'he' || WT_LOCALE === 'yi') { - return (new JewishCalendar)->numberToHebrewNumerals($this->d, true); + return (new JewishCalendar())->numberToHebrewNumerals($this->d, true); } else { return $this->d; } @@ -80,7 +80,7 @@ class JewishDate extends CalendarDate protected function formatShortYear() { if (WT_LOCALE === 'he' || WT_LOCALE === 'yi') { - return (new JewishCalendar)->numberToHebrewNumerals($this->y, false); + return (new JewishCalendar())->numberToHebrewNumerals($this->y, false); } else { return $this->y; } @@ -94,7 +94,7 @@ class JewishDate extends CalendarDate protected function formatLongYear() { if (WT_LOCALE === 'he' || WT_LOCALE === 'yi') { - return (new JewishCalendar)->numberToHebrewNumerals($this->y, true); + return (new JewishCalendar())->numberToHebrewNumerals($this->y, true); } else { return $this->y; } diff --git a/app/Date/JulianDate.php b/app/Date/JulianDate.php index 86a1d18dbb..261b1e28f2 100644 --- a/app/Date/JulianDate.php +++ b/app/Date/JulianDate.php @@ -37,7 +37,7 @@ class JulianDate extends CalendarDate */ public function __construct($date) { - $this->calendar = new JulianCalendar; + $this->calendar = new JulianCalendar(); parent::__construct($date); } |
