@@ -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 | // This module has been deleted. |
| 5 | 5 | |
@@ -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) 2015 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) 2016 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 |
@@ -53,6 +53,6 @@ discard block |
||
| 53 | 53 | } |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | - return (string)$count; |
|
| 56 | + return (string) $count; |
|
| 57 | 57 | } |
| 58 | 58 | } |
@@ -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 |
@@ -3617,7 +3617,7 @@ discard block |
||
| 3617 | 3617 | $soundTableEntry = self::$dmsounds[$thisEntry]; |
| 3618 | 3618 | $workingResult = $partialResult; |
| 3619 | 3619 | $partialResult = []; |
| 3620 | - $currPos += strlen($thisEntry); |
|
| 3620 | + $currPos += strlen($thisEntry); |
|
| 3621 | 3621 | |
| 3622 | 3622 | // Not at beginning of input string |
| 3623 | 3623 | if ($state != 1) { |
@@ -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 |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | { |
| 216 | 216 | if ($analytics_id) { |
| 217 | 217 | // Add extra dimensions (i.e. filtering categories) |
| 218 | - $dimensions = (object)[ |
|
| 218 | + $dimensions = (object) [ |
|
| 219 | 219 | 'dimension1' => $this->tree ? $this->tree->getName() : '-', |
| 220 | 220 | 'dimension2' => $this->tree ? Auth::accessLevel($this->tree) : '-', |
| 221 | 221 | ]; |
@@ -277,7 +277,7 @@ discard block |
||
| 277 | 277 | if ($project_id && $security_id) { |
| 278 | 278 | return |
| 279 | 279 | '<script>' . |
| 280 | - 'var sc_project=' . (int)$project_id . ',sc_invisible=1,sc_security="' . $security_id . |
|
| 280 | + 'var sc_project=' . (int) $project_id . ',sc_invisible=1,sc_security="' . $security_id . |
|
| 281 | 281 | '",scJsHost = (("https:"===document.location.protocol)?"https://secure.":"http://www.");' . |
| 282 | 282 | 'document.write("<sc"+"ript src=\'"+scJsHost+"statcounter.com/counter/counter.js\'></"+"script>");' . |
| 283 | 283 | '</script>'; |
@@ -1783,7 +1783,7 @@ discard block |
||
| 1783 | 1783 | public function menuSearchPhonetic(): Menu |
| 1784 | 1784 | { |
| 1785 | 1785 | /* I18N: search using “sounds like”, rather than exact spelling */ |
| 1786 | - return new Menu(I18N::translate('Phonetic search'), route('search-phonetic', ['ged' => $this->tree->getName(), 'action' => 'soundex',]), 'menu-search-soundex', ['rel' => 'nofollow']); |
|
| 1786 | + return new Menu(I18N::translate('Phonetic search'), route('search-phonetic', ['ged' => $this->tree->getName(), 'action' => 'soundex', ]), 'menu-search-soundex', ['rel' => 'nofollow']); |
|
| 1787 | 1787 | } |
| 1788 | 1788 | |
| 1789 | 1789 | /** |
@@ -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 |
@@ -295,7 +295,7 @@ discard block |
||
| 295 | 295 | public static function getAll(): array |
| 296 | 296 | { |
| 297 | 297 | if (empty(self::$trees)) { |
| 298 | - $rows = Database::prepare( |
|
| 298 | + $rows = Database::prepare( |
|
| 299 | 299 | "SELECT g.gedcom_id AS tree_id, g.gedcom_name AS tree_name, gs1.setting_value AS tree_title" . |
| 300 | 300 | " FROM `##gedcom` g" . |
| 301 | 301 | " LEFT JOIN `##gedcom_setting` gs1 ON (g.gedcom_id=gs1.gedcom_id AND gs1.setting_name='title')" . |