Passed
Push — develop ( df1f3f...87a4e2 )
by Greg
11:15
created
app/Validator.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
      */
108 108
     public function isBetween(int $minimum, int $maximum): self
109 109
     {
110
-        $this->rules[] = static function (?int $value) use ($minimum, $maximum): ?int {
110
+        $this->rules[] = static function (?int $value) use ($minimum, $maximum) : ?int {
111 111
             if (is_int($value) && $value >= $minimum && $value <= $maximum) {
112 112
                 return $value;
113 113
             }
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
      */
126 126
     public function isInArray(array $values): self
127 127
     {
128
-        $this->rules[] = static fn (/*int|string|null*/ $value)/*: int|string|null*/ => $value !== null && in_array($value, $values, true) ? $value : null;
128
+        $this->rules[] = static fn(/*int|string|null*/ $value)/*: int|string|null*/ => $value !== null && in_array($value, $values, true) ? $value : null;
129 129
 
130 130
         return $this;
131 131
     }
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      */
146 146
     public function isNotEmpty(): self
147 147
     {
148
-        $this->rules[] = static fn (?string $value): ?string => $value !== null && $value !== '' ? $value : null;
148
+        $this->rules[] = static fn(?string $value) : ?string => $value !== null && $value !== '' ? $value : null;
149 149
 
150 150
         return $this;
151 151
     }
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
     {
158 158
         $base_url = $this->request->getAttribute('base_url', '');
159 159
 
160
-        $this->rules[] = static function (?string $value) use ($base_url): ?string {
160
+        $this->rules[] = static function (?string $value) use ($base_url) : ?string {
161 161
             if ($value !== null) {
162 162
                 $value_info    = parse_url($value);
163 163
                 $base_url_info = parse_url($base_url);
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
             throw new HttpBadRequestException(I18N::translate('The parameter “%s” is missing.', $parameter));
252 252
         }
253 253
 
254
-        $callback = static fn (?array $value, Closure $rule): ?array => $rule($value);
254
+        $callback = static fn(?array $value, Closure $rule) : ?array => $rule($value);
255 255
 
256 256
         $value = array_reduce($this->rules, $callback, $value);
257 257
         $value ??= [];
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
             $value = null;
284 284
         }
285 285
 
286
-        $callback = static fn (?int $value, Closure $rule): ?int => $rule($value);
286
+        $callback = static fn(?int $value, Closure $rule) : ?int => $rule($value);
287 287
 
288 288
         $value = array_reduce($this->rules, $callback, $value);
289 289
 
@@ -326,9 +326,9 @@  discard block
 block discarded – undo
326 326
             $value = null;
327 327
         }
328 328
 
329
-        $callback = static fn (?string $value, Closure $rule): ?string => $rule($value);
329
+        $callback = static fn(?string $value, Closure $rule) : ?string => $rule($value);
330 330
 
331
-        $value =  array_reduce($this->rules, $callback, $value);
331
+        $value = array_reduce($this->rules, $callback, $value);
332 332
         $value ??= $default;
333 333
 
334 334
         if ($value === null || preg_match('//u', $value) !== 1) {
Please login to merge, or discard this patch.
app/Http/RequestHandlers/SiteTagsPage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,11 +54,11 @@
 block discarded – undo
54 54
         $all_individual_tags = new Collection(Gedcom::CUSTOM_INDIVIDUAL_TAGS);
55 55
 
56 56
         $all_family_tags = $all_family_tags->mapWithKeys(
57
-            static fn (string $tag): array => [$tag => Registry::elementFactory()->make('FAM:' . $tag)->label() . ' - ' . $tag]
57
+            static fn(string $tag): array => [$tag => Registry::elementFactory()->make('FAM:' . $tag)->label() . ' - ' . $tag]
58 58
         );
59 59
 
60 60
         $all_individual_tags = $all_individual_tags->mapWithKeys(
61
-            static fn (string $tag): array => [$tag => Registry::elementFactory()->make('INDI:' . $tag)->label(). ' - ' . $tag]
61
+            static fn(string $tag): array => [$tag => Registry::elementFactory()->make('INDI:' . $tag)->label() . ' - ' . $tag]
62 62
         );
63 63
 
64 64
         $custom_gedcom_l_tags = (bool) Site::getPreference('CUSTOM_GEDCOM_L_TAGS');
Please login to merge, or discard this patch.
app/Gedcom.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1817,8 +1817,8 @@
 block discarded – undo
1817 1817
         $custom_individual_tags = array_filter(explode(',', Site::getPreference('CUSTOM_INDIVIDUAL_TAGS')));
1818 1818
 
1819 1819
         $subtags = [
1820
-            'FAM'  => array_map(static fn (string $tag): array => [$tag, '0:M'], $custom_family_tags),
1821
-            'INDI' => array_map(static fn (string $tag): array => [$tag, '0:M'], $custom_individual_tags),
1820
+            'FAM'  => array_map(static fn(string $tag): array => [$tag, '0:M'], $custom_family_tags),
1821
+            'INDI' => array_map(static fn(string $tag): array => [$tag, '0:M'], $custom_individual_tags),
1822 1822
         ];
1823 1823
 
1824 1824
         if (Site::getPreference('CUSTOM_GEDCOM_L_TAGS') === '1') {
Please login to merge, or discard this patch.