@@ -791,8 +791,11 @@ |
||
791 | 791 | <p> |
792 | 792 | <?php if ($ucnt): ?> |
793 | 793 | <input type="submit" value="<?php echo I18N::translate('delete'); ?>"> |
794 | - <?php else: ?> |
|
795 | - <?php echo I18N::translate('Nothing found to cleanup'); ?> |
|
794 | + <?php else { |
|
795 | + : ?> |
|
796 | + <?php echo I18N::translate('Nothing found to cleanup'); |
|
797 | +} |
|
798 | +?> |
|
796 | 799 | <?php endif; ?> |
797 | 800 | </p> |
798 | 801 | </form> |
@@ -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( |
@@ -47,7 +47,7 @@ |
||
47 | 47 | try { |
48 | 48 | $fp = fsockopen($scheme . $host, $port, $errno, $errstr, 5); |
49 | 49 | |
50 | - fputs($fp, "GET $path?$query HTTP/1.0\r\nHost: $host\r\nConnection: Close\r\n\r\n"); |
|
50 | + fputs($fp, "get $path?$query HTTP/1.0\r\nHost: $host\r\nConnection: Close\r\n\r\n"); |
|
51 | 51 | |
52 | 52 | // The first part of the response include the HTTP headers |
53 | 53 | $response = fread($fp, 65536); |
@@ -389,8 +389,11 @@ |
||
389 | 389 | <a href="<?php echo $individual->getHtmlUrl(); ?>#stories"> |
390 | 390 | <?php echo $individual->getFullName(); ?> |
391 | 391 | </a> |
392 | - <?php else: ?> |
|
393 | - <?php echo $story->xref; ?> |
|
392 | + <?php else { |
|
393 | + : ?> |
|
394 | + <?php echo $story->xref; |
|
395 | +} |
|
396 | +?> |
|
394 | 397 | <?php endif; ?> |
395 | 398 | </td> |
396 | 399 | <td> |
@@ -67,14 +67,14 @@ |
||
67 | 67 | if (strlen($match[1]) > strlen($match[2])) { |
68 | 68 | $match[2] = substr($match[1], 0, strlen($match[1]) - strlen($match[2])) . $match[2]; |
69 | 69 | } |
70 | - $ged_date = new Date("FROM {$cal} {$match[1]} TO {$cal} {$match[2]}"); |
|
70 | + $ged_date = new Date("from {$cal} {$match[1]} TO {$cal} {$match[2]}"); |
|
71 | 71 | $view = 'year'; |
72 | 72 | } else { |
73 | 73 | // advanced-year "decade/century wildcard" |
74 | 74 | if (preg_match('/^(\d+)(\?+)$/', $year, $match)) { |
75 | 75 | $y1 = $match[1] . str_replace('?', '0', $match[2]); |
76 | 76 | $y2 = $match[1] . str_replace('?', '9', $match[2]); |
77 | - $ged_date = new Date("FROM {$cal} {$y1} TO {$cal} {$y2}"); |
|
77 | + $ged_date = new Date("from {$cal} {$y1} TO {$cal} {$y2}"); |
|
78 | 78 | $view = 'year'; |
79 | 79 | } else { |
80 | 80 | if ($year < 0) { |
@@ -183,8 +183,11 @@ |
||
183 | 183 | <div class="value"> |
184 | 184 | <?php if ($my_individual_record): ?> |
185 | 185 | <?php echo $my_individual_record->formatList('span'); ?> |
186 | - <?php else: ?> |
|
187 | - <?php echo I18N::translateContext('unknown people', 'Unknown'); ?> |
|
186 | + <?php else { |
|
187 | + : ?> |
|
188 | + <?php echo I18N::translateContext('unknown people', 'Unknown'); |
|
189 | +} |
|
190 | +?> |
|
188 | 191 | <?php endif; ?> |
189 | 192 | <p class="small text-muted"> |
190 | 193 | <?php echo I18N::translate('This is a link to your own record in the family tree. If this is the wrong individual, contact an administrator.'); ?> |
@@ -110,10 +110,13 @@ |
||
110 | 110 | </option> |
111 | 111 | </select> |
112 | 112 | </td> |
113 | - <?php else: ?> |
|
113 | + <?php else { |
|
114 | + : ?> |
|
114 | 115 | <td class="descriptionbox wrap"></td> |
115 | 116 | <td class="optionbox wrap"></td> |
116 | - <?php endif; ?> |
|
117 | + <?php endif; |
|
118 | +} |
|
119 | +?> |
|
117 | 120 | </tr> |
118 | 121 | <tr> |
119 | 122 | <td class="descriptionbox wrap"> |
@@ -24,7 +24,6 @@ |
||
24 | 24 | |
25 | 25 | use Fisharebest\Webtrees\Controller\MediaController; |
26 | 26 | use Fisharebest\Webtrees\Controller\PageController; |
27 | -use Fisharebest\Webtrees\Functions\FunctionsEdit; |
|
28 | 27 | use Fisharebest\Webtrees\Functions\FunctionsPrint; |
29 | 28 | use Fisharebest\Webtrees\Functions\FunctionsPrintFacts; |
30 | 29 | use Fisharebest\Webtrees\Query\QueryMedia; |
@@ -21,6 +21,7 @@ |
||
21 | 21 | interface MigrationInterface { |
22 | 22 | /** |
23 | 23 | * Upgrade to to the next version |
24 | + * @return void |
|
24 | 25 | */ |
25 | 26 | public function upgrade(); |
26 | 27 | } |
@@ -74,8 +74,11 @@ |
||
74 | 74 | <td class="col-xs-2"> |
75 | 75 | <?php if ($module instanceof ModuleConfigInterface): ?> |
76 | 76 | <a href="<?php echo $module->getConfigLink(); ?>"><?php echo $module->getTitle(); ?> <i class="fa fa-cogs"></i></a> |
77 | - <?php else: ?> |
|
78 | - <?php echo $module->getTitle(); ?> |
|
77 | + <?php else { |
|
78 | + : ?> |
|
79 | + <?php echo $module->getTitle(); |
|
80 | +} |
|
81 | +?> |
|
79 | 82 | <?php endif; ?> |
80 | 83 | </td> |
81 | 84 | <td class="col-xs-5"><?php echo $module->getDescription(); ?></td> |