@@ -61,7 +61,7 @@ |
||
| 61 | 61 | */ |
| 62 | 62 | public function newParentNames($child_name, $parent_sex) { |
| 63 | 63 | if (preg_match(self::REGEX_SURNS, $child_name, $match)) { |
| 64 | - switch($parent_sex) { |
|
| 64 | + switch ($parent_sex) { |
|
| 65 | 65 | case 'M': |
| 66 | 66 | return array( |
| 67 | 67 | 'NAME' => '/' . $match['SURN1'] . '/ //', |
@@ -2066,7 +2066,7 @@ |
||
| 2066 | 2066 | } |
| 2067 | 2067 | |
| 2068 | 2068 | $CHIL = array(); |
| 2069 | - for ($i = 0;; ++$i) { |
|
| 2069 | + for ($i = 0; ; ++$i) { |
|
| 2070 | 2070 | if (isset($_POST['CHIL' . $i])) { |
| 2071 | 2071 | $CHIL[] = Filter::post('CHIL' . $i, WT_REGEX_XREF); |
| 2072 | 2072 | } else { |
@@ -28,17 +28,17 @@ discard block |
||
| 28 | 28 | |
| 29 | 29 | ?> |
| 30 | 30 | <div id="lifespan-page"> |
| 31 | - <h2><?php echo I18N::translate('Lifespans');?></h2> |
|
| 31 | + <h2><?php echo I18N::translate('Lifespans'); ?></h2> |
|
| 32 | 32 | |
| 33 | 33 | <form> |
| 34 | 34 | <table class="list_table"> |
| 35 | 35 | <tbody> |
| 36 | 36 | <tr> |
| 37 | 37 | <th class="descriptionbox" colspan="4"> |
| 38 | - <?php echo I18N::translate('Select individuals by place or date');?> |
|
| 38 | + <?php echo I18N::translate('Select individuals by place or date'); ?> |
|
| 39 | 39 | </th> |
| 40 | 40 | <th class="descriptionbox" colspan="2"> |
| 41 | - <?php echo I18N::translate('Add individuals');?> |
|
| 41 | + <?php echo I18N::translate('Add individuals'); ?> |
|
| 42 | 42 | </th> |
| 43 | 43 | </tr> |
| 44 | 44 | <tr> |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | </td> |
| 93 | 93 | <td class="optionbox"> |
| 94 | 94 | <select id="calendar" name="calendar"> |
| 95 | - <?php echo $controller->getCalendarOptionList();?> |
|
| 95 | + <?php echo $controller->getCalendarOptionList(); ?> |
|
| 96 | 96 | </select> |
| 97 | 97 | </td> |
| 98 | 98 | <td class="optionbox" colspan="2"> |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | </form> |
| 113 | 113 | |
| 114 | 114 | <div id="lifespan-chart"> |
| 115 | - <h4><?php echo $controller->subtitle;?></h4> |
|
| 115 | + <h4><?php echo $controller->subtitle; ?></h4> |
|
| 116 | 116 | <div id="lifespan-scale"> |
| 117 | 117 | <?php $controller->printTimeline(); ?> |
| 118 | 118 | </div> |
@@ -239,13 +239,13 @@ |
||
| 239 | 239 | echo '<', $tsection, '><tr><td colspan="2">'; |
| 240 | 240 | echo '<table class="list_table_controls"><tr><td>'; |
| 241 | 241 | if ($page > 1) { |
| 242 | - echo '<a href="', $url, '&page=1" class="icon-', $icons['first'] ,'"></a>'; |
|
| 243 | - echo '<a href="', $url, '&page=', $page - 1 ,'" class="icon-', $icons['previous'] , '"></a>'; |
|
| 242 | + echo '<a href="', $url, '&page=1" class="icon-', $icons['first'], '"></a>'; |
|
| 243 | + echo '<a href="', $url, '&page=', $page - 1, '" class="icon-', $icons['previous'], '"></a>'; |
|
| 244 | 244 | } |
| 245 | 245 | echo '</td><td>', I18N::translate('Page %s of %s', $page, $pages), '</td><td>'; |
| 246 | 246 | if ($page < $pages) { |
| 247 | - echo '<a href="', $url, '&page=', $page + 1 ,'" class="icon-', $icons['next'] , '"></a>'; |
|
| 248 | - echo '<a href="', $url, '&page=', $pages ,'" class="icon-', $icons['last'] ,'"></a>'; |
|
| 247 | + echo '<a href="', $url, '&page=', $page + 1, '" class="icon-', $icons['next'], '"></a>'; |
|
| 248 | + echo '<a href="', $url, '&page=', $pages, '" class="icon-', $icons['last'], '"></a>'; |
|
| 249 | 249 | } |
| 250 | 250 | echo '</td></tr></table>'; |
| 251 | 251 | echo '</td></tr></', $tsection, '>'; |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | */ |
| 62 | 62 | public function newParentNames($child_name, $parent_sex) { |
| 63 | 63 | if (preg_match(self::REGEX_SURNS, $child_name, $match)) { |
| 64 | - switch($parent_sex) { |
|
| 64 | + switch ($parent_sex) { |
|
| 65 | 65 | case 'M': |
| 66 | 66 | return array( |
| 67 | 67 | 'NAME' => '/' . $match['SURN1'] . '/ //', |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | $recordsTotal = (int) Database::prepare("SELECT COUNT(*) FROM `##change`")->fetchOne(); |
| 180 | 180 | |
| 181 | 181 | $data = array(); |
| 182 | - $algorithm = new MyersDiff; |
|
| 182 | + $algorithm = new MyersDiff; |
|
| 183 | 183 | |
| 184 | 184 | foreach ($rows as $row) { |
| 185 | 185 | $old_lines = preg_split('/[\n]+/', $row->old_gedcom, -1, PREG_SPLIT_NO_EMPTY); |
@@ -207,14 +207,12 @@ discard block |
||
| 207 | 207 | $row->change_time, |
| 208 | 208 | I18N::translate($row->status), |
| 209 | 209 | GedcomRecord::getInstance($row->xref, Tree::findByName($gedc)) ? |
| 210 | - "<a href='gedrecord.php?pid={$row->xref}&ged={$row->gedcom_name}'>{$row->xref}</a>" : |
|
| 211 | - $row->xref, |
|
| 210 | + "<a href='gedrecord.php?pid={$row->xref}&ged={$row->gedcom_name}'>{$row->xref}</a>" : $row->xref, |
|
| 212 | 211 | '<div class="gedcom-data" dir="ltr">' . |
| 213 | 212 | preg_replace_callback('/@(' . WT_REGEX_XREF . ')@/', |
| 214 | 213 | function ($match) use ($gedc) { |
| 215 | 214 | return GedcomRecord::getInstance($match[1], Tree::findByName($gedc)) ? |
| 216 | - "<a href='#' onclick='return edit_raw(\"{$match[1]}\");'>{$match[0]}</a>" : |
|
| 217 | - $match[0]; |
|
| 215 | + "<a href='#' onclick='return edit_raw(\"{$match[1]}\");'>{$match[0]}</a>" : $match[0]; |
|
| 218 | 216 | }, |
| 219 | 217 | implode("\n", $diff_lines) |
| 220 | 218 | ) . |