Completed
Push — snyk-fix-wsoyzf ( 4429e8 )
by Greg
08:42
created
app/Module/HourglassChartModule.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
             if ($kcount == 0) {
298 298
                 echo "</td><td style='width:", app(ModuleThemeInterface::class)->parameter('chart-box-x'), "px'>";
299 299
             } else {
300
-                echo '<a href="#" title="' . I18N::translate('Children') . '" data-route="Descendants" data-xref="' .  e($pid) . '" data-spouses="' .  e($show_spouse) . '" data-tree="' .  e($individual->tree()->name()) . '">' . view('icons/arrow-left') . '</a>';
300
+                echo '<a href="#" title="' . I18N::translate('Children') . '" data-route="Descendants" data-xref="' . e($pid) . '" data-spouses="' . e($show_spouse) . '" data-tree="' . e($individual->tree()->name()) . '">' . view('icons/arrow-left') . '</a>';
301 301
 
302 302
                 //-- move the arrow up to line up with the correct box
303 303
                 if ($show_spouse) {
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
                 }
379 379
 
380 380
                 // filter out root person from children array so only siblings remain
381
-                $siblings       = $family->children()->filter(static function (Individual $x) use ($individual): bool {
381
+                $siblings = $family->children()->filter(static function (Individual $x) use ($individual): bool {
382 382
                     return $x !== $individual;
383 383
                 });
384 384
 
@@ -451,7 +451,7 @@  discard block
 block discarded – undo
451 451
                 echo '<td id="td_' . e($ARID) . '">';
452 452
 
453 453
                 if ($generation == $generations - 1 && $family->husband()->childFamilies()) {
454
-                    echo '<a href="#" title="' . I18N::translate('Parents') . '" data-route="Ancestors" data-xref="' .  e($ARID) . '" data-spouses="' .  e($show_spouse) . '" data-tree="' .  e($family->husband()->tree()->name()) . '">' . view('icons/arrow-right') . '</a>';
454
+                    echo '<a href="#" title="' . I18N::translate('Parents') . '" data-route="Ancestors" data-xref="' . e($ARID) . '" data-spouses="' . e($show_spouse) . '" data-tree="' . e($family->husband()->tree()->name()) . '">' . view('icons/arrow-right') . '</a>';
455 455
                 }
456 456
 
457 457
                 $this->printPersonPedigree($family->husband(), $generation + 1, $generations, $show_spouse);
@@ -482,7 +482,7 @@  discard block
 block discarded – undo
482 482
                 echo '<td id="td_' . e($ARID) . '">';
483 483
 
484 484
                 if ($generation == $generations - 1 && $family->wife()->childFamilies()) {
485
-                    echo '<a href="#" title="' . I18N::translate('Parents') . '" data-route="Ancestors" data-xref="' .  e($ARID) . '" data-spouses="' .  e($show_spouse) . '" data-tree="' .  e($family->wife()->tree()->name()) . '">' . view('icons/arrow-right') . '</a>';
485
+                    echo '<a href="#" title="' . I18N::translate('Parents') . '" data-route="Ancestors" data-xref="' . e($ARID) . '" data-spouses="' . e($show_spouse) . '" data-tree="' . e($family->wife()->tree()->name()) . '">' . view('icons/arrow-right') . '</a>';
486 486
                 }
487 487
 
488 488
                 $this->printPersonPedigree($family->wife(), $generation + 1, $generations, $show_spouse);
Please login to merge, or discard this patch.
app/Http/Controllers/ListController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -134,10 +134,10 @@  discard block
 block discarded – undo
134 134
         switch ($show_marnm) {
135 135
             case 'no':
136 136
             case 'yes':
137
-                $user->setPreference($families?'family-list-marnm':'individual-list-marnm', $show_marnm);
137
+                $user->setPreference($families ? 'family-list-marnm' : 'individual-list-marnm', $show_marnm);
138 138
                 break;
139 139
             default:
140
-                $show_marnm = $user->getPreference($families?'family-list-marnm':'individual-list-marnm');
140
+                $show_marnm = $user->getPreference($families ? 'family-list-marnm' : 'individual-list-marnm');
141 141
         }
142 142
 
143 143
         // Make sure selections are consistent.
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
                     'ged'      => $tree->name(),
170 170
                     'show_all' => 'yes',
171 171
                 ];
172
-                $show    = $request->getQueryParams()['show'] ?? 'surn';
172
+                $show = $request->getQueryParams()['show'] ?? 'surn';
173 173
             }
174 174
         } elseif ($surname) {
175 175
             $alpha    = $this->localization_service->initialLetter($surname); // so we can highlight the initial letter
Please login to merge, or discard this patch.