@@ -1717,7 +1717,7 @@ |
||
1717 | 1717 | if ($endjd === $startjd) { |
1718 | 1718 | $html .= I18N::translate('No events exist for tomorrow.'); |
1719 | 1719 | } else { |
1720 | - $html .= /* I18N: translation for %s==1 is unused; it is translated separately as “tomorrow” */ I18N::plural('No events exist for the next %s day.', 'No events exist for the next %s days.', $endjd - $startjd + 1, I18N::number($endjd - $startjd + 1)); |
|
1720 | + $html .= /* I18N: translation for %s==1 is unused; it is translated separately as “tomorrow” */ I18N::plural('No events exist for the next %s day.', 'No events exist for the next %s days.', $endjd - $startjd + 1, I18N::number($endjd - $startjd + 1)); |
|
1721 | 1721 | } |
1722 | 1722 | } else { |
1723 | 1723 | if ($endjd === $startjd) { |
@@ -85,8 +85,7 @@ |
||
85 | 85 | // Create the underlying PDO object |
86 | 86 | self::$pdo = new PDO( |
87 | 87 | (substr($DBHOST, 0, 1) === '/' ? |
88 | - "mysql:unix_socket={$DBHOST};dbname={$DBNAME}" : |
|
89 | - "mysql:host={$DBHOST};dbname={$DBNAME};port={$DBPORT}" |
|
88 | + "mysql:unix_socket={$DBHOST};dbname={$DBNAME}" : "mysql:host={$DBHOST};dbname={$DBNAME};port={$DBPORT}" |
|
90 | 89 | ), |
91 | 90 | $DBUSER, $DBPASS, |
92 | 91 | [ |
@@ -106,7 +106,7 @@ |
||
106 | 106 | if (!empty($menu->getSubmenus())) { |
107 | 107 | // Insert a dummy menu / label into the submenu |
108 | 108 | $submenus = $menu->getSubmenus(); |
109 | - array_unshift($submenus, new Menu($menu->getLabel(), null, null, [ 'onclick' => 'return false;'])); |
|
109 | + array_unshift($submenus, new Menu($menu->getLabel(), null, null, ['onclick' => 'return false;'])); |
|
110 | 110 | $menu->setSubmenus($submenus); |
111 | 111 | } |
112 | 112 |
@@ -1505,7 +1505,7 @@ |
||
1505 | 1505 | '0' => I18N::translateContext('Show the [first/last] [N] parts of a place name.', 'first'), |
1506 | 1506 | '1' => I18N::translateContext('Show the [first/last] [N] parts of a place name.', 'last'), |
1507 | 1507 | ], $WT_TREE->getPreference('SHOW_PEDIGREE_PLACES_SUFFIX', ['name' => 'SHOW_PEDIGREE_PLACES_SUFFIX'])), |
1508 | - Bootstrap4::select(FunctionsEdit::numericOptions(range(1,9)), $WT_TREE->getPreference('SHOW_PEDIGREE_PLACES'), ['name' => 'SHOW_PEDIGREE_PLACES']) |
|
1508 | + Bootstrap4::select(FunctionsEdit::numericOptions(range(1, 9)), $WT_TREE->getPreference('SHOW_PEDIGREE_PLACES'), ['name' => 'SHOW_PEDIGREE_PLACES']) |
|
1509 | 1509 | ) ?> |
1510 | 1510 | <p class="small text-muted"> |
1511 | 1511 | <?= /* I18N: Help text for the “Abbreviate place names” configuration setting */ I18N::translate('Place names are frequently too long to fit on charts, lists, etc. They can be abbreviated by showing just the first few parts of the name, such as <i>village, county</i>, or the last few part of it, such as <i>region, country</i>.') ?> |
@@ -40,7 +40,7 @@ |
||
40 | 40 | $years -= $years % 5; |
41 | 41 | } |
42 | 42 | |
43 | - return (string)$years; |
|
43 | + return (string) $years; |
|
44 | 44 | } |
45 | 45 | } |
46 | 46 | } |
@@ -45,7 +45,7 @@ |
||
45 | 45 | if ($marriage_date === null) { |
46 | 46 | return ''; |
47 | 47 | } else { |
48 | - return (string)Date::getAge($marriage_date, $this->date(), 0); |
|
48 | + return (string) Date::getAge($marriage_date, $this->date(), 0); |
|
49 | 49 | } |
50 | 50 | } |
51 | 51 | } |
@@ -35,7 +35,7 @@ |
||
35 | 35 | if ($individual->getSex() === 'M') { |
36 | 36 | return ''; |
37 | 37 | } else { |
38 | - return (string)Date::getAge($individual->getEstimatedBirthDate(), $this->date(), 0); |
|
38 | + return (string) Date::getAge($individual->getEstimatedBirthDate(), $this->date(), 0); |
|
39 | 39 | } |
40 | 40 | } |
41 | 41 | } |
@@ -49,6 +49,6 @@ |
||
49 | 49 | } |
50 | 50 | } |
51 | 51 | |
52 | - return (string)$count; |
|
52 | + return (string) $count; |
|
53 | 53 | } |
54 | 54 | } |
@@ -35,7 +35,7 @@ |
||
35 | 35 | if ($individual->getSex() === 'F') { |
36 | 36 | return ''; |
37 | 37 | } else { |
38 | - return (string)Date::getAge($individual->getEstimatedBirthDate(), $this->date(), 0); |
|
38 | + return (string) Date::getAge($individual->getEstimatedBirthDate(), $this->date(), 0); |
|
39 | 39 | } |
40 | 40 | } |
41 | 41 | } |