Passed
Push — dependabot/composer/illuminate... ( b56af1 )
by
unknown
10:39
created
app/Http/RequestHandlers/EditFactAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -402,7 +402,7 @@
 block discarded – undo
402 402
         $NAME = $params['NAME'] ?? '';
403 403
 
404 404
         if ($NAME !== '') {
405
-            $newged     .= "\n1 NAME " . $NAME;
405
+            $newged .= "\n1 NAME " . $NAME;
406 406
             $name_facts = [
407 407
                 'TYPE',
408 408
                 'NPFX',
Please login to merge, or discard this patch.
app/Functions/FunctionsPrintFacts.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -583,7 +583,7 @@  discard block
 block discarded – undo
583 583
         for ($j = 0; $j < $ct; $j++) {
584 584
             if (!str_contains($match[$j][1], '@')) {
585 585
                 $source = e($match[$j][1] . preg_replace('/\n\d CONT ?/', "\n", $match[$j][2]));
586
-                $data   .= '<div class="fact_SOUR"><span class="label">' . I18N::translate('Source') . ':</span> <span class="field" dir="auto">' . Filter::formatText($source, $tree) . '</span></div>';
586
+                $data .= '<div class="fact_SOUR"><span class="label">' . I18N::translate('Source') . ':</span> <span class="field" dir="auto">' . Filter::formatText($source, $tree) . '</span></div>';
587 587
             }
588 588
         }
589 589
         // Find source for each fact
@@ -601,7 +601,7 @@  discard block
 block discarded – undo
601 601
                     }
602 602
                     $srec     = substr($factrec, $spos1, $spos2 - $spos1);
603 603
                     $lt       = preg_match_all("/$nlevel \w+/", $srec, $matches);
604
-                    $data     .= '<div class="fact_SOUR">';
604
+                    $data .= '<div class="fact_SOUR">';
605 605
                     $id       = 'collapse-' . Uuid::uuid4()->toString();
606 606
                     $expanded = (bool) $tree->getPreference('EXPAND_SOURCES');
607 607
                     if ($lt > 0) {
Please login to merge, or discard this patch.
app/Module/BranchesListModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
 {
65 65
     use ModuleListTrait;
66 66
 
67
-    protected const ROUTE_URL  = '/tree/{tree}/branches{/surname}';
67
+    protected const ROUTE_URL = '/tree/{tree}/branches{/surname}';
68 68
 
69 69
     /** @var ModuleService */
70 70
     protected $module_service;
Please login to merge, or discard this patch.
app/Module/IndividualListModule.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -326,7 +326,8 @@  discard block
 block discarded – undo
326 326
                     <li class="wt-initials-list-item d-flex">
327 327
                         <?php if ($count > 0) : ?>
328 328
                             <a href="<?= e($this->listUrl($tree, ['alpha' => $letter, 'tree' => $tree->name()])) ?>" class="wt-initial px-1<?= $letter === $alpha ? ' active' : '' ?> '" title="<?= I18N::number($count) ?>"><?= $this->surnameInitial((string) $letter) ?></a>
329
-                        <?php else : ?>
329
+                        <?php else {
330
+    : ?>
330 331
                             <span class="wt-initial px-1 text-muted"><?= $this->surnameInitial((string) $letter) ?></span>
331 332
 
332 333
                         <?php endif ?>
@@ -380,6 +381,7 @@  discard block
 block discarded – undo
380 381
 
381 382
             if ($show === 'indi' || $show === 'surn') {
382 383
                 $surns = $this->surnames($tree, $surname, $alpha, $show_marnm === 'yes', $families, I18N::locale());
384
+}
383 385
                 if ($show === 'surn') {
384 386
                     // Show the surname list
385 387
                     switch ($tree->getPreference('SURNAME_LIST_STYLE')) {
Please login to merge, or discard this patch.
app/Http/RequestHandlers/PendingChangesLogData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
                 '<div class="gedcom-data" dir="ltr">' .
113 113
                 preg_replace_callback(
114 114
                     '/@(' . Gedcom::REGEX_XREF . ')@/',
115
-                    static function (array $match) use ($tree): string {
115
+                    static function (array $match) use ($tree) : string {
116 116
                         $record = Registry::gedcomRecordFactory()->make($match[1], $tree);
117 117
 
118 118
                         return $record ? '<a href="' . e($record->url()) . '">' . $match[0] . '</a>' : $match[0];
Please login to merge, or discard this patch.
app/Http/RequestHandlers/DataFixUpdateAll.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
         /** @var Collection<GedcomRecord> $records */
95 95
         $records = $rows->map(function (stdClass $row) use ($tree): ?GedcomRecord {
96 96
             return $this->data_fix_service->getRecordByType($row->xref, $tree, $row->type);
97
-        })->filter(static function (?GedcomRecord $record) use ($module, $params): bool {
97
+        })->filter(static function (?GedcomRecord $record) use ($module, $params) : bool {
98 98
             return $record instanceof GedcomRecord && !$record->isPendingDeletion() && $module->doesRecordNeedUpdate($record, $params);
99 99
         });
100 100
 
Please login to merge, or discard this patch.
app/Http/RequestHandlers/MapDataList.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
         }
86 86
 
87 87
         // Request for a non-existent location?
88
-        if ($parent_id !== null &&  $parent->id() === null) {
88
+        if ($parent_id !== null && $parent->id() === null) {
89 89
             return redirect(route(__CLASS__));
90 90
         }
91 91
 
Please login to merge, or discard this patch.
app/Services/UserService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
      */
53 53
     public function find(?int $user_id): ?User
54 54
     {
55
-        return Registry::cache()->array()->remember('user-' . $user_id, static function () use ($user_id): ?User {
55
+        return Registry::cache()->array()->remember('user-' . $user_id, static function () use ($user_id) : ?User {
56 56
             return DB::table('user')
57 57
                 ->where('user_id', '=', $user_id)
58 58
                 ->get()
Please login to merge, or discard this patch.
app/Module/ChartsBlockModule.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
                             'generations' => 3,
118 118
                             'layout'      => PedigreeChartModule::STYLE_RIGHT,
119 119
                         ]);
120
-                        $content   = view('modules/charts/chart', [
120
+                        $content = view('modules/charts/chart', [
121 121
                             'block_id'  => $block_id,
122 122
                             'chart_url' => $chart_url,
123 123
                         ]);
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
                             'generations' => 2,
138 138
                             'chart_style' => DescendancyChartModule::CHART_STYLE_TREE,
139 139
                         ]);
140
-                        $content   = view('modules/charts/chart', [
140
+                        $content = view('modules/charts/chart', [
141 141
                             'block_id'  => $block_id,
142 142
                             'chart_url' => $chart_url,
143 143
                         ]);
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
                     break;
150 150
 
151 151
                 case 'hourglass':
152
-                    $module    = $this->module_service->findByInterface(HourglassChartModule::class)->first();
152
+                    $module = $this->module_service->findByInterface(HourglassChartModule::class)->first();
153 153
 
154 154
                     if ($module instanceof HourglassChartModule) {
155 155
                         $title     = $module->chartTitle($individual);
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
                             'ajax'        => true,
158 158
                             'generations' => 2,
159 159
                         ]);
160
-                        $content   = view('modules/charts/chart', [
160
+                        $content = view('modules/charts/chart', [
161 161
                             'block_id'  => $block_id,
162 162
                             'chart_url' => $chart_url,
163 163
                         ]);
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
         $default_xref     = $gedcomid ?: $PEDIGREE_ROOT_ID;
263 263
 
264 264
         $type = $this->getBlockSetting($block_id, 'type', 'pedigree');
265
-        $xref  = $this->getBlockSetting($block_id, 'pid', $default_xref);
265
+        $xref = $this->getBlockSetting($block_id, 'pid', $default_xref);
266 266
 
267 267
         $charts = [
268 268
             'pedigree'    => I18N::translate('Pedigree'),
Please login to merge, or discard this patch.