@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | |
| 103 | 103 | $this->checkModuleIsActive($tree, 'descendancy_chart'); |
| 104 | 104 | |
| 105 | - $xref = $request->get('xref'); |
|
| 105 | + $xref = $request->get('xref'); |
|
| 106 | 106 | $individual = Individual::getInstance($xref, $tree); |
| 107 | 107 | |
| 108 | 108 | $this->checkIndividualAccess($individual); |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | |
| 120 | 120 | $descendants = $this->descendants($individual, $generations, []); |
| 121 | 121 | |
| 122 | - switch($chart_style) { |
|
| 122 | + switch ($chart_style) { |
|
| 123 | 123 | case self::CHART_STYLE_LIST: |
| 124 | 124 | default: |
| 125 | 125 | return $this->descendantsList($individual, $generations); |
@@ -310,7 +310,7 @@ discard block |
||
| 310 | 310 | * @return Response |
| 311 | 311 | */ |
| 312 | 312 | private function descendantsFamilies(array $descendants): Response { |
| 313 | - $families = []; |
|
| 313 | + $families = []; |
|
| 314 | 314 | foreach ($descendants as $individual) { |
| 315 | 315 | foreach ($individual->getChildFamilies() as $family) { |
| 316 | 316 | $families[$family->getXref()] = $family; |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | if ($individual !== null) { |
| 69 | 69 | $xrefs[] = $addxref; |
| 70 | 70 | if ($addfam) { |
| 71 | - $xrefs = array_merge($xrefs, $this->closeFamily($individual)); |
|
| 71 | + $xrefs = array_merge($xrefs, $this->closeFamily($individual)); |
|
| 72 | 72 | } |
| 73 | 73 | } |
| 74 | 74 | |
@@ -366,7 +366,7 @@ discard block |
||
| 366 | 366 | $html = sprintf('<div id="childarrow"><a href="#" class="menuselect %s"></a><div id="childbox-pedigree">', $this->arrows->menu); |
| 367 | 367 | |
| 368 | 368 | foreach ($families as $family) { |
| 369 | - $html .= '<span class="name1">' . I18N::translate('Family') . '</span>'; |
|
| 369 | + $html .= '<span class="name1">' . I18N::translate('Family') . '</span>'; |
|
| 370 | 370 | $spouse = $family->getSpouse($this->root); |
| 371 | 371 | if ($spouse) { |
| 372 | 372 | $html .= '<a class="name1" href="' . e(route('pedigree', [ |
@@ -426,7 +426,7 @@ discard block |
||
| 426 | 426 | $html = ''; |
| 427 | 427 | if ($this->chartHasAncestors) { |
| 428 | 428 | if ($this->nodes[$index]['indi'] && $this->nodes[$index]['indi']->getChildFamilies()) { |
| 429 | - $html .= '<div class="ancestorarrow">'; |
|
| 429 | + $html .= '<div class="ancestorarrow">'; |
|
| 430 | 430 | $rootParentId = 1; |
| 431 | 431 | if ($index > (int) ($this->treesize / 2) + (int) ($this->treesize / 4)) { |
| 432 | 432 | $rootParentId++; |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | $sdx = Soundex::russell($surname); |
| 163 | 163 | if ($sdx !== '') { |
| 164 | 164 | foreach (explode(':', $sdx) as $value) { |
| 165 | - $sql .= " OR n_soundex_surn_std LIKE CONCAT('%', ?, '%')"; |
|
| 165 | + $sql .= " OR n_soundex_surn_std LIKE CONCAT('%', ?, '%')"; |
|
| 166 | 166 | $args[] = $value; |
| 167 | 167 | } |
| 168 | 168 | } |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | $sdx = Soundex::daitchMokotoff($surname); |
| 173 | 173 | if ($sdx !== '') { |
| 174 | 174 | foreach (explode(':', $sdx) as $value) { |
| 175 | - $sql .= " OR n_soundex_surn_dm LIKE CONCAT('%', ?, '%')"; |
|
| 175 | + $sql .= " OR n_soundex_surn_dm LIKE CONCAT('%', ?, '%')"; |
|
| 176 | 176 | $args[] = $value; |
| 177 | 177 | } |
| 178 | 178 | } |
@@ -130,7 +130,7 @@ |
||
| 130 | 130 | ->setPreference('TIMEZONE', $time_zone) |
| 131 | 131 | ->setPreference('visibleonline', $visible_online); |
| 132 | 132 | |
| 133 | - $tree->setUserPreference($user,'rootid', $rootid); |
|
| 133 | + $tree->setUserPreference($user, 'rootid', $rootid); |
|
| 134 | 134 | |
| 135 | 135 | // Switch to the new theme now |
| 136 | 136 | Session::put('theme_id', $theme); |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | |
| 105 | 105 | $this->checkModuleIsActive($tree, 'ancestors_chart'); |
| 106 | 106 | |
| 107 | - $xref = $request->get('xref'); |
|
| 107 | + $xref = $request->get('xref'); |
|
| 108 | 108 | $individual = Individual::getInstance($xref, $tree); |
| 109 | 109 | |
| 110 | 110 | $this->checkIndividualAccess($individual); |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | |
| 123 | 123 | $ancestors = $this->sosaStradonitzAncestors($individual, $generations); |
| 124 | 124 | |
| 125 | - switch($chart_style) { |
|
| 125 | + switch ($chart_style) { |
|
| 126 | 126 | case self::CHART_STYLE_LIST: |
| 127 | 127 | default: |
| 128 | 128 | return $this->ancestorsList($individual, $generations); |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | } |
| 240 | 240 | } |
| 241 | 241 | |
| 242 | - $html = FunctionsPrintLists::familyTable($families); |
|
| 242 | + $html = FunctionsPrintLists::familyTable($families); |
|
| 243 | 243 | |
| 244 | 244 | return new Response($html); |
| 245 | 245 | } |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | return new RedirectResponse(Html::url('admin_trees_manage.php', [])); |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | - return $this->viewResponse('errors/no-tree-access', [ 'title' => '' ]); |
|
| 61 | + return $this->viewResponse('errors/no-tree-access', ['title' => '']); |
|
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | /** |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | $maximum_generations = (int) $tree->getPreference('MAX_DESCENDANCY_GENERATIONS', self::DEFAULT_MAXIMUM_GENERATIONS); |
| 59 | 59 | $default_generations = (int) $tree->getPreference('DEFAULT_PEDIGREE_GENERATIONS', self::DEFAULT_GENERATIONS); |
| 60 | 60 | |
| 61 | - $generations = (int) $request->get('generations', $default_generations); |
|
| 61 | + $generations = (int) $request->get('generations', $default_generations); |
|
| 62 | 62 | |
| 63 | 63 | $generations = min($generations, $maximum_generations); |
| 64 | 64 | $generations = max($generations, self::MINIMUM_GENERATIONS); |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | echo '<table cellspacing="0" cellpadding="0" border="0" style="position: relative; top: auto; float: ' . $tablealign . ';">'; |
| 221 | 221 | for ($i = 0; $i < $ct; $i++) { |
| 222 | 222 | $individual2 = $children[$i]; |
| 223 | - $chil = $individual2->getXref(); |
|
| 223 | + $chil = $individual2->getXref(); |
|
| 224 | 224 | echo '<tr>'; |
| 225 | 225 | echo '<td id="td_', e($chil), '" class="', I18N::direction(), '" style="text-align:', $otablealign, '">'; |
| 226 | 226 | $this->printDescendency($individual2, $generation + 1, $generations, $show_spouse, false); |
@@ -116,18 +116,18 @@ |
||
| 116 | 116 | ]; |
| 117 | 117 | |
| 118 | 118 | const DMY_SHORTCUTS = [ |
| 119 | - '11 DEC 1913' => ['11/12/1913', '11-12-1913', '11.12.1913',], |
|
| 120 | - '01 FEB 2003' => ['01/02/03', '01-02-03', '01.02.03',], |
|
| 119 | + '11 DEC 1913' => ['11/12/1913', '11-12-1913', '11.12.1913', ], |
|
| 120 | + '01 FEB 2003' => ['01/02/03', '01-02-03', '01.02.03', ], |
|
| 121 | 121 | ]; |
| 122 | 122 | |
| 123 | 123 | const MDY_SHORTCUTS = [ |
| 124 | - '11 DEC 1913' => ['12/11/1913', '12-11-1913', '12.11.1913',], |
|
| 125 | - '01 FEB 2003' => ['02/01/03', '02-01-03', '02.01.03',], |
|
| 124 | + '11 DEC 1913' => ['12/11/1913', '12-11-1913', '12.11.1913', ], |
|
| 125 | + '01 FEB 2003' => ['02/01/03', '02-01-03', '02.01.03', ], |
|
| 126 | 126 | ]; |
| 127 | 127 | |
| 128 | 128 | const YMD_SHORTCUTS = [ |
| 129 | - '11 DEC 1913' => ['11/12/1913', '11-12-1913', '11.12.1913',], |
|
| 130 | - '01 FEB 2003' => ['03/02/01', '03-02-01', '03.02.01',], |
|
| 129 | + '11 DEC 1913' => ['11/12/1913', '11-12-1913', '11.12.1913', ], |
|
| 130 | + '01 FEB 2003' => ['03/02/01', '03-02-01', '03.02.01', ], |
|
| 131 | 131 | ]; |
| 132 | 132 | |
| 133 | 133 | /** |