@@ -3,7 +3,7 @@ |
||
3 | 3 | <?php use Fisharebest\Webtrees\Theme; ?> |
4 | 4 | <?php use Fisharebest\Webtrees\View; ?> |
5 | 5 | |
6 | -<form method="post" action="<?= e(Html::url('module.php' ,['mod' => 'individuals', 'mod_action' => 'ajax'])) ?>" onsubmit="return false;"> |
|
6 | +<form method="post" action="<?= e(Html::url('module.php', ['mod' => 'individuals', 'mod_action' => 'ajax'])) ?>" onsubmit="return false;"> |
|
7 | 7 | <input type="search" name="sb_indi_name" id="sb_indi_name" placeholder="<?= I18N::translate('Search') ?>"> |
8 | 8 | <p> |
9 | 9 | <?php foreach ($initials as $letter => $count): ?> |
@@ -223,7 +223,7 @@ |
||
223 | 223 | /** @var Tree $tree */ |
224 | 224 | $tree = $request->attributes->get('tree'); |
225 | 225 | |
226 | - $xref = $request->get('xref', ''); |
|
226 | + $xref = $request->get('xref', ''); |
|
227 | 227 | |
228 | 228 | $individual = Individual::getInstance($xref, $tree); |
229 | 229 |
@@ -24,7 +24,7 @@ |
||
24 | 24 | } |
25 | 25 | $chart_url .= '|1:||' . rawurlencode(I18N::percentage($vmax / $count)); // y axis |
26 | 26 | $chart_url .= '|2:||'; |
27 | -$step = $vmax; |
|
27 | +$step = $vmax; |
|
28 | 28 | for ($d = $vmax; $d > 0; $d--) { |
29 | 29 | if ($vmax < ($d * 10 + 1) && ($vmax % $d) == 0) { |
30 | 30 | $step = $d; |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | |
102 | 102 | $this->checkModuleIsActive($tree, 'descendancy_chart'); |
103 | 103 | |
104 | - $xref = $request->get('xref'); |
|
104 | + $xref = $request->get('xref'); |
|
105 | 105 | $individual = Individual::getInstance($xref, $tree); |
106 | 106 | |
107 | 107 | $this->checkIndividualAccess($individual); |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | |
119 | 119 | $descendants = $this->descendants($individual, $generations, []); |
120 | 120 | |
121 | - switch($chart_style) { |
|
121 | + switch ($chart_style) { |
|
122 | 122 | case self::CHART_STYLE_LIST: |
123 | 123 | default: |
124 | 124 | return $this->descendantsList($individual, $generations); |
@@ -315,7 +315,7 @@ discard block |
||
315 | 315 | * @return Response |
316 | 316 | */ |
317 | 317 | private function descendantsFamilies(Tree $tree, array $descendants): Response { |
318 | - $families = []; |
|
318 | + $families = []; |
|
319 | 319 | foreach ($descendants as $individual) { |
320 | 320 | foreach ($individual->getChildFamilies() as $family) { |
321 | 321 | $families[$family->getXref()] = $family; |