Passed
Push — main ( 673106...063e5b )
by Greg
08:00
created
app/Http/Middleware/BadBotBlocker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -339,7 +339,7 @@
 block discarded – undo
339 339
         return Registry::cache()->file()->remember('whois-asn-' . $asn, function () use ($asn): array {
340 340
             $ranges = $this->network_service->findIpRangesForAsn($asn);
341 341
 
342
-            $mapper = static fn (string $range): RangeInterface|null => Factory::parseRangeString($range);
342
+            $mapper = static fn (string $range): RangeInterface | null => Factory::parseRangeString($range);
343 343
 
344 344
             $ranges = array_map($mapper, $ranges);
345 345
 
Please login to merge, or discard this patch.
app/Factories/SlugFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
  */
35 35
 class SlugFactory implements SlugFactoryInterface
36 36
 {
37
-    private Transliterator|null $transliterator = null;
37
+    private Transliterator | null $transliterator = null;
38 38
 
39 39
     public function __construct(private PhpService $php_service)
40 40
     {
Please login to merge, or discard this patch.
app/Http/Middleware/CompressResponse.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
         return $response;
95 95
     }
96 96
 
97
-    protected function compressionMethod(RequestInterface $request): string|null
97
+    protected function compressionMethod(RequestInterface $request): string | null
98 98
     {
99 99
         $accept_encoding = strtolower($request->getHeaderLine('accept-encoding'));
100 100
         $zlib_available  = $this->php_service->extensionLoaded(extension: 'zlib');
Please login to merge, or discard this patch.
app/Services/TimeoutService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 
38 38
     public function __construct(
39 39
         private PhpService $php_service,
40
-        float|null $start_time = null,
40
+        float | null $start_time = null,
41 41
     ) {
42 42
         $this->start_time = $start_time ?? Registry::timeFactory()->now();
43 43
     }
Please login to merge, or discard this patch.
app/Services/MapDataService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
     /**
165 165
      * @param list<int> $parent_place_ids
166 166
      */
167
-    public function deleteUnusedLocations(int|null $parent_location_id, array $parent_place_ids): void
167
+    public function deleteUnusedLocations(int | null $parent_location_id, array $parent_place_ids): void
168 168
     {
169 169
         if ($parent_location_id === null) {
170 170
             $location_query = DB::table('place_location')
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
      *
200 200
      * @return Collection<int,object{id:int,key:string,place:string,latitude:float|null,longitude:float|null,child_count:int,no_coord:int}>
201 201
      */
202
-    public function getPlaceListLocation(int|null $parent_id): Collection
202
+    public function getPlaceListLocation(int | null $parent_id): Collection
203 203
     {
204 204
         $prefix = DB::prefix();
205 205
 
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
                 'child_count' => (int) $row->child_count,
251 251
                 'no_coord'    => (int) $row->no_coord,
252 252
             ])
253
-            ->sort(static fn (object $x, object $y): int => I18N::comparator()($x->place, $y->place));
253
+            ->sort(static fn (object $x, object $y) : int => I18N::comparator()($x->place, $y->place));
254 254
     }
255 255
 
256 256
     public function writeLatitude(float $latitude): string
Please login to merge, or discard this patch.
app/Cli/Commands/TreeList.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
         return implode(separator: ',', array: $columns);
113 113
     }
114 114
 
115
-    private function quoteCsvValue(string|int $value): string
115
+    private function quoteCsvValue(string | int $value): string
116 116
     {
117 117
         return '"' . addcslashes(string: (string) $value, characters: '"') . '"';
118 118
     }
Please login to merge, or discard this patch.
app/Cli/Commands/UserList.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -71,13 +71,13 @@  discard block
 block discarded – undo
71 71
             'real_name'  => $user->realName(),
72 72
             'email'      => $user->email(),
73 73
             'admin'      => $user->getPreference(setting_name: UserInterface::PREF_IS_ADMINISTRATOR) ? 'yes' : 'no',
74
-            'approved'   => $user->getPreference(setting_name: UserInterface::PREF_IS_ACCOUNT_APPROVED) ? 'yes' : 'no',
75
-            'verified'   => $user->getPreference(setting_name: UserInterface::PREF_IS_EMAIL_VERIFIED) ? 'yes' : 'no',
76
-            'language'   => $user->getPreference(setting_name: UserInterface::PREF_LANGUAGE),
77
-            'timezone'   => $user->getPreference(setting_name: UserInterface::PREF_TIME_ZONE),
78
-            'contact'    => $user->getPreference(setting_name: UserInterface::PREF_CONTACT_METHOD),
79
-            'registered' => $this->formatTimestamp(timestamp: (int) $user->getPreference(setting_name: UserInterface::PREF_TIMESTAMP_REGISTERED)),
80
-            'last_login' => $this->formatTimestamp(timestamp: (int) $user->getPreference(setting_name: UserInterface::PREF_TIMESTAMP_ACTIVE)),
74
+            'approved'   => $user->getPreference(setting_name : UserInterface::PREF_IS_ACCOUNT_APPROVED) ? 'yes' : 'no',
75
+            'verified'   => $user->getPreference(setting_name : UserInterface::PREF_IS_EMAIL_VERIFIED) ? 'yes' : 'no',
76
+            'language'   => $user->getPreference(setting_name : UserInterface::PREF_LANGUAGE),
77
+            'timezone'   => $user->getPreference(setting_name : UserInterface::PREF_TIME_ZONE),
78
+            'contact'    => $user->getPreference(setting_name : UserInterface::PREF_CONTACT_METHOD),
79
+            'registered' => $this->formatTimestamp(timestamp : (int) $user->getPreference(setting_name : UserInterface::PREF_TIMESTAMP_REGISTERED)),
80
+            'last_login' => $this->formatTimestamp(timestamp : (int) $user->getPreference(setting_name : UserInterface::PREF_TIMESTAMP_ACTIVE)),
81 81
         ])
82 82
         ->values()
83 83
         ->all();
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
         return implode(separator: ',', array: $columns);
132 132
     }
133 133
 
134
-    private function quoteCsvValue(string|int $value): string
134
+    private function quoteCsvValue(string | int $value): string
135 135
     {
136 136
         return '"' . addcslashes(string: (string) $value, characters: '"') . '"';
137 137
     }
Please login to merge, or discard this patch.
app/DB.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
         return self::pdo()->getAttribute(PDO::ATTR_DRIVER_NAME);
142 142
     }
143 143
 
144
-    public static function exec(string $sql): int|false
144
+    public static function exec(string $sql): int | false
145 145
     {
146 146
         return self::pdo()->exec($sql);
147 147
     }
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
     /**
228 228
      * @return Expression<string>
229 229
      */
230
-    public static function binaryColumn(string $column, string|null $alias = null): Expression
230
+    public static function binaryColumn(string $column, string | null $alias = null): Expression
231 231
     {
232 232
         if (self::driverName() === self::MYSQL) {
233 233
             $sql = 'CAST(' . $column . ' AS binary)';
Please login to merge, or discard this patch.
app/Services/SearchService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1069,7 +1069,7 @@
 block discarded – undo
1069 1069
      * @param Expression<string>|string $column
1070 1070
      * @param array<string>             $search_terms
1071 1071
      */
1072
-    private function whereSearch(Builder $query, Expression|string $column, array $search_terms): void
1072
+    private function whereSearch(Builder $query, Expression | string $column, array $search_terms): void
1073 1073
     {
1074 1074
         foreach ($search_terms as $search_term) {
1075 1075
             $query->where($column, DB::iLike(), '%' . addcslashes($search_term, '\\%_') . '%');
Please login to merge, or discard this patch.