@@ -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 | array( |
@@ -2743,7 +2743,7 @@ |
||
2743 | 2743 | $tags = explode(':', $tag); |
2744 | 2744 | $origlevel = $level; |
2745 | 2745 | if ($level == 0) { |
2746 | - $level = $gedrec{0} + 1; |
|
2746 | + $level = $gedrec{0} +1; |
|
2747 | 2747 | } |
2748 | 2748 | |
2749 | 2749 | $subrec = $gedrec; |
@@ -57,14 +57,14 @@ |
||
57 | 57 | 'MADRI', 'MANAU', 'MANHA', 'MANIL', 'MANTI', 'MEDFO', 'MELBO', 'MEMPH', |
58 | 58 | 'MERID', 'MEXIC', 'MNTVD', 'MONTE', 'MONTI', 'MONTR', 'MTIMP', 'NASHV', |
59 | 59 | 'NAUV2', 'NAUVO', 'NBEAC', 'NUKUA', 'NYORK', 'NZEAL', 'OAKLA', 'OAXAC', |
60 | - 'OGDEN', 'OKLAH', 'OQUIR', 'ORLAN', 'PALEG', 'PALMY', 'PANAM', 'PAPEE', |
|
61 | - 'PAYSO', 'PERTH', 'PHOEN', 'POFFI', 'PORTL', 'PREST', 'PROCC', 'PROVO', |
|
60 | + 'OGDEN', 'OKLAH', 'OQUIR', 'ORLAN', 'PALEG', 'PALMY', 'PANAM', 'PAPEE', |
|
61 | + 'PAYSO', 'PERTH', 'PHOEN', 'POFFI', 'PORTL', 'PREST', 'PROCC', 'PROVO', |
|
62 | 62 | 'QUETZ', 'RALEI', 'RECIF', 'REDLA', 'REGIN', 'RENO', 'REXBU', 'SACRA', |
63 | - 'SAMOA', 'SANTI', 'SANSA', 'SANTO', 'SDIEG', 'SDOMI', 'SEATT', 'SEOUL', |
|
64 | - 'SGEOR', 'SJOSE', 'SLAKE', 'SLOUI', 'SNOWF','SPAUL', 'SPMIN', 'SPOKA', |
|
63 | + 'SAMOA', 'SANTI', 'SANSA', 'SANTO', 'SDIEG', 'SDOMI', 'SEATT', 'SEOUL', |
|
64 | + 'SGEOR', 'SJOSE', 'SLAKE', 'SLOUI', 'SNOWF', 'SPAUL', 'SPMIN', 'SPOKA', |
|
65 | 65 | 'STOCK', 'SUVA', 'SWISS', 'SYDNE', 'TAIPE', 'TAMPI', 'TEGUC', 'TGUTI', |
66 | - 'TIHUA', 'TOKYO', 'TORNO', 'TRUJI', 'TWINF', 'VANCO', 'VERAC', 'VERNA', |
|
67 | - 'VILLA', 'WASHI', 'WINTE', |
|
66 | + 'TIHUA', 'TOKYO', 'TORNO', 'TRUJI', 'TWINF', 'VANCO', 'VERAC', 'VERNA', |
|
67 | + 'VILLA', 'WASHI', 'WINTE', |
|
68 | 68 | ); |
69 | 69 | } |
70 | 70 |
@@ -44,7 +44,7 @@ |
||
44 | 44 | $form_pass2 = Filter::post('form_pass2', WT_REGEX_PASSWORD); |
45 | 45 | $form_email = Filter::postEmail('form_email'); |
46 | 46 | $form_rootid = Filter::post('form_rootid', WT_REGEX_XREF); |
47 | -$form_theme = Filter::post('form_theme', implode('|', array_keys(Theme::themeNames())), '');; |
|
47 | +$form_theme = Filter::post('form_theme', implode('|', array_keys(Theme::themeNames())), ''); ; |
|
48 | 48 | $form_language = Filter::post('form_language'); |
49 | 49 | $form_timezone = Filter::post('form_timezone'); |
50 | 50 | $form_contact_method = Filter::post('form_contact_method'); |
@@ -1820,24 +1820,24 @@ |
||
1820 | 1820 | if ($endjd === WT_CLIENT_JD) { |
1821 | 1821 | // We're dealing with the Today’s Events block |
1822 | 1822 | if ($filter === 0) { |
1823 | - $html .= I18N::translate('No events exist for today.'); |
|
1823 | + $html .= I18N::translate('No events exist for today.'); |
|
1824 | 1824 | } else { |
1825 | - $html .= I18N::translate('No events for living individuals exist for today.'); |
|
1825 | + $html .= I18N::translate('No events for living individuals exist for today.'); |
|
1826 | 1826 | } |
1827 | 1827 | } else { |
1828 | 1828 | // We're dealing with the Upcoming Events block |
1829 | 1829 | if ($filter === 0) { |
1830 | 1830 | if ($endjd === $startjd) { |
1831 | - $html .= I18N::translate('No events exist for tomorrow.'); |
|
1831 | + $html .= I18N::translate('No events exist for tomorrow.'); |
|
1832 | 1832 | } else { |
1833 | - $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)); |
|
1833 | + $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)); |
|
1834 | 1834 | } |
1835 | 1835 | } else { |
1836 | 1836 | if ($endjd === $startjd) { |
1837 | - $html .= I18N::translate('No events for living individuals exist for tomorrow.'); |
|
1837 | + $html .= I18N::translate('No events for living individuals exist for tomorrow.'); |
|
1838 | 1838 | } else { |
1839 | 1839 | // I18N: translation for %s==1 is unused; it is translated separately as “tomorrow” |
1840 | - $html .= I18N::plural('No events for living people exist for the next %s day.', 'No events for living people exist for the next %s days.', $endjd - $startjd + 1, I18N::number($endjd - $startjd + 1)); |
|
1840 | + $html .= I18N::plural('No events for living people exist for the next %s day.', 'No events for living people exist for the next %s days.', $endjd - $startjd + 1, I18N::number($endjd - $startjd + 1)); |
|
1841 | 1841 | } |
1842 | 1842 | } |
1843 | 1843 | } |
@@ -343,7 +343,7 @@ discard block |
||
343 | 343 | // Check the script used by each name, so we can match cyrillic with cyrillic, greek with greek, etc. |
344 | 344 | $husb_names = array(); |
345 | 345 | if ($this->husb) { |
346 | - $husb_names = array_filter($this->husb->getAllNames(), function(array $x) { return $x['type'] !== '_MARNM'; } ); |
|
346 | + $husb_names = array_filter($this->husb->getAllNames(), function (array $x) { return $x['type'] !== '_MARNM'; } ); |
|
347 | 347 | } |
348 | 348 | // If the individual only has married names, create a dummy birth name. |
349 | 349 | if (empty($husb_names)) { |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | |
360 | 360 | $wife_names = array(); |
361 | 361 | if ($this->wife) { |
362 | - $wife_names = array_filter($this->wife->getAllNames(), function(array $x) { return $x['type'] !== '_MARNM'; } ); |
|
362 | + $wife_names = array_filter($this->wife->getAllNames(), function (array $x) { return $x['type'] !== '_MARNM'; } ); |
|
363 | 363 | } |
364 | 364 | // If the individual only has married names, create a dummy birth name. |
365 | 365 | if (empty($wife_names)) { |