Passed
Push — develop ( 1c365c...a0f91c )
by Greg
09:34
created
app/Http/RequestHandlers/SearchReplaceAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
 
95 95
             case 'name':
96 96
                 $name_tags = Registry::elementFactory()->make('INDI:NAME')->subtags();
97
-                $name_tags = array_map(static fn (string $tag): string => '2 ' . $tag, $name_tags);
97
+                $name_tags = array_map(static fn(string $tag): string => '2 ' . $tag, $name_tags);
98 98
                 $name_tags[] = '1 NAME';
99 99
 
100 100
                 $records = $this->search_service->searchIndividuals([$tree], [$search]);
Please login to merge, or discard this patch.
app/Elements/AbstractElement.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
148 148
             }
149 149
 
150 150
             // We may use markup to display values, but not when editing them.
151
-            $values = array_map(static fn (string $x): string => strip_tags($x), $values);
151
+            $values = array_map(static fn(string $x): string => strip_tags($x), $values);
152 152
 
153 153
             return view('components/select', [
154 154
                 'id'       => $id,
Please login to merge, or discard this patch.
app/Module/TopSurnamesModule.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
                 ->groupBy(['surname'])
120 120
                 ->select([new Expression('n_surname /*! COLLATE utf8_bin */ AS surname'), new Expression('count(*) AS total')])
121 121
                 ->pluck('total', 'surname')
122
-                ->map(static fn (string $n): int => (int) $n)
122
+                ->map(static fn(string $n): int => (int) $n)
123 123
                 ->all();
124 124
 
125 125
             $all_surnames[$top_surname] = $variants;
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
                 break;
148 148
 
149 149
             case 'list':
150
-                uasort($all_surnames, static fn (array $a, array $b): int => array_sum($b) <=> array_sum($a));
150
+                uasort($all_surnames, static fn(array $a, array $b): int => array_sum($b) <=> array_sum($a));
151 151
                 $content = view('lists/surnames-bullet-list', [
152 152
                     'module'   => $module,
153 153
                     'surnames' => $all_surnames,
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
                 break;
158 158
 
159 159
             case 'array':
160
-                uasort($all_surnames, static fn (array $a, array $b): int => array_sum($b) <=> array_sum($a));
160
+                uasort($all_surnames, static fn(array $a, array $b): int => array_sum($b) <=> array_sum($a));
161 161
                 $content = view('lists/surnames-compact-list', [
162 162
                     'module'   => $module,
163 163
                     'surnames' => $all_surnames,
Please login to merge, or discard this patch.
app/Http/RequestHandlers/IndividualPage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 
134 134
         $shares = $this->module_service
135 135
             ->findByInterface(ModuleShareInterface::class)
136
-            ->map(fn (ModuleShareInterface $module) => $module->share($individual))
136
+            ->map(fn(ModuleShareInterface $module) => $module->share($individual))
137 137
             ->filter();
138 138
 
139 139
         return $this->viewResponse('individual-page', [
@@ -241,8 +241,8 @@  discard block
 block discarded – undo
241 241
             }
242 242
         }
243 243
 
244
-        $meta_facts = array_map(static fn (string $x): string => strip_tags($x), $meta_facts);
245
-        $meta_facts = array_map(static fn (string $x): string => trim($x), $meta_facts);
244
+        $meta_facts = array_map(static fn(string $x): string => strip_tags($x), $meta_facts);
245
+        $meta_facts = array_map(static fn(string $x): string => trim($x), $meta_facts);
246 246
 
247 247
         return implode(', ', $meta_facts);
248 248
     }
Please login to merge, or discard this patch.
app/Http/RequestHandlers/FamilyPage.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -154,15 +154,15 @@
 block discarded – undo
154 154
 
155 155
         if ($family->children()->isNotEmpty()) {
156 156
             $child_names = $family->children()
157
-            ->map(static fn (Individual $individual): string => e($individual->getAllNames()[0]['givn']))
158
-            ->filter(static fn (string $x): bool => $x !== Individual::PRAENOMEN_NESCIO)
157
+            ->map(static fn(Individual $individual): string => e($individual->getAllNames()[0]['givn']))
158
+            ->filter(static fn(string $x): bool => $x !== Individual::PRAENOMEN_NESCIO)
159 159
             ->implode(', ');
160 160
 
161 161
             $meta_facts[] = I18N::translate('Children') . ' ' . $child_names;
162 162
         }
163 163
 
164
-        $meta_facts = array_map(static fn (string $x): string => strip_tags($x), $meta_facts);
165
-        $meta_facts = array_map(static fn (string $x): string => trim($x), $meta_facts);
164
+        $meta_facts = array_map(static fn(string $x): string => strip_tags($x), $meta_facts);
165
+        $meta_facts = array_map(static fn(string $x): string => trim($x), $meta_facts);
166 166
 
167 167
         return implode(', ', $meta_facts);
168 168
     }
Please login to merge, or discard this patch.
app/Report/ReportParserGenerate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1842,7 +1842,7 @@
 block discarded – undo
1842 1842
                             ->groupBy(['xref']);
1843 1843
                     })
1844 1844
                     ->get()
1845
-                    ->map(fn (object $row): ?GedcomRecord => Registry::gedcomRecordFactory()->make($row->xref, $this->tree, $row->new_gedcom ?: $row->old_gedcom))
1845
+                    ->map(fn(object $row): ?GedcomRecord => Registry::gedcomRecordFactory()->make($row->xref, $this->tree, $row->new_gedcom ?: $row->old_gedcom))
1846 1846
                     ->filter()
1847 1847
                     ->all();
1848 1848
                 break;
Please login to merge, or discard this patch.
app/Services/ClipboardService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 
107 107
         return (new Collection($facts))
108 108
             ->reverse()
109
-            ->map(static fn (string $clipping): Fact => new Fact($clipping, $record, md5($clipping)));
109
+            ->map(static fn(string $clipping): Fact => new Fact($clipping, $record, md5($clipping)));
110 110
     }
111 111
 
112 112
     /**
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
         return (new Collection($clipboard))
127 127
             ->flatten(1)
128 128
             ->reverse()
129
-            ->map(static fn (string $clipping): Fact => new Fact($clipping, $record, md5($clipping)))
130
-            ->filter(static fn (Fact $fact): bool => $types->contains(explode(':', $fact->tag())[1]));
129
+            ->map(static fn(string $clipping): Fact => new Fact($clipping, $record, md5($clipping)))
130
+            ->filter(static fn(Fact $fact): bool => $types->contains(explode(':', $fact->tag())[1]));
131 131
     }
132 132
 }
Please login to merge, or discard this patch.
app/Services/ServerCheckService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@
 block discarded – undo
162 162
         $function = strtolower($function);
163 163
 
164 164
         $disable_functions = explode(',', (string) ini_get('disable_functions'));
165
-        $disable_functions = array_map(static fn (string $func): string => strtolower(trim($func)), $disable_functions);
165
+        $disable_functions = array_map(static fn(string $func): string => strtolower(trim($func)), $disable_functions);
166 166
 
167 167
         return in_array($function, $disable_functions, true) || !function_exists($function);
168 168
     }
Please login to merge, or discard this patch.
app/Module/UserJournalModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -179,7 +179,7 @@
 block discarded – undo
179 179
                 throw new HttpNotFoundException(I18N::translate('%s does not exist.', 'news_id:' . $news_id));
180 180
             }
181 181
         } else {
182
-            $row = (object)['body' => '', 'subject' => ''];
182
+            $row = (object) ['body' => '', 'subject' => ''];
183 183
         }
184 184
 
185 185
         $title = I18N::translate('Add/edit a journal/news entry');
Please login to merge, or discard this patch.