Passed
Push — testing ( a22464 )
by Greg
11:13
created
app/Statistics/Repository/IndividualRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -588,7 +588,7 @@
 block discarded – undo
588 588
 
589 589
         $module = $module_service
590 590
             ->findByComponent(ModuleListInterface::class, $this->tree, Auth::user())
591
-            ->first(static fn (ModuleInterface $module): bool => $module instanceof IndividualListModule);
591
+            ->first(static fn(ModuleInterface $module): bool => $module instanceof IndividualListModule);
592 592
 
593 593
         if ($type === 'list') {
594 594
             return view('lists/surnames-bullet-list', [
Please login to merge, or discard this patch.
app/Module/ModuleThemeTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
 
398 398
         $pedigree_chart = $module_service
399 399
             ->findByComponent(ModuleChartInterface::class, $tree, Auth::user())
400
-            ->first(static fn (ModuleInterface $module): bool => $module instanceof PedigreeChartModule);
400
+            ->first(static fn(ModuleInterface $module): bool => $module instanceof PedigreeChartModule);
401 401
 
402 402
         if ($my_xref !== '' && $pedigree_chart instanceof PedigreeChartModule) {
403 403
             $individual = Registry::individualFactory()->make($my_xref, $tree);
@@ -486,7 +486,7 @@  discard block
 block discarded – undo
486 486
 
487 487
         return $module_service
488 488
             ->findByComponent(ModuleMenuInterface::class, $tree, Auth::user())
489
-            ->map(static fn (ModuleMenuInterface $menu): ?Menu => $menu->getMenu($tree))
489
+            ->map(static fn(ModuleMenuInterface $menu): ?Menu => $menu->getMenu($tree))
490 490
             ->filter()
491 491
             ->all();
492 492
     }
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
@@ -145,7 +145,7 @@
 block discarded – undo
145 145
             // Find a module providing individual lists
146 146
             $module = $this->module_service
147 147
                 ->findByComponent(ModuleListInterface::class, $tree, Auth::user())
148
-                ->first(static fn (ModuleInterface $module): bool => $module instanceof IndividualListModule);
148
+                ->first(static fn(ModuleInterface $module): bool => $module instanceof IndividualListModule);
149 149
 
150 150
             $surnames = view('lists/surnames-compact-list', [
151 151
                 'module'   => $module,
Please login to merge, or discard this patch.
app/Module/RelationshipsChartModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -328,7 +328,7 @@
 block discarded – undo
328 328
 
329 329
             $language = $this->module_service
330 330
                 ->findByInterface(ModuleLanguageInterface::class, true)
331
-                ->first(fn (ModuleLanguageInterface $language): bool => $language->locale()->languageTag() === I18N::languageTag());
331
+                ->first(fn(ModuleLanguageInterface $language): bool => $language->locale()->languageTag() === I18N::languageTag());
332 332
 
333 333
             echo '<h3>', I18N::translate('Relationship: %s', $this->relationship_service->nameFromPath($nodes->all(), $language)), '</h3>';
334 334
             $num_paths++;
Please login to merge, or discard this patch.
app/Validator.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      */
103 103
     public function isBetween(int $minimum, int $maximum): self
104 104
     {
105
-        $this->rules[] = static function (?int $value) use ($minimum, $maximum): ?int {
105
+        $this->rules[] = static function (?int $value) use ($minimum, $maximum) : ?int {
106 106
             if (is_int($value) && $value >= $minimum && $value <= $maximum) {
107 107
                 return $value;
108 108
             }
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
      */
121 121
     public function isInArray(array $values): self
122 122
     {
123
-        $this->rules[] = static fn (?string $value): ?string => is_string($value) && in_array($value, $values, true) ? $value : null;
123
+        $this->rules[] = static fn(?string $value) : ?string => is_string($value) && in_array($value, $values, true) ? $value : null;
124 124
 
125 125
         return $this;
126 126
     }
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
      */
132 132
     public function isLocalUrl(string $base_url): self
133 133
     {
134
-        $this->rules[] = static function (?string $value) use ($base_url): ?string {
134
+        $this->rules[] = static function (?string $value) use ($base_url) : ?string {
135 135
             if (is_string($value)) {
136 136
                 $value_info    = parse_url($value);
137 137
                 $base_url_info = parse_url($base_url);
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
             throw new HttpBadRequestException(I18N::translate('The parameter “%s” is missing.', $parameter));
230 230
         }
231 231
 
232
-        $callback = static fn (?array $value, Closure $rule): ?array => $rule($value);
232
+        $callback = static fn(?array $value, Closure $rule) : ?array => $rule($value);
233 233
 
234 234
         $value = array_reduce($this->rules, $callback, $value);
235 235
         $value ??= [];
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
             $value = null;
262 262
         }
263 263
 
264
-        $callback = static fn (?int $value, Closure $rule): ?int => $rule($value);
264
+        $callback = static fn(?int $value, Closure $rule) : ?int => $rule($value);
265 265
 
266 266
         $value = array_reduce($this->rules, $callback, $value);
267 267
 
@@ -304,9 +304,9 @@  discard block
 block discarded – undo
304 304
             $value = null;
305 305
         }
306 306
 
307
-        $callback = static fn (?string $value, Closure $rule): ?string => $rule($value);
307
+        $callback = static fn(?string $value, Closure $rule) : ?string => $rule($value);
308 308
 
309
-        $value =  array_reduce($this->rules, $callback, $value);
309
+        $value = array_reduce($this->rules, $callback, $value);
310 310
         $value ??= $default;
311 311
 
312 312
         if ($value === null || preg_match('//u', $value) !== 1) {
Please login to merge, or discard this patch.
app/Http/RequestHandlers/EmptyClipboard.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,6 +58,6 @@
 block discarded – undo
58 58
         $default_url = $request->getHeaderLine('Referer');
59 59
         $url         = Validator::parsedBody($request)->isLocalUrl($base_url)->string('url', $default_url);
60 60
 
61
-       return Registry::responseFactory()->redirectUrl($url);
61
+        return Registry::responseFactory()->redirectUrl($url);
62 62
     }
63 63
 }
Please login to merge, or discard this patch.
app/Http/RequestHandlers/EditFactPage.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
         $record = Auth::checkRecordAccess($record, true);
65 65
 
66 66
         // Find the fact to edit
67
-        $fact = $record->facts()->first(fn (Fact $fact): bool => $fact->id() === $fact_id && $fact->canEdit());
67
+        $fact = $record->facts()->first(fn(Fact $fact): bool => $fact->id() === $fact_id && $fact->canEdit());
68 68
 
69 69
         if ($fact === null) {
70 70
             return Registry::responseFactory()->redirectUrl($record->url());
Please login to merge, or discard this patch.
app/Module/ClippingsCartModule.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -425,7 +425,7 @@
 block discarded – undo
425 425
         unset($cart[$tree->name()][$xref]);
426 426
         Session::put('cart', $cart);
427 427
 
428
-       return Registry::responseFactory()->redirect('module', [
428
+        return Registry::responseFactory()->redirect('module', [
429 429
             'module' => $this->name(),
430 430
             'action' => 'Show',
431 431
             'tree'   => $tree->name(),
Please login to merge, or discard this patch.
app/Factories/ResponseFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
         if (is_string($content)) {
109 109
             $headers['Content-Type'] ??= 'text/html; charset=UTF-8';
110 110
         } else {
111
-            $content                 = json_encode($content, JSON_THROW_ON_ERROR | JSON_UNESCAPED_UNICODE);
111
+            $content = json_encode($content, JSON_THROW_ON_ERROR | JSON_UNESCAPED_UNICODE);
112 112
             $headers['Content-Type'] ??= 'application/json';
113 113
         }
114 114
 
Please login to merge, or discard this patch.