@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | /** |
| 4 | 4 | * webtrees: online genealogy |
| 5 | 5 | * Copyright (C) 2018 webtrees development team |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | /** |
| 4 | 4 | * webtrees: online genealogy |
| 5 | 5 | * Copyright (C) 2018 webtrees development team |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | /** |
| 4 | 4 | * webtrees: online genealogy |
| 5 | 5 | * Copyright (C) 2018 webtrees development team |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | /** |
| 4 | 4 | * webtrees: online genealogy |
| 5 | 5 | * Copyright (C) 2018 webtrees development team |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | /** |
| 4 | 4 | * webtrees: online genealogy |
| 5 | 5 | * Copyright (C) 2018 webtrees development team |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | |
| 109 | 109 | // Construct from an array (of three gedcom-style strings: "1900", "FEB", "4") |
| 110 | 110 | if (is_array($date)) { |
| 111 | - $this->d = (int)$date[2]; |
|
| 111 | + $this->d = (int) $date[2]; |
|
| 112 | 112 | if (array_key_exists($date[1], static::$MONTH_ABBREV)) { |
| 113 | 113 | $this->m = static::$MONTH_ABBREV[$date[1]]; |
| 114 | 114 | } else { |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | $jd = $date->calendar->ymdToJd($today[0], $date->m, $date->d == 0 ? $today[2] : $date->d); |
| 156 | 156 | } else { |
| 157 | 157 | // Complete date |
| 158 | - $jd = (int)(($date->maxJD + $date->minJD) / 2); |
|
| 158 | + $jd = (int) (($date->maxJD + $date->minJD) / 2); |
|
| 159 | 159 | } |
| 160 | 160 | list($this->y, $this->m, $this->d) = $this->calendar->jdToYmd($jd); |
| 161 | 161 | // New date has same precision as original date |
@@ -962,7 +962,7 @@ discard block |
||
| 962 | 962 | { |
| 963 | 963 | if ($number < 1) { |
| 964 | 964 | // Cannot convert zero/negative numbers |
| 965 | - return (string)$number; |
|
| 965 | + return (string) $number; |
|
| 966 | 966 | } |
| 967 | 967 | $roman = ''; |
| 968 | 968 | foreach (self::$roman_numerals as $key => $value) { |
@@ -987,7 +987,7 @@ discard block |
||
| 987 | 987 | $num = 0; |
| 988 | 988 | foreach (self::$roman_numerals as $key => $value) { |
| 989 | 989 | if (strpos($roman, $value) === 0) { |
| 990 | - $num += $key; |
|
| 990 | + $num += $key; |
|
| 991 | 991 | $roman = substr($roman, strlen($value)); |
| 992 | 992 | } |
| 993 | 993 | } |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | /** |
| 4 | 4 | * webtrees: online genealogy |
| 5 | 5 | * Copyright (C) 2018 webtrees development team |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | /** |
| 4 | 4 | * webtrees: online genealogy |
| 5 | 5 | * Copyright (C) 2018 webtrees development team |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | /** |
| 4 | 4 | * webtrees: online genealogy |
| 5 | 5 | * Copyright (C) 2018 webtrees development team |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | /** |
| 4 | 4 | * webtrees: online genealogy |
| 5 | 5 | * Copyright (C) 2018 webtrees development team |