Passed
Push — main ( a04a11...ed3749 )
by Dimitri
05:24
created
src/Loader/FileLocator.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
         $loader = Services::locator();
40 40
 
41
-        if (! is_array($filenames)) {
41
+        if (!is_array($filenames)) {
42 42
             $filenames = [$filenames];
43 43
         }
44 44
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
                 }
83 83
 
84 84
                 // Les helpers au niveau de l'application doivent remplacer tous les autres
85
-                if (! empty($appHelper)) {
85
+                if (!empty($appHelper)) {
86 86
                     $includes[] = $appHelper;
87 87
                     $loaded[]   = $filename;
88 88
                 }
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
                 $includes = [...$includes, ...$localIncludes];
92 92
 
93 93
                 // Et celui par défaut du système doit être ajouté en dernier.
94
-                if (! empty($systemHelper)) {
94
+                if (!empty($systemHelper)) {
95 95
                     $includes[] = $systemHelper;
96 96
                     $loaded[]   = $filename;
97 97
                 }
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
 
130 130
         // Si le fichier est dans un espace de noms, nous allons simplement saisir ce fichier et ne pas en rechercher d'autres
131 131
         if (str_contains($name, '\\')) {
132
-            if (! empty($path = $loader->locateFile($name, 'schemas'))) {
132
+            if (!empty($path = $loader->locateFile($name, 'schemas'))) {
133 133
                 $file = $path;
134 134
             }
135 135
         } else {
@@ -147,22 +147,22 @@  discard block
 block discarded – undo
147 147
             }
148 148
 
149 149
             // Les schema des vendor sont prioritaire, ensuite vienne ceux de l'application
150
-            if (! empty($vendorSchema)) {
150
+            if (!empty($vendorSchema)) {
151 151
                 $file = $vendorSchema;
152
-            } elseif (! empty($appSchema)) {
152
+            } elseif (!empty($appSchema)) {
153 153
                 $file = $appSchema;
154
-            } elseif (! empty($systemSchema)) {
154
+            } elseif (!empty($systemSchema)) {
155 155
                 $file = $systemSchema;
156 156
             }
157 157
         }
158 158
 
159
-        if (! empty($file)) {
159
+        if (!empty($file)) {
160 160
             $schema = require $file;
161 161
         } else {
162 162
             $schema = null;
163 163
         }
164 164
 
165
-        if (empty($schema) || ! ($schema instanceof Schema)) {
165
+        if (empty($schema) || !($schema instanceof Schema)) {
166 166
             $schema = Expect::mixed();
167 167
         }
168 168
 
@@ -180,16 +180,16 @@  discard block
 block discarded – undo
180 180
      */
181 181
     public static function model(string $model, ?ConnectionInterface $connection = null)
182 182
     {
183
-        if (! class_exists($model) && ! Text::endsWith($model, 'Model')) {
183
+        if (!class_exists($model) && !Text::endsWith($model, 'Model')) {
184 184
             $model .= 'Model';
185 185
         }
186 186
 
187
-        if (! class_exists($model)) {
187
+        if (!class_exists($model)) {
188 188
             $model = str_replace(APP_NAMESPACE . '\\Models\\', '', $model);
189 189
             $model = APP_NAMESPACE . '\\Models\\' . $model;
190 190
         }
191 191
 
192
-        if (! class_exists($model)) {
192
+        if (!class_exists($model)) {
193 193
             throw LoadException::modelNotFound($model);
194 194
         }
195 195
 
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
     protected static function verifyPreferApp(array $options, string $name): bool
219 219
     {
220 220
         // Tout element sans restriction passe
221
-        if (! $options['preferApp']) {
221
+        if (!$options['preferApp']) {
222 222
             return true;
223 223
         }
224 224
 
Please login to merge, or discard this patch.
src/Publisher/Publisher.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
             // Essayez plusieurs fois en cas de mèches persistantes
128 128
             $attempts = 10;
129 129
 
130
-            while ((bool) $attempts && ! delete_files($directory, true, false, true)) {
130
+            while ((bool) $attempts && !delete_files($directory, true, false, true)) {
131 131
                 // @codeCoverageIgnoreStart
132 132
                 $attempts--;
133 133
                 usleep(100000); // .1s
@@ -467,7 +467,7 @@  discard block
 block discarded – undo
467 467
         // Rechercher un fichier existant
468 468
         if (file_exists($to)) {
469 469
             // S'il n'est pas remplacé ou si les fichiers sont identiques, envisagez de réussir
470
-            if (! $replace || same_file($from, $to)) {
470
+            if (!$replace || same_file($from, $to)) {
471 471
                 return;
472 472
             }
473 473
 
@@ -481,7 +481,7 @@  discard block
 block discarded – undo
481 481
         }
482 482
 
483 483
         // Assurez-vous que le répertoire existe
484
-        if (! is_dir($directory = pathinfo($to, PATHINFO_DIRNAME))) {
484
+        if (!is_dir($directory = pathinfo($to, PATHINFO_DIRNAME))) {
485 485
             mkdir($directory, 0o775, true);
486 486
         }
487 487
 
Please login to merge, or discard this patch.
src/Http/Response.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
         $this->_streamMode   = $options['streamMode'] ?? $this->_streamMode;
453 453
 
454 454
         if (isset($options['stream'])) {
455
-            if (! $options['stream'] instanceof StreamInterface) {
455
+            if (!$options['stream'] instanceof StreamInterface) {
456 456
                 throw new InvalidArgumentException('Stream option must be an object that implements StreamInterface');
457 457
             }
458 458
             $this->stream = $options['stream'];
@@ -468,7 +468,7 @@  discard block
 block discarded – undo
468 468
             $this->_setStatus($options['status']);
469 469
         }
470 470
 
471
-        if (! isset($options['charset'])) {
471
+        if (!isset($options['charset'])) {
472 472
             $options['charset'] = config('app.charset');
473 473
         }
474 474
         $this->_charset = $options['charset'];
@@ -516,7 +516,7 @@  discard block
 block discarded – undo
516 516
             $charset = true;
517 517
         }
518 518
 
519
-        if ($charset && ! str_contains($type, ';')) {
519
+        if ($charset && !str_contains($type, ';')) {
520 520
             $this->_setHeader('Content-Type', "{$type}; charset={$this->_charset}");
521 521
         } else {
522 522
             $this->_setHeader('Content-Type', $type);
@@ -596,7 +596,7 @@  discard block
 block discarded – undo
596 596
     protected function _clearHeader(string $header): void
597 597
     {
598 598
         $normalized = strtolower($header);
599
-        if (! isset($this->headerNames[$normalized])) {
599
+        if (!isset($this->headerNames[$normalized])) {
600 600
             return;
601 601
         }
602 602
         $original = $this->headerNames[$normalized];
@@ -752,7 +752,7 @@  discard block
 block discarded – undo
752 752
         if ($mapped) {
753 753
             return is_array($mapped) ? current($mapped) : $mapped;
754 754
         }
755
-        if (! str_contains($contentType, '/')) {
755
+        if (!str_contains($contentType, '/')) {
756 756
             throw new InvalidArgumentException(sprintf('"%s" is an invalid content type.', $contentType));
757 757
         }
758 758
 
@@ -835,7 +835,7 @@  discard block
 block discarded – undo
835 835
      */
836 836
     public function withCache($since, $time = '+1 day'): static
837 837
     {
838
-        if (! is_int($time)) {
838
+        if (!is_int($time)) {
839 839
             $time = strtotime($time);
840 840
             if ($time === false) {
841 841
                 throw new InvalidArgumentException(
@@ -1289,7 +1289,7 @@  discard block
 block discarded – undo
1289 1289
      */
1290 1290
     public function getCookie(string $name): ?array
1291 1291
     {
1292
-        if (! $this->_cookies->has($name)) {
1292
+        if (!$this->_cookies->has($name)) {
1293 1293
             return null;
1294 1294
         }
1295 1295
 
@@ -1362,7 +1362,7 @@  discard block
 block discarded – undo
1362 1362
 
1363 1363
         $extension = strtolower($file->getExtension());
1364 1364
         $mapped    = $this->getMimeType($extension);
1365
-        if ((! $extension || ! $mapped) && $options['download'] === null) {
1365
+        if ((!$extension || !$mapped) && $options['download'] === null) {
1366 1366
             $options['download'] = true;
1367 1367
         }
1368 1368
 
@@ -1424,12 +1424,12 @@  discard block
 block discarded – undo
1424 1424
         if (str_contains($path, '../') || str_contains($path, '..\\')) {
1425 1425
             throw new LoadException('The requested file contains `..` and will not be read.');
1426 1426
         }
1427
-        if (! is_file($path)) {
1428
-            $path = APP_PATH . $path;  // @phpstan-ignore-line
1427
+        if (!is_file($path)) {
1428
+            $path = APP_PATH . $path; // @phpstan-ignore-line
1429 1429
         }
1430 1430
 
1431 1431
         $file = new SplFileInfo($path);
1432
-        if (! $file->isFile() || ! $file->isReadable()) {
1432
+        if (!$file->isFile() || !$file->isReadable()) {
1433 1433
             if (on_dev()) {
1434 1434
                 throw new LoadException(sprintf('The requested file %s was not found or not readable', $path));
1435 1435
             }
Please login to merge, or discard this patch.
src/Http/Redirection.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 
64 64
         // Si cela semble être une URL relative, alors convertissez-la en URL complète
65 65
         // pour une meilleure sécurité.
66
-        if (! str_starts_with($uri, 'http')) {
66
+        if (!str_starts_with($uri, 'http')) {
67 67
             $uri = site_url($uri);
68 68
         }
69 69
 
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
     {
125 125
         $request = $this->generator->getRequest();
126 126
 
127
-        $intended = $request->method() === 'GET' && ! $request->expectsJson()
127
+        $intended = $request->method() === 'GET' && !$request->expectsJson()
128 128
                         ? $this->generator->full()
129 129
                         : $this->generator->previous();
130 130
 
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
             $errors = [$key => $errors];
179 179
         }
180 180
 
181
-        if (! empty($errors)) {
181
+        if (!empty($errors)) {
182 182
             Services::viewer()->share('errors', new ErrorBag($this->session->flashErrors($errors, $key)));
183 183
         }
184 184
 
Please login to merge, or discard this patch.
src/Http/Uri.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -172,11 +172,11 @@  discard block
 block discarded – undo
172 172
 
173 173
         $authority = $this->host;
174 174
 
175
-        if (! empty($this->getUserInfo())) {
175
+        if (!empty($this->getUserInfo())) {
176 176
             $authority = $this->getUserInfo() . '@' . $authority;
177 177
         }
178 178
 
179
-        if (! empty($this->port) && ! $ignorePort) {
179
+        if (!empty($this->port) && !$ignorePort) {
180 180
             // N'ajoute pas de port s'il s'agit d'un port standard pour ce schéma
181 181
             if ($this->port !== $this->defaultPorts[$this->scheme]) {
182 182
                 $authority .= ':' . $this->port;
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
     {
196 196
         $userInfo = $this->user;
197 197
 
198
-        if ($this->showPassword === true && ! empty($this->password)) {
198
+        if ($this->showPassword === true && !empty($this->password)) {
199 199
             $userInfo .= ':' . $this->password;
200 200
         }
201 201
 
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
         $vars = $this->query;
246 246
 
247 247
         if (array_key_exists('except', $options)) {
248
-            if (! is_array($options['except'])) {
248
+            if (!is_array($options['except'])) {
249 249
                 $options['except'] = [$options['except']];
250 250
             }
251 251
 
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
         } elseif (array_key_exists('only', $options)) {
256 256
             $temp = [];
257 257
 
258
-            if (! is_array($options['only'])) {
258
+            if (!is_array($options['only'])) {
259 259
                 $options['only'] = [$options['only']];
260 260
             }
261 261
 
@@ -356,11 +356,11 @@  discard block
 block discarded – undo
356 356
     public static function createURIString(?string $scheme = null, ?string $authority = null, ?string $path = null, ?string $query = null, ?string $fragment = null): string
357 357
     {
358 358
         $uri = '';
359
-        if (! empty($scheme)) {
359
+        if (!empty($scheme)) {
360 360
             $uri .= $scheme . '://';
361 361
         }
362 362
 
363
-        if (! empty($authority)) {
363
+        if (!empty($authority)) {
364 364
             $uri .= $authority;
365 365
         }
366 366
 
@@ -386,7 +386,7 @@  discard block
 block discarded – undo
386 386
     {
387 387
         $parts = parse_url($str);
388 388
 
389
-        if (empty($parts['host']) && ! empty($parts['path'])) {
389
+        if (empty($parts['host']) && !empty($parts['path'])) {
390 390
             $parts['host'] = $parts['path'];
391 391
             unset($parts['path']);
392 392
         }
@@ -531,7 +531,7 @@  discard block
 block discarded – undo
531 531
         }
532 532
 
533 533
         // Ne peut pas avoir de début ?
534
-        if (! empty($query) && str_starts_with($query, '?')) {
534
+        if (!empty($query) && str_starts_with($query, '?')) {
535 535
             $query = substr($query, 1);
536 536
         }
537 537
 
@@ -596,7 +596,7 @@  discard block
 block discarded – undo
596 596
         $temp = [];
597 597
 
598 598
         foreach ($this->query as $key => $value) {
599
-            if (! in_array($key, $params, true)) {
599
+            if (!in_array($key, $params, true)) {
600 600
                 continue;
601 601
             }
602 602
 
@@ -667,19 +667,19 @@  discard block
 block discarded – undo
667 667
      */
668 668
     protected function applyParts(array $parts)
669 669
     {
670
-        if (! empty($parts['host'])) {
670
+        if (!empty($parts['host'])) {
671 671
             $this->host = $parts['host'];
672 672
         }
673
-        if (! empty($parts['user'])) {
673
+        if (!empty($parts['user'])) {
674 674
             $this->user = $parts['user'];
675 675
         }
676
-        if (! empty($parts['path'])) {
676
+        if (!empty($parts['path'])) {
677 677
             $this->path = $this->filterPath($parts['path']);
678 678
         }
679
-        if (! empty($parts['query'])) {
679
+        if (!empty($parts['query'])) {
680 680
             $this->setQuery($parts['query']);
681 681
         }
682
-        if (! empty($parts['fragment'])) {
682
+        if (!empty($parts['fragment'])) {
683 683
             $this->fragment = $parts['fragment'];
684 684
         }
685 685
 
@@ -701,7 +701,7 @@  discard block
 block discarded – undo
701 701
             $this->password = $parts['pass'];
702 702
         }
703 703
 
704
-        if (! empty($parts['path'])) {
704
+        if (!empty($parts['path'])) {
705 705
             $this->segments = explode('/', trim($parts['path'], '/'));
706 706
         }
707 707
     }
@@ -728,7 +728,7 @@  discard block
 block discarded – undo
728 728
         $transformed = clone $relative;
729 729
 
730 730
         // 5.2.2 Transformer les références dans une méthode non stricte (pas de schéma)
731
-        if (! empty($relative->getAuthority())) {
731
+        if (!empty($relative->getAuthority())) {
732 732
             $transformed->setAuthority($relative->getAuthority())
733 733
                 ->setPath($relative->getPath())
734 734
                 ->setQuery($relative->getQuery());
@@ -768,7 +768,7 @@  discard block
 block discarded – undo
768 768
      */
769 769
     protected function mergePaths(self $base, self $reference): string
770 770
     {
771
-        if (! empty($base->getAuthority()) && empty($base->getPath())) {
771
+        if (!empty($base->getAuthority()) && empty($base->getPath())) {
772 772
             return '/' . ltrim($reference->getPath(), '/ ');
773 773
         }
774 774
 
Please login to merge, or discard this patch.
src/Http/UrlGenerator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
     {
256 256
         $route = $this->routes->reverseRoute($name, ...$parameters);
257 257
 
258
-        if (! $route) {
258
+        if (!$route) {
259 259
             throw HttpException::invalidRedirectRoute($route);
260 260
         }
261 261
 
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
      */
333 333
     public function isValidUrl(string $path): bool
334 334
     {
335
-        if (! preg_match('~^(#|//|https?://|(mailto|tel|sms):)~', $path)) {
335
+        if (!preg_match('~^(#|//|https?://|(mailto|tel|sms):)~', $path)) {
336 336
             return filter_var($path, FILTER_VALIDATE_URL) !== false;
337 337
         }
338 338
 
Please login to merge, or discard this patch.
src/Http/ServerRequest.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
         $this->cookies = $config['cookies'];
257 257
 
258 258
         if (isset($config['uri'])) {
259
-            if (! $config['uri'] instanceof UriInterface) {
259
+            if (!$config['uri'] instanceof UriInterface) {
260 260
                 throw new FrameworkException('The `uri` key must be an instance of ' . UriInterface::class);
261 261
             }
262 262
             $uri = $config['uri'];
@@ -396,7 +396,7 @@  discard block
 block discarded – undo
396 396
         $ref = $this->getEnv('HTTP_REFERER');
397 397
 
398 398
         $base = /* Configure::read('App.fullBaseUrl') . */ $this->webroot;
399
-        if (! empty($ref) && ! empty($base)) {
399
+        if (!empty($ref) && !empty($base)) {
400 400
             if ($local && str_starts_with($ref, $base)) {
401 401
                 $ref = substr($ref, strlen($base));
402 402
                 if ($ref === '' || str_starts_with($ref, '//')) {
@@ -408,7 +408,7 @@  discard block
 block discarded – undo
408 408
 
409 409
                 return $ref;
410 410
             }
411
-            if (! $local) {
411
+            if (!$local) {
412 412
                 return $ref;
413 413
             }
414 414
         }
@@ -460,7 +460,7 @@  discard block
 block discarded – undo
460 460
         }
461 461
 
462 462
         $type = strtolower($type);
463
-        if (! isset(static::$_detectors[$type])) {
463
+        if (!isset(static::$_detectors[$type])) {
464 464
             return false;
465 465
         }
466 466
         if ($args) {
@@ -539,7 +539,7 @@  discard block
 block discarded – undo
539 539
         foreach ($detect['header'] as $header => $value) {
540 540
             $header = $this->getEnv('http_' . $header);
541 541
             if ($header !== null) {
542
-                if (! is_string($value) && ! is_bool($value) && is_callable($value)) {
542
+                if (!is_string($value) && !is_bool($value) && is_callable($value)) {
543 543
                     return $value($header);
544 544
                 }
545 545
 
@@ -612,7 +612,7 @@  discard block
 block discarded – undo
612 612
     public function isAll(array $types): bool
613 613
     {
614 614
         foreach ($types as $type) {
615
-            if (! $this->is($type)) {
615
+            if (!$this->is($type)) {
616 616
                 return false;
617 617
             }
618 618
         }
@@ -715,7 +715,7 @@  discard block
 block discarded – undo
715 715
     protected function normalizeHeaderName(string $name): string
716 716
     {
717 717
         $name = str_replace('-', '_', strtoupper($name));
718
-        if (! in_array($name, ['CONTENT_LENGTH', 'CONTENT_TYPE'], true)) {
718
+        if (!in_array($name, ['CONTENT_LENGTH', 'CONTENT_TYPE'], true)) {
719 719
             $name = 'HTTP_' . $name;
720 720
         }
721 721
 
@@ -900,8 +900,8 @@  discard block
 block discarded – undo
900 900
         $new = clone $this;
901 901
 
902 902
         if (
903
-            ! is_string($method)
904
-            || ! preg_match('/^[!#$%&\'*+.^_`\|~0-9a-z-]+$/i', $method)
903
+            !is_string($method)
904
+            || !preg_match('/^[!#$%&\'*+.^_`\|~0-9a-z-]+$/i', $method)
905 905
         ) {
906 906
             throw new InvalidArgumentException(sprintf(
907 907
                 'Unsupported HTTP method "%s" provided',
@@ -1145,7 +1145,7 @@  discard block
 block discarded – undo
1145 1145
                 }
1146 1146
             }
1147 1147
 
1148
-            if (! isset($accept[$prefValue])) {
1148
+            if (!isset($accept[$prefValue])) {
1149 1149
                 $accept[$prefValue] = [];
1150 1150
             }
1151 1151
             if ($prefValue) {
@@ -1223,7 +1223,7 @@  discard block
 block discarded – undo
1223 1223
         if ($name === null) {
1224 1224
             return $this->data;
1225 1225
         }
1226
-        if (! is_array($this->data) && $name) {
1226
+        if (!is_array($this->data) && $name) {
1227 1227
             return $default;
1228 1228
         }
1229 1229
 
@@ -1364,7 +1364,7 @@  discard block
 block discarded – undo
1364 1364
      */
1365 1365
     public function withProtocolVersion($version): self
1366 1366
     {
1367
-        if (! preg_match('/^(1\.[01]|2(\.[0])?)$/', $version)) {
1367
+        if (!preg_match('/^(1\.[01]|2(\.[0])?)$/', $version)) {
1368 1368
             throw new InvalidArgumentException("Unsupported protocol version '{$version}' provided");
1369 1369
         }
1370 1370
         $new           = clone $this;
@@ -1386,7 +1386,7 @@  discard block
 block discarded – undo
1386 1386
     public function getEnv(string $key, ?string $default = null): ?string
1387 1387
     {
1388 1388
         $key = strtoupper($key);
1389
-        if (! array_key_exists($key, $this->_environment)) {
1389
+        if (!array_key_exists($key, $this->_environment)) {
1390 1390
             $this->_environment[$key] = env($key);
1391 1391
         }
1392 1392
 
@@ -1609,7 +1609,7 @@  discard block
 block discarded – undo
1609 1609
         $file = Arr::get($this->uploadedFiles, $path);
1610 1610
         if (is_array($file)) {
1611 1611
             foreach ($file as $f) {
1612
-                if (! ($f instanceof UploadedFile)) {
1612
+                if (!($f instanceof UploadedFile)) {
1613 1613
                     return null;
1614 1614
                 }
1615 1615
             }
@@ -1617,7 +1617,7 @@  discard block
 block discarded – undo
1617 1617
             return $file;
1618 1618
         }
1619 1619
 
1620
-        if (! ($file instanceof UploadedFileInterface)) {
1620
+        if (!($file instanceof UploadedFileInterface)) {
1621 1621
             return null;
1622 1622
         }
1623 1623
 
@@ -1665,7 +1665,7 @@  discard block
 block discarded – undo
1665 1665
                 continue;
1666 1666
             }
1667 1667
 
1668
-            if (! $file instanceof UploadedFileInterface) {
1668
+            if (!$file instanceof UploadedFileInterface) {
1669 1669
                 throw new InvalidArgumentException("Invalid file at '{$path}{$key}'");
1670 1670
             }
1671 1671
         }
@@ -1716,7 +1716,7 @@  discard block
 block discarded – undo
1716 1716
         }
1717 1717
 
1718 1718
         $host = $uri->getHost();
1719
-        if (! $host) {
1719
+        if (!$host) {
1720 1720
             return $new;
1721 1721
         }
1722 1722
         $port = $uri->getPort();
@@ -1824,7 +1824,7 @@  discard block
 block discarded – undo
1824 1824
         $validLocales = config('app.supported_locales');
1825 1825
         // S'il ne s'agit pas d'un paramètre régional valide, définissez-le
1826 1826
         // aux paramètres régionaux par défaut du site.
1827
-        if (! in_array($locale, $validLocales, true)) {
1827
+        if (!in_array($locale, $validLocales, true)) {
1828 1828
             $locale = config('app.language');
1829 1829
         }
1830 1830
 
@@ -1924,7 +1924,7 @@  discard block
 block discarded – undo
1924 1924
             $override = true;
1925 1925
         }
1926 1926
 
1927
-        if ($override && ! in_array($this->_environment['REQUEST_METHOD'], ['PUT', 'POST', 'DELETE', 'PATCH'], true)) {
1927
+        if ($override && !in_array($this->_environment['REQUEST_METHOD'], ['PUT', 'POST', 'DELETE', 'PATCH'], true)) {
1928 1928
             $data = [];
1929 1929
         }
1930 1930
 
@@ -1973,7 +1973,7 @@  discard block
 block discarded – undo
1973 1973
      */
1974 1974
     protected function _processFiles(array $post, array $files): array
1975 1975
     {
1976
-        if (! is_array($files)) {
1976
+        if (!is_array($files)) {
1977 1977
             return $post;
1978 1978
         }
1979 1979
 
Please login to merge, or discard this patch.