Passed
Push — dbal ( 545eb7...a65111 )
by Greg
13:50 queued 06:40
created
app/Module/ModuleChartInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     /**
31 31
      * A menu item for this chart for an individual box in a chart.
32 32
      */
33
-    public function chartBoxMenu(Individual $individual): Menu|null;
33
+    public function chartBoxMenu(Individual $individual): Menu | null;
34 34
 
35 35
     /**
36 36
      * A main menu item for this chart.
Please login to merge, or discard this patch.
app/Module/PlaceHierarchyListModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -338,7 +338,7 @@
 block discarded – undo
338 338
      *
339 339
      * @return array{columns:array<array<Place>>,place:Place,tree:Tree,col_class:string}|null
340 340
      */
341
-    private function getHierarchy(Place $place): array|null
341
+    private function getHierarchy(Place $place): array | null
342 342
     {
343 343
         $child_places = $place->getChildPlaces();
344 344
         $numfound     = count($child_places);
Please login to merge, or discard this patch.
app/Module/ChartsMenuModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
     /**
81 81
      * A menu, to be added to the main application menu.
82 82
      */
83
-    public function getMenu(Tree $tree): Menu|null
83
+    public function getMenu(Tree $tree): Menu | null
84 84
     {
85 85
         $request    = Registry::container()->get(ServerRequestInterface::class);
86 86
         $xref       = Validator::attributes($request)->isXref()->string('xref', '');
Please login to merge, or discard this patch.
app/Module/ModuleThemeTrait.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
      *
201 201
      * @return Menu|null
202 202
      */
203
-    public function menuChangeBlocks(Tree $tree): Menu|null
203
+    public function menuChangeBlocks(Tree $tree): Menu | null
204 204
     {
205 205
         $request = Registry::container()->get(ServerRequestInterface::class);
206 206
         $route   = Validator::attributes($request)->route();
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
      *
224 224
      * @return Menu|null
225 225
      */
226
-    public function menuControlPanel(Tree $tree): Menu|null
226
+    public function menuControlPanel(Tree $tree): Menu | null
227 227
     {
228 228
         if (Auth::isAdmin()) {
229 229
             return new Menu(I18N::translate('Control panel'), route(ControlPanel::class), 'menu-admin');
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
      *
242 242
      * @return Menu|null
243 243
      */
244
-    public function menuLanguages(): Menu|null
244
+    public function menuLanguages(): Menu | null
245 245
     {
246 246
         $menu = new Menu(I18N::translate('Language'), '#', 'menu-language');
247 247
 
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
      *
266 266
      * @return Menu|null
267 267
      */
268
-    public function menuLogin(): Menu|null
268
+    public function menuLogin(): Menu | null
269 269
     {
270 270
         if (Auth::check()) {
271 271
             return null;
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
      *
295 295
      * @return Menu|null
296 296
      */
297
-    public function menuLogout(): Menu|null
297
+    public function menuLogout(): Menu | null
298 298
     {
299 299
         if (Auth::check()) {
300 300
             $parameters = [
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
      *
316 316
      * @return Menu
317 317
      */
318
-    public function menuMyAccount(Tree|null $tree): Menu
318
+    public function menuMyAccount(Tree | null $tree): Menu
319 319
     {
320 320
         $url = route(AccountEdit::class, ['tree' => $tree?->name()]);
321 321
 
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
      *
330 330
      * @return Menu|null
331 331
      */
332
-    public function menuMyIndividualRecord(Tree $tree): Menu|null
332
+    public function menuMyIndividualRecord(Tree $tree): Menu | null
333 333
     {
334 334
         $record = Registry::individualFactory()->make($tree->getUserPreference(Auth::user(), UserInterface::PREF_TREE_ACCOUNT_XREF), $tree);
335 335
 
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
      *
360 360
      * @return Menu|null
361 361
      */
362
-    public function menuMyPages(Tree|null $tree): Menu|null
362
+    public function menuMyPages(Tree | null $tree): Menu | null
363 363
     {
364 364
         if (Auth::check()) {
365 365
             if ($tree instanceof Tree) {
@@ -386,7 +386,7 @@  discard block
 block discarded – undo
386 386
      *
387 387
      * @return Menu|null
388 388
      */
389
-    public function menuMyPedigree(Tree $tree): Menu|null
389
+    public function menuMyPedigree(Tree $tree): Menu | null
390 390
     {
391 391
         $my_xref = $tree->getUserPreference(Auth::user(), UserInterface::PREF_TREE_ACCOUNT_XREF);
392 392
 
@@ -417,7 +417,7 @@  discard block
 block discarded – undo
417 417
      *
418 418
      * @return Menu|null
419 419
      */
420
-    public function menuPendingChanges(Tree|null $tree): Menu|null
420
+    public function menuPendingChanges(Tree | null $tree): Menu | null
421 421
     {
422 422
         if ($tree instanceof Tree && $tree->hasPendingEdit() && Auth::isModerator($tree)) {
423 423
             $request = Registry::container()->get(ServerRequestInterface::class);
@@ -438,7 +438,7 @@  discard block
 block discarded – undo
438 438
      *
439 439
      * @return Menu|null
440 440
      */
441
-    public function menuThemes(): Menu|null
441
+    public function menuThemes(): Menu | null
442 442
     {
443 443
         $module_service = Registry::container()->get(ModuleService::class);
444 444
         $themes         = $module_service->findByInterface(ModuleThemeInterface::class, false, true);
@@ -467,7 +467,7 @@  discard block
 block discarded – undo
467 467
      *
468 468
      * @return array<Menu>
469 469
      */
470
-    public function genealogyMenu(Tree|null $tree): array
470
+    public function genealogyMenu(Tree | null $tree): array
471 471
     {
472 472
         if ($tree === null) {
473 473
             return [];
@@ -477,7 +477,7 @@  discard block
 block discarded – undo
477 477
 
478 478
         return $module_service
479 479
             ->findByComponent(ModuleMenuInterface::class, $tree, Auth::user())
480
-            ->map(static fn (ModuleMenuInterface $menu): Menu|null => $menu->getMenu($tree))
480
+            ->map(static fn (ModuleMenuInterface $menu): Menu | null => $menu->getMenu($tree))
481 481
             ->filter()
482 482
             ->all();
483 483
     }
@@ -501,7 +501,7 @@  discard block
 block discarded – undo
501 501
      *
502 502
      * @return array<Menu>
503 503
      */
504
-    public function userMenu(Tree|null $tree): array
504
+    public function userMenu(Tree | null $tree): array
505 505
     {
506 506
         return array_filter([
507 507
             $this->menuPendingChanges($tree),
Please login to merge, or discard this patch.
app/Module/AncestorsChartModule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     // Defaults
51 51
     public const DEFAULT_GENERATIONS = '4';
52 52
     public const DEFAULT_STYLE       = self::CHART_STYLE_TREE;
53
-    protected const DEFAULT_PARAMETERS  = [
53
+    protected const DEFAULT_PARAMETERS = [
54 54
         'generations' => self::DEFAULT_GENERATIONS,
55 55
         'style'       => self::DEFAULT_STYLE,
56 56
     ];
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
     /**
121 121
      * Return a menu item for this chart - for use in individual boxes.
122 122
      */
123
-    public function chartBoxMenu(Individual $individual): Menu|null
123
+    public function chartBoxMenu(Individual $individual): Menu | null
124 124
     {
125 125
         return $this->chartMenu($individual);
126 126
     }
Please login to merge, or discard this patch.
app/Module/TreesMenuModule.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
      * @return Menu|null
87 87
      */
88
-    public function getMenu(Tree $tree): Menu|null
88
+    public function getMenu(Tree $tree): Menu | null
89 89
     {
90 90
         $trees = $this->tree_service->all();
91 91
 
Please login to merge, or discard this patch.
app/Module/FixPlaceNames.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      *
92 92
      * @return Collection<int,string>|null
93 93
      */
94
-    protected function familiesToFix(Tree $tree, array $params): Collection|null
94
+    protected function familiesToFix(Tree $tree, array $params): Collection | null
95 95
     {
96 96
         if ($params['search-for'] === '' || $params['replace-with'] === '') {
97 97
             return null;
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
      *
114 114
      * @return Collection<int,string>|null
115 115
      */
116
-    protected function individualsToFix(Tree $tree, array $params): Collection|null
116
+    protected function individualsToFix(Tree $tree, array $params): Collection | null
117 117
     {
118 118
         if ($params['search-for'] === '' || $params['replace-with'] === '') {
119 119
             return null;
Please login to merge, or discard this patch.
app/Module/FixSearchAndReplace.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
      *
134 134
      * @return Collection<int,string>|null
135 135
      */
136
-    protected function familiesToFix(Tree $tree, array $params): Collection|null
136
+    protected function familiesToFix(Tree $tree, array $params): Collection | null
137 137
     {
138 138
         if ($params['type'] !== Family::RECORD_TYPE || $params['search-for'] === '') {
139 139
             return null;
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
      *
155 155
      * @return Collection<int,string>|null
156 156
      */
157
-    protected function individualsToFix(Tree $tree, array $params): Collection|null
157
+    protected function individualsToFix(Tree $tree, array $params): Collection | null
158 158
     {
159 159
         if ($params['type'] !== Individual::RECORD_TYPE || $params['search-for'] === '') {
160 160
             return null;
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
      *
178 178
      * @return Collection<int,string>|null
179 179
      */
180
-    protected function locationsToFix(Tree $tree, array $params): Collection|null
180
+    protected function locationsToFix(Tree $tree, array $params): Collection | null
181 181
     {
182 182
         if ($params['type'] !== Location::RECORD_TYPE || $params['search-for'] === '') {
183 183
             return null;
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
      *
202 202
      * @return Collection<int,string>|null
203 203
      */
204
-    protected function mediaToFix(Tree $tree, array $params): Collection|null
204
+    protected function mediaToFix(Tree $tree, array $params): Collection | null
205 205
     {
206 206
         if ($params['type'] !== Media::RECORD_TYPE || $params['search-for'] === '') {
207 207
             return null;
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
      *
225 225
      * @return Collection<int,string>|null
226 226
      */
227
-    protected function notesToFix(Tree $tree, array $params): Collection|null
227
+    protected function notesToFix(Tree $tree, array $params): Collection | null
228 228
     {
229 229
         if ($params['type'] !== Note::RECORD_TYPE || $params['search-for'] === '') {
230 230
             return null;
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
      *
249 249
      * @return Collection<int,string>|null
250 250
      */
251
-    protected function repositoriesToFix(Tree $tree, array $params): Collection|null
251
+    protected function repositoriesToFix(Tree $tree, array $params): Collection | null
252 252
     {
253 253
         if ($params['type'] !== Repository::RECORD_TYPE || $params['search-for'] === '') {
254 254
             return null;
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
      *
273 273
      * @return Collection<int,string>|null
274 274
      */
275
-    protected function sourcesToFix(Tree $tree, array $params): Collection|null
275
+    protected function sourcesToFix(Tree $tree, array $params): Collection | null
276 276
     {
277 277
         if ($params['type'] !== Source::RECORD_TYPE || $params['search-for'] === '') {
278 278
             return null;
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
      *
295 295
      * @return Collection<int,string>|null
296 296
      */
297
-    protected function submittersToFix(Tree $tree, array $params): Collection|null
297
+    protected function submittersToFix(Tree $tree, array $params): Collection | null
298 298
     {
299 299
         if ($params['type'] !== Submitter::RECORD_TYPE || $params['search-for'] === '') {
300 300
             return null;
Please login to merge, or discard this patch.
app/Module/ColorsTheme.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 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
         return array_filter([
66 66
             $this->menuPendingChanges($tree),
Please login to merge, or discard this patch.