Passed
Push — main ( 90da5d...11225d )
by Greg
18:24 queued 11:17
created
app/Auth.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      *
56 56
      * @return bool
57 57
      */
58
-    public static function isAdmin(UserInterface|null $user = null): bool
58
+    public static function isAdmin(UserInterface | null $user = null): bool
59 59
     {
60 60
         $user ??= self::user();
61 61
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      *
71 71
      * @return bool
72 72
      */
73
-    public static function isManager(Tree $tree, UserInterface|null $user = null): bool
73
+    public static function isManager(Tree $tree, UserInterface | null $user = null): bool
74 74
     {
75 75
         $user ??= self::user();
76 76
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      *
86 86
      * @return bool
87 87
      */
88
-    public static function isModerator(Tree $tree, UserInterface|null $user = null): bool
88
+    public static function isModerator(Tree $tree, UserInterface | null $user = null): bool
89 89
     {
90 90
         $user ??= self::user();
91 91
 
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      *
103 103
      * @return bool
104 104
      */
105
-    public static function isEditor(Tree $tree, UserInterface|null $user = null): bool
105
+    public static function isEditor(Tree $tree, UserInterface | null $user = null): bool
106 106
     {
107 107
         $user ??= self::user();
108 108
 
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
      *
120 120
      * @return bool
121 121
      */
122
-    public static function isMember(Tree $tree, UserInterface|null $user = null): bool
122
+    public static function isMember(Tree $tree, UserInterface | null $user = null): bool
123 123
     {
124 124
         $user ??= self::user();
125 125
 
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
      *
137 137
      * @return int
138 138
      */
139
-    public static function accessLevel(Tree $tree, UserInterface|null $user = null): int
139
+    public static function accessLevel(Tree $tree, UserInterface | null $user = null): int
140 140
     {
141 141
         $user ??= self::user();
142 142
 
Please login to merge, or discard this patch.
app/Log.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      *
56 56
      * @return void
57 57
      */
58
-    private static function addLog(string $message, string $log_type, Tree|null $tree = null): void
58
+    private static function addLog(string $message, string $log_type, Tree | null $tree = null): void
59 59
     {
60 60
         if (Registry::container()->has(ServerRequestInterface::class)) {
61 61
             $request    = Registry::container()->get(ServerRequestInterface::class);
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      *
82 82
      * @return void
83 83
      */
84
-    public static function addConfigurationLog(string $message, Tree|null $tree = null): void
84
+    public static function addConfigurationLog(string $message, Tree | null $tree = null): void
85 85
     {
86 86
         self::addLog($message, self::TYPE_CONFIGURATION, $tree);
87 87
     }
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
@@ -378,7 +378,7 @@
 block discarded – undo
378 378
      *
379 379
      * @return string
380 380
      */
381
-    private function getDescendantsHtml(Tree $tree, array $individuals, array $ancestors, string $surname, bool $soundex_dm, bool $soundex_std, Individual $individual, Family|null $parents = null): string
381
+    private function getDescendantsHtml(Tree $tree, array $individuals, array $ancestors, string $surname, bool $soundex_dm, bool $soundex_std, Individual $individual, Family | null $parents = null): string
382 382
     {
383 383
         $module = $this->module_service->findByComponent(ModuleChartInterface::class, $tree, Auth::user())->first(static function (ModuleInterface $module) {
384 384
             return $module instanceof RelationshipsChartModule;
Please login to merge, or discard this patch.
app/Module/FamilyTreeStatisticsModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -347,7 +347,7 @@
 block discarded – undo
347 347
      *
348 348
      * @return Expression
349 349
      */
350
-    private function binaryColumn(string $column, string|null $alias = null): Expression
350
+    private function binaryColumn(string $column, string | null $alias = null): Expression
351 351
     {
352 352
         if (DB::connection()->getDriverName() === 'mysql') {
353 353
             $sql = 'CAST(' . $column . ' AS binary)';
Please login to merge, or discard this patch.
app/Module/InteractiveTree/TreeView.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@
 block discarded – undo
149 149
      *
150 150
      * @return string
151 151
      */
152
-    private function getPersonDetails(Individual $individual, Family|null $family = null): string
152
+    private function getPersonDetails(Individual $individual, Family | null $family = null): string
153 153
     {
154 154
         $chart_url = route('module', [
155 155
             'module' => 'tree',
Please login to merge, or discard this patch.
app/Module/IndividualListModule.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
         $surname_initials = $this->surnameInitials($surname_data);
217 217
 
218 218
         // We've requested a surname that doesn't currently exist.
219
-        if ($surname !== ''  && !array_key_exists($surname, $all_surns)) {
219
+        if ($surname !== '' && !array_key_exists($surname, $all_surns)) {
220 220
             $message = I18N::translate('There are no individuals with the surname “%s”', e($surname));
221 221
             FlashMessages::addMessage($message);
222 222
 
@@ -604,7 +604,7 @@  discard block
 block discarded – undo
604 604
             ->groupBy([$this->binaryColumn('n_givn')]);
605 605
 
606 606
         foreach ($query->get() as $row) {
607
-            $initial            = I18N::strtoupper(I18N::language()->initialLetter($row->n_givn));
607
+            $initial = I18N::strtoupper(I18N::language()->initialLetter($row->n_givn));
608 608
             $initials[$initial] ??= 0;
609 609
             $initials[$initial] += (int) $row->count;
610 610
         }
@@ -832,7 +832,7 @@  discard block
 block discarded – undo
832 832
      *
833 833
      * @return Expression
834 834
      */
835
-    private function binaryColumn(string $column, string|null $alias = null): Expression
835
+    private function binaryColumn(string $column, string | null $alias = null): Expression
836 836
     {
837 837
         if (DB::connection()->getDriverName() === 'mysql') {
838 838
             $sql = 'CAST(' . $column . ' AS binary)';
Please login to merge, or discard this patch.
app/Registry.php 1 patch
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
      *
117 117
      * @return CacheFactoryInterface
118 118
      */
119
-    public static function cache(CacheFactoryInterface|null $factory = null): CacheFactoryInterface
119
+    public static function cache(CacheFactoryInterface | null $factory = null): CacheFactoryInterface
120 120
     {
121 121
         if ($factory instanceof CacheFactoryInterface) {
122 122
             self::$cache_factory = $factory;
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
      *
133 133
      * @return CalendarDateFactoryInterface
134 134
      */
135
-    public static function calendarDateFactory(CalendarDateFactoryInterface|null $factory = null): CalendarDateFactoryInterface
135
+    public static function calendarDateFactory(CalendarDateFactoryInterface | null $factory = null): CalendarDateFactoryInterface
136 136
     {
137 137
         if ($factory instanceof CalendarDateFactoryInterface) {
138 138
             self::$calendar_date_factory = $factory;
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
      *
149 149
      * @return ContainerInterface
150 150
      */
151
-    public static function container(ContainerInterface|null $container = null): ContainerInterface
151
+    public static function container(ContainerInterface | null $container = null): ContainerInterface
152 152
     {
153 153
         if ($container instanceof ContainerInterface) {
154 154
             self::$container = $container;
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
      *
165 165
      * @return ElementFactoryInterface
166 166
      */
167
-    public static function elementFactory(ElementFactoryInterface|null $factory = null): ElementFactoryInterface
167
+    public static function elementFactory(ElementFactoryInterface | null $factory = null): ElementFactoryInterface
168 168
     {
169 169
         if ($factory instanceof ElementFactoryInterface) {
170 170
             self::$element_factory = $factory;
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
      *
181 181
      * @return EncodingFactoryInterface
182 182
      */
183
-    public static function encodingFactory(EncodingFactoryInterface|null $factory = null): EncodingFactoryInterface
183
+    public static function encodingFactory(EncodingFactoryInterface | null $factory = null): EncodingFactoryInterface
184 184
     {
185 185
         if ($factory instanceof EncodingFactoryInterface) {
186 186
             self::$encoding_factory = $factory;
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
      *
197 197
      * @return FamilyFactoryInterface
198 198
      */
199
-    public static function familyFactory(FamilyFactoryInterface|null $factory = null): FamilyFactoryInterface
199
+    public static function familyFactory(FamilyFactoryInterface | null $factory = null): FamilyFactoryInterface
200 200
     {
201 201
         if ($factory instanceof FamilyFactoryInterface) {
202 202
             self::$family_factory = $factory;
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
      *
213 213
      * @return FilesystemFactoryInterface
214 214
      */
215
-    public static function filesystem(FilesystemFactoryInterface|null $factory = null): FilesystemFactoryInterface
215
+    public static function filesystem(FilesystemFactoryInterface | null $factory = null): FilesystemFactoryInterface
216 216
     {
217 217
         if ($factory instanceof FilesystemFactoryInterface) {
218 218
             self::$filesystem_factory = $factory;
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
      *
229 229
      * @return GedcomRecordFactoryInterface
230 230
      */
231
-    public static function gedcomRecordFactory(GedcomRecordFactoryInterface|null $factory = null): GedcomRecordFactoryInterface
231
+    public static function gedcomRecordFactory(GedcomRecordFactoryInterface | null $factory = null): GedcomRecordFactoryInterface
232 232
     {
233 233
         if ($factory instanceof GedcomRecordFactoryInterface) {
234 234
             self::$gedcom_record_factory = $factory;
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
      *
245 245
      * @return HeaderFactoryInterface
246 246
      */
247
-    public static function headerFactory(HeaderFactoryInterface|null $factory = null): HeaderFactoryInterface
247
+    public static function headerFactory(HeaderFactoryInterface | null $factory = null): HeaderFactoryInterface
248 248
     {
249 249
         if ($factory instanceof HeaderFactoryInterface) {
250 250
             self::$header_factory = $factory;
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
      *
261 261
      * @return IdFactoryInterface
262 262
      */
263
-    public static function idFactory(IdFactoryInterface|null $factory = null): IdFactoryInterface
263
+    public static function idFactory(IdFactoryInterface | null $factory = null): IdFactoryInterface
264 264
     {
265 265
         if ($factory instanceof IdFactoryInterface) {
266 266
             self::$id_factory = $factory;
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
      *
277 277
      * @return ImageFactoryInterface
278 278
      */
279
-    public static function imageFactory(ImageFactoryInterface|null $factory = null): ImageFactoryInterface
279
+    public static function imageFactory(ImageFactoryInterface | null $factory = null): ImageFactoryInterface
280 280
     {
281 281
         if ($factory instanceof ImageFactoryInterface) {
282 282
             self::$image_factory = $factory;
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
      *
293 293
      * @return IndividualFactoryInterface
294 294
      */
295
-    public static function individualFactory(IndividualFactoryInterface|null $factory = null): IndividualFactoryInterface
295
+    public static function individualFactory(IndividualFactoryInterface | null $factory = null): IndividualFactoryInterface
296 296
     {
297 297
         if ($factory instanceof IndividualFactoryInterface) {
298 298
             self::$individual_factory = $factory;
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
      *
309 309
      * @return LocationFactoryInterface
310 310
      */
311
-    public static function locationFactory(LocationFactoryInterface|null $factory = null): LocationFactoryInterface
311
+    public static function locationFactory(LocationFactoryInterface | null $factory = null): LocationFactoryInterface
312 312
     {
313 313
         if ($factory instanceof LocationFactoryInterface) {
314 314
             self::$location_factory = $factory;
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
      *
325 325
      * @return MarkdownFactoryInterface
326 326
      */
327
-    public static function markdownFactory(MarkdownFactoryInterface|null $factory = null): MarkdownFactoryInterface
327
+    public static function markdownFactory(MarkdownFactoryInterface | null $factory = null): MarkdownFactoryInterface
328 328
     {
329 329
         if ($factory instanceof MarkdownFactoryInterface) {
330 330
             self::$markdown_factory = $factory;
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
      *
341 341
      * @return MediaFactoryInterface
342 342
      */
343
-    public static function mediaFactory(MediaFactoryInterface|null $factory = null): MediaFactoryInterface
343
+    public static function mediaFactory(MediaFactoryInterface | null $factory = null): MediaFactoryInterface
344 344
     {
345 345
         if ($factory instanceof MediaFactoryInterface) {
346 346
             self::$media_factory = $factory;
@@ -356,7 +356,7 @@  discard block
 block discarded – undo
356 356
      *
357 357
      * @return NoteFactoryInterface
358 358
      */
359
-    public static function noteFactory(NoteFactoryInterface|null $factory = null): NoteFactoryInterface
359
+    public static function noteFactory(NoteFactoryInterface | null $factory = null): NoteFactoryInterface
360 360
     {
361 361
         if ($factory instanceof NoteFactoryInterface) {
362 362
             self::$note_factory = $factory;
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
      *
373 373
      * @return RepositoryFactoryInterface
374 374
      */
375
-    public static function repositoryFactory(RepositoryFactoryInterface|null $factory = null): RepositoryFactoryInterface
375
+    public static function repositoryFactory(RepositoryFactoryInterface | null $factory = null): RepositoryFactoryInterface
376 376
     {
377 377
         if ($factory instanceof RepositoryFactoryInterface) {
378 378
             self::$repository_factory = $factory;
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
      *
389 389
      * @return ResponseFactoryInterface
390 390
      */
391
-    public static function responseFactory(ResponseFactoryInterface|null $factory = null): ResponseFactoryInterface
391
+    public static function responseFactory(ResponseFactoryInterface | null $factory = null): ResponseFactoryInterface
392 392
     {
393 393
         if ($factory instanceof ResponseFactoryInterface) {
394 394
             self::$response_factory = $factory;
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
      *
405 405
      * @return RouteFactoryInterface
406 406
      */
407
-    public static function routeFactory(RouteFactoryInterface|null $factory = null): RouteFactoryInterface
407
+    public static function routeFactory(RouteFactoryInterface | null $factory = null): RouteFactoryInterface
408 408
     {
409 409
         if ($factory instanceof RouteFactoryInterface) {
410 410
             self::$route_factory = $factory;
@@ -420,7 +420,7 @@  discard block
 block discarded – undo
420 420
      *
421 421
      * @return SharedNoteFactoryInterface
422 422
      */
423
-    public static function sharedNoteFactory(SharedNoteFactoryInterface|null $factory = null): SharedNoteFactoryInterface
423
+    public static function sharedNoteFactory(SharedNoteFactoryInterface | null $factory = null): SharedNoteFactoryInterface
424 424
     {
425 425
         if ($factory instanceof SharedNoteFactoryInterface) {
426 426
             self::$shared_note_factory = $factory;
@@ -436,7 +436,7 @@  discard block
 block discarded – undo
436 436
      *
437 437
      * @return SlugFactoryInterface
438 438
      */
439
-    public static function slugFactory(SlugFactoryInterface|null $factory = null): SlugFactoryInterface
439
+    public static function slugFactory(SlugFactoryInterface | null $factory = null): SlugFactoryInterface
440 440
     {
441 441
         if ($factory instanceof SlugFactoryInterface) {
442 442
             self::$slug_factory = $factory;
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
      *
453 453
      * @return SourceFactoryInterface
454 454
      */
455
-    public static function sourceFactory(SourceFactoryInterface|null $factory = null): SourceFactoryInterface
455
+    public static function sourceFactory(SourceFactoryInterface | null $factory = null): SourceFactoryInterface
456 456
     {
457 457
         if ($factory instanceof SourceFactoryInterface) {
458 458
             self::$source_factory = $factory;
@@ -468,7 +468,7 @@  discard block
 block discarded – undo
468 468
      *
469 469
      * @return SubmissionFactoryInterface
470 470
      */
471
-    public static function submissionFactory(SubmissionFactoryInterface|null $factory = null): SubmissionFactoryInterface
471
+    public static function submissionFactory(SubmissionFactoryInterface | null $factory = null): SubmissionFactoryInterface
472 472
     {
473 473
         if ($factory instanceof SubmissionFactoryInterface) {
474 474
             self::$submission_factory = $factory;
@@ -484,7 +484,7 @@  discard block
 block discarded – undo
484 484
      *
485 485
      * @return SubmitterFactoryInterface
486 486
      */
487
-    public static function submitterFactory(SubmitterFactoryInterface|null $factory = null): SubmitterFactoryInterface
487
+    public static function submitterFactory(SubmitterFactoryInterface | null $factory = null): SubmitterFactoryInterface
488 488
     {
489 489
         if ($factory instanceof SubmitterFactoryInterface) {
490 490
             self::$submitter_factory = $factory;
@@ -500,7 +500,7 @@  discard block
 block discarded – undo
500 500
      *
501 501
      * @return SurnameTraditionFactoryInterface
502 502
      */
503
-    public static function surnameTraditionFactory(SurnameTraditionFactoryInterface|null $factory = null): SurnameTraditionFactoryInterface
503
+    public static function surnameTraditionFactory(SurnameTraditionFactoryInterface | null $factory = null): SurnameTraditionFactoryInterface
504 504
     {
505 505
         if ($factory instanceof SurnameTraditionFactoryInterface) {
506 506
             self::$surname_tradition_factory = $factory;
@@ -516,7 +516,7 @@  discard block
 block discarded – undo
516 516
      *
517 517
      * @return TimeFactoryInterface
518 518
      */
519
-    public static function timeFactory(TimeFactoryInterface|null $factory = null): TimeFactoryInterface
519
+    public static function timeFactory(TimeFactoryInterface | null $factory = null): TimeFactoryInterface
520 520
     {
521 521
         if ($factory instanceof TimeFactoryInterface) {
522 522
             self::$time_factory = $factory;
@@ -532,7 +532,7 @@  discard block
 block discarded – undo
532 532
      *
533 533
      * @return TimestampFactoryInterface
534 534
      */
535
-    public static function timestampFactory(TimestampFactoryInterface|null $factory = null): TimestampFactoryInterface
535
+    public static function timestampFactory(TimestampFactoryInterface | null $factory = null): TimestampFactoryInterface
536 536
     {
537 537
         if ($factory instanceof TimestampFactoryInterface) {
538 538
             self::$timestamp_factory = $factory;
@@ -548,7 +548,7 @@  discard block
 block discarded – undo
548 548
      *
549 549
      * @return XrefFactoryInterface
550 550
      */
551
-    public static function xrefFactory(XrefFactoryInterface|null $factory = null): XrefFactoryInterface
551
+    public static function xrefFactory(XrefFactoryInterface | null $factory = null): XrefFactoryInterface
552 552
     {
553 553
         if ($factory instanceof XrefFactoryInterface) {
554 554
             self::$xref_factory = $factory;
Please login to merge, or discard this patch.
app/Fact.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -313,7 +313,7 @@
 block discarded – undo
313 313
      *
314 314
      * @return bool
315 315
      */
316
-    public function canShow(int|null $access_level = null): bool
316
+    public function canShow(int | null $access_level = null): bool
317 317
     {
318 318
         $access_level ??= Auth::accessLevel($this->record->tree());
319 319
 
Please login to merge, or discard this patch.
app/Services/LinkedRecordService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      *
86 86
      * @return Collection<int,Family>
87 87
      */
88
-    public function linkedFamilies(GedcomRecord $record, string|null $link_type = null): Collection
88
+    public function linkedFamilies(GedcomRecord $record, string | null $link_type = null): Collection
89 89
     {
90 90
         $query = DB::table('families')
91 91
             ->join('link', static function (JoinClause $join): void {
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
      *
117 117
      * @return Collection<int,Individual>
118 118
      */
119
-    public function linkedIndividuals(GedcomRecord $record, string|null $link_type = null): Collection
119
+    public function linkedIndividuals(GedcomRecord $record, string | null $link_type = null): Collection
120 120
     {
121 121
         $query = DB::table('individuals')
122 122
             ->join('link', static function (JoinClause $join): void {
Please login to merge, or discard this patch.