Passed
Pull Request — main (#3854)
by Jonathan
07:38
created
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.
app/Elements/NameRomanizedVariation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
  */
36 36
 class NameRomanizedVariation extends AbstractElement
37 37
 {
38
-    protected const SUBTAGS = ['NPFX', 'GIVN', 'SPFX','SURN', 'NSFX', 'NICK', 'TYPE'];
38
+    protected const SUBTAGS = ['NPFX', 'GIVN', 'SPFX', 'SURN', 'NSFX', 'NICK', 'TYPE'];
39 39
 
40 40
     protected const MAXIMUM_LENGTH = 120;
41 41
 
Please login to merge, or discard this patch.
app/Elements/NamePhoneticVariation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
  */
30 30
 class NamePhoneticVariation extends AbstractElement
31 31
 {
32
-    protected const SUBTAGS = ['NPFX', 'GIVN', 'SPFX','SURN', 'NSFX', 'NICK', 'TYPE'];
32
+    protected const SUBTAGS = ['NPFX', 'GIVN', 'SPFX', 'SURN', 'NSFX', 'NICK', 'TYPE'];
33 33
 
34 34
     protected const MAXIMUM_LENGTH = 120;
35 35
 }
Please login to merge, or discard this patch.
app/Module/TimelineChartModule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 {
47 47
     use ModuleChartTrait;
48 48
 
49
-    protected const ROUTE_URL  = '/tree/{tree}/timeline-{scale}';
49
+    protected const ROUTE_URL = '/tree/{tree}/timeline-{scale}';
50 50
 
51 51
     // Defaults
52 52
     protected const DEFAULT_SCALE      = 10;
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 
154 154
         $params = (array) $request->getParsedBody();
155 155
 
156
-        $add  = $params['add'] ?? '';
156
+        $add = $params['add'] ?? '';
157 157
 
158 158
         Auth::checkComponentAccess($this, ModuleChartInterface::class, $tree, $user);
159 159
 
Please login to merge, or discard this patch.
app/Http/RequestHandlers/ImportThumbnailsData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@
 block discarded – undo
194 194
         // The original filename was generated from the thumbnail filename.
195 195
         // It may not actually exist.
196 196
         try {
197
-            $file_exists =  $data_filesystem->fileExists($original);
197
+            $file_exists = $data_filesystem->fileExists($original);
198 198
         } catch (FilesystemException | UnableToRetrieveMetadata $ex) {
199 199
             $file_exists = false;
200 200
         }
Please login to merge, or discard this patch.
app/Http/RequestHandlers/ManageMediaData.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
                     $create_form = '';
234 234
                     foreach ($media_trees as $media_tree => $media_directory) {
235 235
                         if (str_starts_with($row[0], $media_directory)) {
236
-                            $tmp         = substr($row[0], strlen($media_directory));
236
+                            $tmp = substr($row[0], strlen($media_directory));
237 237
                             $create_form .=
238 238
                                 '<p><a href="#" data-toggle="modal" data-backdrop="static" data-target="#modal-create-media-from-file" data-file="' . e($tmp) . '" data-url="' . e(route(CreateMediaObjectFromFile::class, ['tree' => $media_tree])) . '" onclick="document.getElementById(\'modal-create-media-from-file-form\').action=this.dataset.url; document.getElementById(\'file\').value=this.dataset.file;">' . I18N::translate('Create') . '</a> — ' . e($media_tree) . '<p>';
239 239
                         }
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
                 // This will work for local filesystems.  For remote filesystems, we will
339 339
                 // need to copy the file locally to work out the image size.
340 340
                 $imgsize = getimagesizefromstring($data_filesystem->read($file));
341
-                $html    .= '<dt>' . I18N::translate('Image dimensions') . '</dt>';
341
+                $html .= '<dt>' . I18N::translate('Image dimensions') . '</dt>';
342 342
                 /* I18N: image dimensions, width × height */
343 343
                 $html .= '<dd>' . I18N::translate('%1$s × %2$s pixels', I18N::number($imgsize['0']), I18N::number($imgsize['1'])) . '</dd>';
344 344
             } catch (FilesystemException | UnableToReadFile | Throwable $ex) {
Please login to merge, or discard this patch.
app/Http/RequestHandlers/IndividualPage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@
 block discarded – undo
136 136
         }
137 137
 
138 138
         $shares = $this->module_service->findByInterface(ModuleShareInterface::class)
139
-            ->map(fn (ModuleShareInterface $module) => $module->share($individual))
139
+            ->map(fn(ModuleShareInterface $module) => $module->share($individual))
140 140
             ->filter();
141 141
 
142 142
         return $this->viewResponse('individual-page', [
Please login to merge, or discard this patch.
app/Module/ShareAnniversaryModule.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
     {
101 101
         if ($record instanceof Individual) {
102 102
             $facts = $record->facts(static::INDIVIDUAL_EVENTS, true)
103
-                ->merge($record->spouseFamilies()->map(fn (Family $family): Collection => $family->facts(static::FAMILY_EVENTS, true)));
103
+                ->merge($record->spouseFamilies()->map(fn(Family $family): Collection => $family->facts(static::FAMILY_EVENTS, true)));
104 104
         } elseif ($record instanceof Family) {
105 105
             $facts = $record->facts(static::FAMILY_EVENTS, true);
106 106
         } else {
@@ -110,11 +110,11 @@  discard block
 block discarded – undo
110 110
         // iCalendar only supports exact Gregorian dates.
111 111
         $facts = $facts
112 112
             ->flatten()
113
-            ->filter(fn (Fact $fact): bool => $fact->date()->isOK())
114
-            ->filter(fn (Fact $fact): bool => $fact->date()->qual1 === '')
115
-            ->filter(fn (Fact $fact): bool => $fact->date()->minimumDate() instanceof GregorianDate)
116
-            ->filter(fn (Fact $fact): bool => $fact->date()->minimumDate() === $fact->date()->maximumDate())
117
-            ->mapWithKeys(fn (Fact $fact): array => [
113
+            ->filter(fn(Fact $fact): bool => $fact->date()->isOK())
114
+            ->filter(fn(Fact $fact): bool => $fact->date()->qual1 === '')
115
+            ->filter(fn(Fact $fact): bool => $fact->date()->minimumDate() instanceof GregorianDate)
116
+            ->filter(fn(Fact $fact): bool => $fact->date()->minimumDate() === $fact->date()->maximumDate())
117
+            ->mapWithKeys(fn(Fact $fact): array => [
118 118
                 route(static::class, ['tree' => $record->tree()->name(), 'xref' => $fact->record()->xref(), 'fact_id' => $fact->id()]) =>
119 119
                     $fact->label() . ' — ' . $fact->date()->display(false, null, false),
120 120
             ]);
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
         $record = Auth::checkRecordAccess($record);
150 150
 
151 151
         $fact = $record->facts()
152
-            ->filter(fn (Fact $fact): bool => $fact->id() === $fact_id)
152
+            ->filter(fn(Fact $fact): bool => $fact->id() === $fact_id)
153 153
             ->first();
154 154
 
155 155
         if ($fact instanceof Fact) {
Please login to merge, or discard this patch.
app/Functions/FunctionsPrint.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
                     if ($note->canShow()) {
173 173
                         $noterec = $note->gedcom();
174 174
                         $nt      = preg_match("/0 @$nmatch[1]@ NOTE (.*)/", $noterec, $n1match);
175
-                        $data    .= self::printNoteRecord($tree, $nt > 0 ? $n1match[1] : '', 1, $noterec);
175
+                        $data .= self::printNoteRecord($tree, $nt > 0 ? $n1match[1] : '', 1, $noterec);
176 176
                     }
177 177
                 } else {
178 178
                     $data = '<div class="fact_NOTE"><span class="label">' . I18N::translate('Note') . '</span>: <span class="field error">' . $nmatch[1] . '</span></div>';
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
                         }
273 273
                     },
274 274
                     $age_string
275
-                ) ;
275
+                );
276 276
         }
277 277
     }
278 278
 
@@ -429,7 +429,7 @@  discard block
 block discarded – undo
429 429
                 if (preg_match_all('/\n3 (?:_HEB|ROMN) (.+)/', $placerec, $matches)) {
430 430
                     foreach ($matches[1] as $match) {
431 431
                         $wt_place = new Place($match, $tree);
432
-                        $html     .= ' - ' . $wt_place->fullName();
432
+                        $html .= ' - ' . $wt_place->fullName();
433 433
                     }
434 434
                 }
435 435
 
@@ -443,7 +443,7 @@  discard block
 block discarded – undo
443 443
                     // Links to external maps
444 444
                     $html .= app(ModuleService::class)
445 445
                         ->findByInterface(ModuleMapLinkInterface::class)
446
-                        ->map(fn (ModuleMapLinkInterface $module): string => ' ' . $module->mapLink($event))
446
+                        ->map(fn(ModuleMapLinkInterface $module): string => ' ' . $module->mapLink($event))
447 447
                         ->implode('');
448 448
                 }
449 449
 
Please login to merge, or discard this patch.