Passed
Push — main ( ac2380...850776 )
by Greg
18:19 queued 09:07
created
app/Contracts/LocationFactoryInterface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     /**
32 32
      * Create a Location.
33 33
      */
34
-    public function make(string $xref, Tree $tree, string|null $gedcom = null): Location|null;
34
+    public function make(string $xref, Tree $tree, string | null $gedcom = null): Location | null;
35 35
 
36 36
     /**
37 37
      * Create a Location from a row in the database.
@@ -53,5 +53,5 @@  discard block
 block discarded – undo
53 53
      *
54 54
      * @return Location
55 55
      */
56
-    public function new(string $xref, string $gedcom, string|null $pending, Tree $tree): Location;
56
+    public function new(string $xref, string $gedcom, string | null $pending, Tree $tree): Location;
57 57
 }
Please login to merge, or discard this patch.
app/Auth.php 1 patch
Spacing   +19 added lines, -19 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
 
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
     /**
155 155
      * The ID of the authenticated user, from the current session.
156 156
      */
157
-    public static function id(): int|null
157
+    public static function id(): int | null
158 158
     {
159 159
         $wt_user = Session::get('wt_user');
160 160
 
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
      * @throws HttpNotFoundException
222 222
      * @throws HttpAccessDeniedException
223 223
      */
224
-    public static function checkFamilyAccess(Family|null $family, bool $edit = false): Family
224
+    public static function checkFamilyAccess(Family | null $family, bool $edit = false): Family
225 225
     {
226 226
         $message = I18N::translate('This family does not exist or you do not have permission to view it.');
227 227
 
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
      * @throws HttpNotFoundException
251 251
      * @throws HttpAccessDeniedException
252 252
      */
253
-    public static function checkHeaderAccess(Header|null $header, bool $edit = false): Header
253
+    public static function checkHeaderAccess(Header | null $header, bool $edit = false): Header
254 254
     {
255 255
         $message = I18N::translate('This record does not exist or you do not have permission to view it.');
256 256
 
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
      * @throws HttpNotFoundException
281 281
      * @throws HttpAccessDeniedException
282 282
      */
283
-    public static function checkIndividualAccess(Individual|null $individual, bool $edit = false, bool $chart = false): Individual
283
+    public static function checkIndividualAccess(Individual | null $individual, bool $edit = false, bool $chart = false): Individual
284 284
     {
285 285
         $message = I18N::translate('This individual does not exist or you do not have permission to view it.');
286 286
 
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
      * @throws HttpNotFoundException
314 314
      * @throws HttpAccessDeniedException
315 315
      */
316
-    public static function checkLocationAccess(Location|null $location, bool $edit = false): Location
316
+    public static function checkLocationAccess(Location | null $location, bool $edit = false): Location
317 317
     {
318 318
         $message = I18N::translate('This record does not exist or you do not have permission to view it.');
319 319
 
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
      * @throws HttpNotFoundException
343 343
      * @throws HttpAccessDeniedException
344 344
      */
345
-    public static function checkMediaAccess(Media|null $media, bool $edit = false): Media
345
+    public static function checkMediaAccess(Media | null $media, bool $edit = false): Media
346 346
     {
347 347
         $message = I18N::translate('This media object does not exist or you do not have permission to view it.');
348 348
 
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
      * @throws HttpNotFoundException
372 372
      * @throws HttpAccessDeniedException
373 373
      */
374
-    public static function checkNoteAccess(Note|null $note, bool $edit = false): Note
374
+    public static function checkNoteAccess(Note | null $note, bool $edit = false): Note
375 375
     {
376 376
         $message = I18N::translate('This note does not exist or you do not have permission to view it.');
377 377
 
@@ -400,7 +400,7 @@  discard block
 block discarded – undo
400 400
      * @throws HttpNotFoundException
401 401
      * @throws HttpAccessDeniedException
402 402
      */
403
-    public static function checkSharedNoteAccess(SharedNote|null $shared_note, bool $edit = false): SharedNote
403
+    public static function checkSharedNoteAccess(SharedNote | null $shared_note, bool $edit = false): SharedNote
404 404
     {
405 405
         $message = I18N::translate('This note does not exist or you do not have permission to view it.');
406 406
 
@@ -429,7 +429,7 @@  discard block
 block discarded – undo
429 429
      * @throws HttpNotFoundException
430 430
      * @throws HttpAccessDeniedException
431 431
      */
432
-    public static function checkRecordAccess(GedcomRecord|null $record, bool $edit = false): GedcomRecord
432
+    public static function checkRecordAccess(GedcomRecord | null $record, bool $edit = false): GedcomRecord
433 433
     {
434 434
         $message = I18N::translate('This record does not exist or you do not have permission to view it.');
435 435
 
@@ -458,7 +458,7 @@  discard block
 block discarded – undo
458 458
      * @throws HttpNotFoundException
459 459
      * @throws HttpAccessDeniedException
460 460
      */
461
-    public static function checkRepositoryAccess(Repository|null $repository, bool $edit = false): Repository
461
+    public static function checkRepositoryAccess(Repository | null $repository, bool $edit = false): Repository
462 462
     {
463 463
         $message = I18N::translate('This repository does not exist or you do not have permission to view it.');
464 464
 
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
      * @throws HttpNotFoundException
488 488
      * @throws HttpAccessDeniedException
489 489
      */
490
-    public static function checkSourceAccess(Source|null $source, bool $edit = false): Source
490
+    public static function checkSourceAccess(Source | null $source, bool $edit = false): Source
491 491
     {
492 492
         $message = I18N::translate('This source does not exist or you do not have permission to view it.');
493 493
 
@@ -516,7 +516,7 @@  discard block
 block discarded – undo
516 516
      * @throws HttpNotFoundException
517 517
      * @throws HttpAccessDeniedException
518 518
      */
519
-    public static function checkSubmitterAccess(Submitter|null $submitter, bool $edit = false): Submitter
519
+    public static function checkSubmitterAccess(Submitter | null $submitter, bool $edit = false): Submitter
520 520
     {
521 521
         $message = I18N::translate('This record does not exist or you do not have permission to view it.');
522 522
 
@@ -545,7 +545,7 @@  discard block
 block discarded – undo
545 545
      * @throws HttpNotFoundException
546 546
      * @throws HttpAccessDeniedException
547 547
      */
548
-    public static function checkSubmissionAccess(Submission|null $submission, bool $edit = false): Submission
548
+    public static function checkSubmissionAccess(Submission | null $submission, bool $edit = false): Submission
549 549
     {
550 550
         $message = I18N::translate('This record does not exist or you do not have permission to view it.');
551 551
 
Please login to merge, or discard this patch.
app/PlaceLocation.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      *
72 72
      * @return int|null
73 73
      */
74
-    public function id(): int|null
74
+    public function id(): int | null
75 75
     {
76 76
         // The "top-level" location won't exist in the database.
77 77
         if ($this->parts->isEmpty()) {
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
     /**
171 171
      * Latitude of the location.
172 172
      */
173
-    public function latitude(): float|null
173
+    public function latitude(): float | null
174 174
     {
175 175
         return $this->details()->latitude;
176 176
     }
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
     /**
179 179
      * Longitude of the location.
180 180
      */
181
-    public function longitude(): float|null
181
+    public function longitude(): float | null
182 182
     {
183 183
         return $this->details()->longitude;
184 184
     }
Please login to merge, or discard this patch.
app/Fact.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
     /**
278 278
      * Get the PLAC:MAP:LATI for the fact.
279 279
      */
280
-    public function latitude(): float|null
280
+    public function latitude(): float | null
281 281
     {
282 282
         if (preg_match('/\n4 LATI (.+)/', $this->gedcom, $match)) {
283 283
             $gedcom_service = new GedcomService();
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
     /**
292 292
      * Get the PLAC:MAP:LONG for the fact.
293 293
      */
294
-    public function longitude(): float|null
294
+    public function longitude(): float | null
295 295
     {
296 296
         if (preg_match('/\n4 LONG (.+)/', $this->gedcom, $match)) {
297 297
             $gedcom_service = new GedcomService();
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
      *
310 310
      * @return bool
311 311
      */
312
-    public function canShow(int|null $access_level = null): bool
312
+    public function canShow(int | null $access_level = null): bool
313 313
     {
314 314
         $access_level ??= Auth::accessLevel($this->record->tree());
315 315
 
Please login to merge, or discard this patch.
app/Module/UserFavoritesModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -252,7 +252,7 @@
 block discarded – undo
252 252
         ]);
253 253
     }
254 254
 
255
-    private function getRecordForType(string $type, string $xref, Tree $tree): GedcomRecord|null
255
+    private function getRecordForType(string $type, string $xref, Tree $tree): GedcomRecord | null
256 256
     {
257 257
         switch ($type) {
258 258
             case 'indi':
Please login to merge, or discard this patch.
app/Module/ModuleThemeInterface.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      *
43 43
      * @return Menu|null
44 44
      */
45
-    public function menuThemes(): Menu|null;
45
+    public function menuThemes(): Menu | null;
46 46
 
47 47
     /**
48 48
      * Generate a list of items for the main menu.
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      *
52 52
      * @return array<Menu>
53 53
      */
54
-    public function genealogyMenu(Tree|null $tree): array;
54
+    public function genealogyMenu(Tree | null $tree): array;
55 55
 
56 56
     /**
57 57
      * Generate a list of items for the user menu.
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      *
61 61
      * @return array<Menu>
62 62
      */
63
-    public function userMenu(Tree|null $tree): array;
63
+    public function userMenu(Tree | null $tree): array;
64 64
 
65 65
     /**
66 66
      * A list of CSS files to include for this page.
Please login to merge, or discard this patch.
app/Module/InteractiveTreeModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@
 block discarded – undo
141 141
      *
142 142
      * @return Menu|null
143 143
      */
144
-    public function chartBoxMenu(Individual $individual): Menu|null
144
+    public function chartBoxMenu(Individual $individual): Menu | null
145 145
     {
146 146
         return $this->chartMenu($individual);
147 147
     }
Please login to merge, or discard this patch.
app/Module/SourcesTabModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     use ModuleTabTrait;
34 34
 
35 35
     /** @var Collection<array-key,Fact>|null  */
36
-    private Collection|null $facts = null;
36
+    private Collection | null $facts = null;
37 37
 
38 38
     private ClipboardService $clipboard_service;
39 39
 
Please login to merge, or discard this patch.
app/Module/ReportsMenuModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
      *
85 85
      * @return Menu|null
86 86
      */
87
-    public function getMenu(Tree $tree): Menu|null
87
+    public function getMenu(Tree $tree): Menu | null
88 88
     {
89 89
         $request    = Registry::container()->get(ServerRequestInterface::class);
90 90
         $xref       = Validator::attributes($request)->isXref()->string('xref', '');
Please login to merge, or discard this patch.