Passed
Push — main ( c7b99b...89bfd0 )
by
unknown
31:26 queued 27:32
created
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/Debug/Debugger.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
         $debugger = Ignition::make();
63 63
 
64 64
         $debugger->applicationPath(ROOTPATH)
65
-            ->shouldDisplayException(! on_prod())
65
+            ->shouldDisplayException(!on_prod())
66 66
             ->register();
67 67
     }
68 68
 }
Please login to merge, or discard this patch.
src/Helpers/filesystem.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
 use BlitzPHP\Container\Services;
13 13
 
14
-if (! function_exists('directory_map')) {
14
+if (!function_exists('directory_map')) {
15 15
     /**
16 16
      * Créer une carte de répertoire
17 17
      *
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     }
30 30
 }
31 31
 
32
-if (! function_exists('directory_mirror')) {
32
+if (!function_exists('directory_mirror')) {
33 33
     /**
34 34
      * Copie récursivement les fichiers et répertoires du répertoire d'origine
35 35
      * dans le répertoire cible, c'est-à-dire "miroir" son contenu.
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     }
43 43
 }
44 44
 
45
-if (! function_exists('write_file')) {
45
+if (!function_exists('write_file')) {
46 46
     /**
47 47
      * Write File
48 48
      *
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     }
77 77
 }
78 78
 
79
-if (! function_exists('delete_files')) {
79
+if (!function_exists('delete_files')) {
80 80
     /**
81 81
      * Delete Files
82 82
      *
@@ -101,18 +101,18 @@  discard block
 block discarded – undo
101 101
                 RecursiveIteratorIterator::CHILD_FIRST
102 102
             ) as $object) {
103 103
                 $filename = $object->getFilename();
104
-                if (! $hidden && $filename[0] === '.') {
104
+                if (!$hidden && $filename[0] === '.') {
105 105
                     continue;
106 106
                 }
107 107
 
108
-                if (! $htdocs || ! preg_match('/^(\.htaccess|index\.(html|htm|php)|web\.config)$/i', $filename)) {
108
+                if (!$htdocs || !preg_match('/^(\.htaccess|index\.(html|htm|php)|web\.config)$/i', $filename)) {
109 109
                     $isDir = $object->isDir();
110 110
                     if ($isDir && $delDir) {
111 111
                         rmdir($object->getPathname());
112 112
 
113 113
                         continue;
114 114
                     }
115
-                    if (! $isDir) {
115
+                    if (!$isDir) {
116 116
                         unlink($object->getPathname());
117 117
                     }
118 118
                 }
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
     }
126 126
 }
127 127
 
128
-if (! function_exists('get_filenames')) {
128
+if (!function_exists('get_filenames')) {
129 129
     /**
130 130
      * Get Filenames
131 131
      *
@@ -154,11 +154,11 @@  discard block
 block discarded – undo
154 154
                 RecursiveIteratorIterator::SELF_FIRST
155 155
             ) as $name => $object) {
156 156
                 $basename = pathinfo($name, PATHINFO_BASENAME);
157
-                if (! $hidden && $basename[0] === '.') {
157
+                if (!$hidden && $basename[0] === '.') {
158 158
                     continue;
159 159
                 }
160 160
 
161
-                if ($includeDir || ! $object->isDir()) {
161
+                if ($includeDir || !$object->isDir()) {
162 162
                     if ($includePath === false) {
163 163
                         $files[] = $basename;
164 164
                     } elseif ($includePath === null) {
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
     }
179 179
 }
180 180
 
181
-if (! function_exists('get_dir_file_info')) {
181
+if (!function_exists('get_dir_file_info')) {
182 182
     /**
183 183
      * Get Directory File Information
184 184
      *
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
     }
225 225
 }
226 226
 
227
-if (! function_exists('get_file_info')) {
227
+if (!function_exists('get_file_info')) {
228 228
     /**
229 229
      * Get File Info
230 230
      *
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
      */
241 241
     function get_file_info(string $file, $returnedValues = ['name', 'server_path', 'size', 'date'])
242 242
     {
243
-        if (! is_file($file)) {
243
+        if (!is_file($file)) {
244 244
             return null;
245 245
         }
246 246
 
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
     }
291 291
 }
292 292
 
293
-if (! function_exists('symbolic_permissions')) {
293
+if (!function_exists('symbolic_permissions')) {
294 294
     /**
295 295
      * Symbolic Permissions
296 296
      *
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
     }
339 339
 }
340 340
 
341
-if (! function_exists('octal_permissions')) {
341
+if (!function_exists('octal_permissions')) {
342 342
     /**
343 343
      * Octal Permissions
344 344
      *
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
     }
354 354
 }
355 355
 
356
-if (! function_exists('same_file')) {
356
+if (!function_exists('same_file')) {
357 357
     /**
358 358
      * Checks if two files both exist and have identical hashes
359 359
      *
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
     }
366 366
 }
367 367
 
368
-if (! function_exists('set_realpath')) {
368
+if (!function_exists('set_realpath')) {
369 369
     /**
370 370
      * Set Realpath
371 371
      *
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
         // Resolve the path
382 382
         if (realpath($path) !== false) {
383 383
             $path = realpath($path);
384
-        } elseif ($checkExistence && ! is_dir($path) && ! is_file($path)) {
384
+        } elseif ($checkExistence && !is_dir($path) && !is_file($path)) {
385 385
             throw new InvalidArgumentException('Not a valid path: ' . $path);
386 386
         }
387 387
 
Please login to merge, or discard this patch.
src/Container/Container.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      */
109 109
     public function addIf(string $key, Closure $callback): void
110 110
     {
111
-        if (! $this->has($key)) {
111
+        if (!$this->has($key)) {
112 112
             $this->add($key, $callback);
113 113
         }
114 114
     }
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
      */
225 225
     private function discoveProviders(): void
226 226
     {
227
-        if (! self::$discovered) {
227
+        if (!self::$discovered) {
228 228
             $locator = Services::locator();
229 229
             $files   = array_merge(
230 230
                 $locator->search('Config/Providers'),
Please login to merge, or discard this patch.
src/Debug/Toolbar.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         $this->config = $config ?? (object) config('toolbar');
68 68
 
69 69
         foreach ($this->config->collectors as $collector) {
70
-            if (! class_exists($collector)) {
70
+            if (!class_exists($collector)) {
71 71
                 logger()->critical(
72 72
                     'Toolbar collector does not exist (' . $collector . ').'
73 73
                     . ' Please check $collectors in the app/Config/toolbar.php file.'
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
             $data['vars']['varData'][esc($heading)] = $varData;
134 134
         }
135 135
 
136
-        if (! empty($_SESSION)) {
136
+        if (!empty($_SESSION)) {
137 137
             foreach ($_SESSION as $key => $value) {
138 138
                 // Remplacez les données binaires par une chaîne pour éviter l'échec de json_encode.
139 139
                 if (is_string($value) && preg_match('~[^\x20-\x7E\t\r\n]~', $value)) {
@@ -206,8 +206,8 @@  discard block
 block discarded – undo
206 206
         $output = '';
207 207
 
208 208
         foreach ($rows as $row) {
209
-            $hasChildren = isset($row['children']) && ! empty($row['children']);
210
-            $isQuery     = isset($row['query']) && ! empty($row['query']);
209
+            $hasChildren = isset($row['children']) && !empty($row['children']);
210
+            $isQuery     = isset($row['query']) && !empty($row['query']);
211 211
 
212 212
             // Ouvrir la chronologie du contrôleur par défaut
213 213
             $open = $row['name'] === 'Controller';
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
 
273 273
         // Le collecter
274 274
         foreach ($collectors as $collector) {
275
-            if (! $collector['hasTimelineData']) {
275
+            if (!$collector['hasTimelineData']) {
276 276
                 continue;
277 277
             }
278 278
 
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
         array_multisort(...$sortArray);
290 290
 
291 291
         // Ajouter une heure de fin à chaque élément
292
-        array_walk($data, static function (&$row) {
292
+        array_walk($data, static function(&$row) {
293 293
             $row['end'] = $row['start'] + $row['duration'];
294 294
         });
295 295
 
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
         $element = array_shift($elements);
309 309
 
310 310
         // Si nous avons des enfants derrière nous, récupérez-les et attachez-les-nous
311
-        while (! empty($elements) && $elements[array_key_first($elements)]['end'] <= $element['end']) {
311
+        while (!empty($elements) && $elements[array_key_first($elements)]['end'] <= $element['end']) {
312 312
             $element['children'][] = array_shift($elements);
313 313
         }
314 314
 
@@ -332,14 +332,14 @@  discard block
 block discarded – undo
332 332
      */
333 333
     protected function collectVarData(): array
334 334
     {
335
-        if (! ($this->config->collectVarData ?? true)) {
335
+        if (!($this->config->collectVarData ?? true)) {
336 336
             return [];
337 337
         }
338 338
 
339 339
         $data = [];
340 340
 
341 341
         foreach ($this->collectors as $collector) {
342
-            if (! $collector->hasVarData()) {
342
+            if (!$collector->hasVarData()) {
343 343
                 continue;
344 344
             }
345 345
 
@@ -374,7 +374,7 @@  discard block
 block discarded – undo
374 374
         }
375 375
 
376 376
         // Si on a desactiver le debogage ou l'affichage de la debugbar, on s'arrete
377
-        if (! BLITZ_DEBUG || ! $this->config->show_debugbar) {
377
+        if (!BLITZ_DEBUG || !$this->config->show_debugbar) {
378 378
             return $response;
379 379
         }
380 380
 
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
         // Mise à jour vers microtime() pour que nous puissions obtenir l'historique
390 390
         $time = sprintf('%.6f', Date::now()->format('U.u'));
391 391
 
392
-        if (! is_dir($this->debugPath)) {
392
+        if (!is_dir($this->debugPath)) {
393 393
             mkdir($this->debugPath, 0o777);
394 394
         }
395 395
 
@@ -399,7 +399,7 @@  discard block
 block discarded – undo
399 399
 
400 400
         // Les formats non HTML ne doivent pas inclure la barre de débogage,
401 401
         // puis nous envoyons des en-têtes indiquant où trouver les données de débogage pour cette réponse
402
-        if ($request->ajax() || ! str_contains($format, 'html')) {
402
+        if ($request->ajax() || !str_contains($format, 'html')) {
403 403
             return $response
404 404
                 ->withHeader('Debugbar-Time', "{$time}")
405 405
                 ->withHeader('Debugbar-Link', site_url("?debugbar_time={$time}"));
Please login to merge, or discard this patch.
src/Debug/Toolbar/Collectors/ViewsCollector.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
     public function getVarData(): array
95 95
     {
96 96
         return [
97
-            'Données de la vues' => array_filter($this->viewer->getData(), static fn ($data) => ! ($data instanceof ErrorBag)),
97
+            'Données de la vues' => array_filter($this->viewer->getData(), static fn ($data) => !($data instanceof ErrorBag)),
98 98
         ];
99 99
     }
100 100
 
Please login to merge, or discard this patch.
src/Http/Response.php 1 patch
Spacing   +10 added lines, -10 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)) {
1427
+        if (!is_file($path)) {
1428 1428
             $path = APP_PATH . $path;
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/View/Parser.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 
95 95
         $file = $this->viewPath . $view;
96 96
 
97
-        if (! is_file($file)) {
97
+        if (!is_file($file)) {
98 98
             $fileOrig = $file;
99 99
             $file     = Services::locator()->locateFile($view, 'Views');
100 100
 
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
      */
167 167
     public function setData(array $data = [], ?string $context = null): self
168 168
     {
169
-        if (! empty($context)) {
169
+        if (!empty($context)) {
170 170
             foreach ($data as $key => &$value) {
171 171
                 if (is_array($value)) {
172 172
                     foreach ($value as &$obj) {
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
         foreach ($matches as $match) {
275 275
             // Loop over each piece of $data, replacing
276 276
             // its contents so that we know what to replace in parse()
277
-            $str = '';  // holds the new contents for this tag pair.
277
+            $str = ''; // holds the new contents for this tag pair.
278 278
 
279 279
             foreach ($data as $row) {
280 280
                 // Objects that have a `toArray()` method should be
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
                     if (is_array($val)) {
297 297
                         $pair = $this->parsePair($key, $val, $match[1]);
298 298
 
299
-                        if (! empty($pair)) {
299
+                        if (!empty($pair)) {
300 300
                             $pairs[array_keys($pair)[0]] = true;
301 301
 
302 302
                             $temp = array_merge($temp, $pair);
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
 
317 317
                 // Now replace our placeholders with the new content.
318 318
                 foreach ($temp as $pattern => $content) {
319
-                    $out = $this->replaceSingle($pattern, $content, $out, ! isset($pairs[$pattern]));
319
+                    $out = $this->replaceSingle($pattern, $content, $out, !isset($pairs[$pattern]));
320 320
                 }
321 321
 
322 322
                 $str .= $out;
@@ -486,7 +486,7 @@  discard block
 block discarded – undo
486 486
         $content = (string) $content;
487 487
 
488 488
         // Replace the content in the template
489
-        return preg_replace_callback($pattern, function ($matches) use ($content, $escape) {
489
+        return preg_replace_callback($pattern, function($matches) use ($content, $escape) {
490 490
             // Check for {! !} syntax to not escape this one.
491 491
             if (str_starts_with($matches[0], '{!') && substr($matches[0], -2) === '!}') {
492 492
                 $escape = false;
@@ -505,7 +505,7 @@  discard block
 block discarded – undo
505 505
 
506 506
         // Our regex earlier will leave all chained values on a single line
507 507
         // so we need to break them apart so we can apply them all.
508
-        $filters = ! empty($matches[1]) ? explode('|', $matches[1]) : [];
508
+        $filters = !empty($matches[1]) ? explode('|', $matches[1]) : [];
509 509
 
510 510
         if ($escape && empty($filters) && ($context = $this->shouldAddEscaping($orig))) {
511 511
             $filters[] = "esc({$context})";
@@ -533,7 +533,7 @@  discard block
 block discarded – undo
533 533
             }
534 534
         }
535 535
         // No pipes, then we know we need to escape
536
-        elseif (! str_contains($key, '|')) {
536
+        elseif (!str_contains($key, '|')) {
537 537
             $escape = 'html';
538 538
         }
539 539
         // If there's a `noescape` then we're definitely false.
@@ -541,7 +541,7 @@  discard block
 block discarded – undo
541 541
             $escape = false;
542 542
         }
543 543
         // If no `esc` filter is found, then we'll need to add one.
544
-        elseif (! preg_match('/\s+esc/', $key)) {
544
+        elseif (!preg_match('/\s+esc/', $key)) {
545 545
             $escape = 'html';
546 546
         }
547 547
 
@@ -560,10 +560,10 @@  discard block
 block discarded – undo
560 560
             preg_match('/\([\w<>=\/\\\,:.\-\s\+]+\)/', $filter, $param);
561 561
 
562 562
             // Remove the () and spaces to we have just the parameter left
563
-            $param = ! empty($param) ? trim($param[0], '() ') : null;
563
+            $param = !empty($param) ? trim($param[0], '() ') : null;
564 564
 
565 565
             // Params can be separated by commas to allow multiple parameters for the filter
566
-            if (! empty($param)) {
566
+            if (!empty($param)) {
567 567
                 $param = explode(',', $param);
568 568
 
569 569
                 // Clean it up
@@ -575,10 +575,10 @@  discard block
 block discarded – undo
575 575
             }
576 576
 
577 577
             // Get our filter name
578
-            $filter = ! empty($param) ? trim(strtolower(substr($filter, 0, strpos($filter, '(')))) : trim($filter);
578
+            $filter = !empty($param) ? trim(strtolower(substr($filter, 0, strpos($filter, '(')))) : trim($filter);
579 579
 
580 580
             $this->config['filters'] ??= [];
581
-            if (! array_key_exists($filter, $this->config['filters'])) {
581
+            if (!array_key_exists($filter, $this->config['filters'])) {
582 582
                 continue;
583 583
             }
584 584
 
@@ -617,7 +617,7 @@  discard block
 block discarded – undo
617 617
              *   $matches[1] = all parameters string in opening tag
618 618
              *   $matches[2] = content between the tags to send to the plugin.
619 619
              */
620
-            if (! preg_match_all($pattern, $template, $matches, PREG_SET_ORDER)) {
620
+            if (!preg_match_all($pattern, $template, $matches, PREG_SET_ORDER)) {
621 621
                 continue;
622 622
             }
623 623
 
Please login to merge, or discard this patch.
src/Cli/Commands/Encryption/GenerateKey.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 
59 59
         if (in_array($prefix, [null, true], true)) {
60 60
             $prefix = 'hex2bin';
61
-        } elseif (! in_array($prefix, ['hex2bin', 'base64'], true)) {
61
+        } elseif (!in_array($prefix, ['hex2bin', 'base64'], true)) {
62 62
             $prefix = $this->choice('Veuillez utiliser un prefixe validee.', ['hex2bin', 'base64']); // @codeCoverageIgnore
63 63
         }
64 64
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
             return;
79 79
         }
80 80
 
81
-        if (! $this->setNewEncryptionKey($encodedKey)) {
81
+        if (!$this->setNewEncryptionKey($encodedKey)) {
82 82
             $this->writer->error('Erreur dans la configuration d\'une nouvelle cle d\'encryption dans le fichier `.env`.', true);
83 83
 
84 84
             return;
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     {
109 109
         $currentKey = env('encryption.key', '');
110 110
 
111
-        if ($currentKey !== '' && ! $this->confirmOverwrite()) {
111
+        if ($currentKey !== '' && !$this->confirmOverwrite()) {
112 112
             // Pas testable car require une entree au clavier
113 113
             return false; // @codeCoverageIgnore
114 114
         }
@@ -132,8 +132,8 @@  discard block
 block discarded – undo
132 132
         $baseEnv = ROOTPATH . '.env.example';
133 133
         $envFile = ROOTPATH . '.env';
134 134
 
135
-        if (! is_file($envFile)) {
136
-            if (! is_file($baseEnv)) {
135
+        if (!is_file($envFile)) {
136
+            if (!is_file($baseEnv)) {
137 137
                 $this->writer->warn('Le fichier `.env.example` livré par défaut et le fichier `.env` personnalisé sont manquants.');
138 138
                 $this->eol()->write('Voici votre nouvelle clé à la place: ');
139 139
                 $this->writer->warn($key, true);
Please login to merge, or discard this patch.