Passed
Push — main ( 625462...aa68b0 )
by Dimitri
03:08
created
src/Http/Concerns/ResponseTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
             return $this->withFile($filepath, ['download' => true, 'name' => $filename]);
99 99
         }
100 100
         
101
-        if (! empty($data)) {
101
+        if (!empty($data)) {
102 102
             return $this->withStringBody($data)
103 103
                     ->withType(pathinfo($filename, PATHINFO_EXTENSION))
104 104
                     ->withDownload($filename);
Please login to merge, or discard this patch.
src/View/Adapters/NativeAdapter.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -276,8 +276,7 @@
 block discarded – undo
276 276
             $this->sectionStack[] = $name;
277 277
 
278 278
             ob_start();
279
-        }
280
-        else {
279
+        } else {
281 280
             $this->sections[$name] = [$content];
282 281
         }
283 282
     }
Please login to merge, or discard this patch.
src/Cli/Traits/ContentReplacer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
     /**
17 17
      * Chemin source
18 18
      */
19
-    protected string $sourcePath = __DIR__ .'/../';
19
+    protected string $sourcePath = __DIR__ . '/../';
20 20
 
21 21
     /**
22 22
      * Chemin cible pour le replacement
@@ -68,14 +68,14 @@  discard block
 block discarded – undo
68 68
 
69 69
         $directory = dirname($path);
70 70
 
71
-        if (! is_dir($directory)) {
71
+        if (!is_dir($directory)) {
72 72
             mkdir($directory, 0777, true);
73 73
         }
74 74
 
75 75
         if (file_exists($path)) {
76 76
             $overwrite = (bool) $this->option('f');
77 77
 
78
-            if (! $overwrite && ! $this->confirm("File '{$cleanPath}' already exists in destination. Overwrite?")) {
78
+            if (!$overwrite && !$this->confirm("File '{$cleanPath}' already exists in destination. Overwrite?")) {
79 79
                 $this->error("Skipped {$cleanPath}. If you wish to overwrite, please use the '-f' option or reply 'y' to the prompt.");
80 80
 
81 81
                 return;
Please login to merge, or discard this patch.
src/Cli/Console/Command.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
      */
307 307
     final protected function success(string $message, bool $badge = true, string $label = 'SUCCESS'): self
308 308
     {
309
-        if (! $badge) {
309
+        if (!$badge) {
310 310
             $this->writer->okBold($label);
311 311
         } else {
312 312
             $this->writer->boldWhiteBgGreen(" {$label} ");
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
      */
321 321
     final protected function warning(string $message, bool $badge = true, string $label = 'WARNING'): self
322 322
     {
323
-        if (! $badge) {
323
+        if (!$badge) {
324 324
             $this->writer->warnBold($label);
325 325
         } else {
326 326
             $this->writer->boldWhiteBgYellow(" {$label} ");
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
      */
335 335
     final protected function info(string $message, bool $badge = true, string $label = 'INFO'): self
336 336
     {
337
-        if (! $badge) {
337
+        if (!$badge) {
338 338
             $this->writer->infoBold($label);
339 339
         } else {
340 340
             $this->writer->boldWhiteBgCyan(" {$label} ");
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
      */
349 349
     final protected function error(string $message, bool $badge = true, string $label = 'ERROR'): self
350 350
     {
351
-        if (! $badge) {
351
+        if (!$badge) {
352 352
             $this->writer->errorBold($label);
353 353
         } else {
354 354
             $this->writer->boldWhiteBgRed(" {$label} ");
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
      */
454 454
     final protected function json($data): self
455 455
     {
456
-        $this->write(json_encode($data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES), true);
456
+        $this->write(json_encode($data, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES), true);
457 457
 
458 458
         return $this;
459 459
     }
Please login to merge, or discard this patch.