Passed
Push — main ( caca6c...2b63d8 )
by Dimitri
01:00 queued 15s
created
kahlan-config.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -10,13 +10,13 @@  discard block
 block discarded – undo
10 10
 $commandLine->option('ff', 'default', 1);
11 11
 $commandLine->option('coverage-scrutinizer', 'default', 'scrutinizer.xml');
12 12
 
13
-Filters::apply($this, 'reporting', function ($next) {
13
+Filters::apply($this, 'reporting', function($next) {
14 14
 
15 15
     // Get the reporter called `'coverage'` from the list of reporters
16 16
     $reporter = $this->reporters()->get('coverage');
17 17
 
18 18
     // Abort if no coverage is available.
19
-    if (! $reporter || ! $this->commandLine()->exists('coverage-scrutinizer')) {
19
+    if (!$reporter || !$this->commandLine()->exists('coverage-scrutinizer')) {
20 20
         return $next();
21 21
     }
22 22
 
@@ -29,8 +29,8 @@  discard block
 block discarded – undo
29 29
     return $next();
30 30
 });
31 31
 
32
-Filters::apply($this, 'coverage', function ($next) {
33
-    if (! extension_loaded('xdebug') && PHP_SAPI !== 'phpdbg') {
32
+Filters::apply($this, 'coverage', function($next) {
33
+    if (!extension_loaded('xdebug') && PHP_SAPI !== 'phpdbg') {
34 34
         return;
35 35
     }
36 36
     $reporters = $this->reporters();
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         'verbosity' => $this->commandLine()->get('coverage'),
39 39
         'driver' => PHP_SAPI !== 'phpdbg' ? new Xdebug() : new Phpdbg(),
40 40
         'path' => $this->commandLine()->get('src'),
41
-        'colors' => ! $this->commandLine()->get('no-colors'),
41
+        'colors' => !$this->commandLine()->get('no-colors'),
42 42
     ]);
43 43
     $reporters->add('coverage', $coverage);
44 44
 });
Please login to merge, or discard this patch.
phpstan-baseline.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 
3 3
 $ignoreErrors = [];
4 4
 $ignoreErrors[] = [
5
-	// identifier: new.static
6
-	'message' => '#^Unsafe usage of new static\\(\\)\\.$#',
7
-	'count' => 3,
8
-	'path' => __DIR__ . '/src/CartItem.php',
5
+    // identifier: new.static
6
+    'message' => '#^Unsafe usage of new static\\(\\)\\.$#',
7
+    'count' => 3,
8
+    'path' => __DIR__ . '/src/CartItem.php',
9 9
 ];
10 10
 
11 11
 return ['parameters' => ['ignoreErrors' => $ignoreErrors]];
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 $ignoreErrors = [];
4 4
 $ignoreErrors[] = [
Please login to merge, or discard this patch.
src/CartItem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
         if (empty($name)) {
70 70
             throw new InvalidArgumentException('Please supply a valid name.');
71 71
         }
72
-        if (! is_numeric($price)) {
72
+        if (!is_numeric($price)) {
73 73
             throw new InvalidArgumentException('Please supply a valid price.');
74 74
         }
75 75
 
Please login to merge, or discard this patch.
src/Handlers/BaseHandler.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
         $this->cartId  = $cartId;
38 38
         $this->options = $options;
39 39
 
40
-        if (! $this->has()) {
40
+        if (!$this->has()) {
41 41
             $this->write([]);
42 42
         }
43 43
 
Please login to merge, or discard this patch.
src/Handlers/Cookie.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      */
29 29
     public function read(): array
30 30
     {
31
-        if (! $this->has()) {
31
+        if (!$this->has()) {
32 32
             return [];
33 33
         }
34 34
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
             'samesite' => $this->option('samesite', 'Lax'),
74 74
         ];
75 75
 
76
-        if (! empty($options['expires'])) {
76
+        if (!empty($options['expires'])) {
77 77
             if (is_numeric($options['expires'])) {
78 78
                 $options['expires'] *= 60;
79 79
             }
Please login to merge, or discard this patch.
src/Cart.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
     {
172 172
         $content = $this->getContent();
173 173
 
174
-        if (! $content->has($rowId)) {
174
+        if (!$content->has($rowId)) {
175 175
             throw new InvalidRowIDException("The cart does not contain rowId {$rowId}.");
176 176
         }
177 177
 
@@ -344,7 +344,7 @@  discard block
 block discarded – undo
344 344
      */
345 345
     private function isMulti(mixed $item): bool
346 346
     {
347
-        if (! is_array($item)) {
347
+        if (!is_array($item)) {
348 348
             return false;
349 349
         }
350 350
 
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
         if (null === $this->store) {
398 398
             /** @var class-string<StoreManager> */
399 399
             $handler = $this->config('handler', Session::class);
400
-            if (! class_exists($handler) || ! is_a($handler, StoreManager::class, true)) {
400
+            if (!class_exists($handler) || !is_a($handler, StoreManager::class, true)) {
401 401
                 throw new InvalidArgumentException(sprintf('handler must be an class that implements %s', StoreManager::class));
402 402
             }
403 403
 
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
         $class   = get_class($this->store);
408 408
         $options = $this->config('options.' . $class, []);
409 409
 
410
-        if (! $this->store->init($this->currentInstance(), $options)) {
410
+        if (!$this->store->init($this->currentInstance(), $options)) {
411 411
             throw new RuntimeException(sprintf('Handler %s could not be initialize', $class));
412 412
         }
413 413
 
Please login to merge, or discard this patch.