Passed
Push — main ( 144555...8e5edc )
by Dimitri
54s queued 14s
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/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,14 +397,14 @@  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
 
404 404
             $this->store = new $handler();
405 405
         }
406 406
 
407
-        if (! $this->store->init($this->currentInstance())) {
407
+        if (!$this->store->init($this->currentInstance())) {
408 408
             throw new RuntimeException(sprintf('Handler %s could not be initialize', get_class($this->store)));
409 409
         }
410 410
 
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
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     {
29 29
         $this->cartId = $cartId;
30 30
 
31
-        if (! $this->has()) {
31
+        if (!$this->has()) {
32 32
             $this->write([]);
33 33
         }
34 34
 
Please login to merge, or discard this patch.
src/Handlers/Cookie.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      */
26 26
     public function read(): array
27 27
     {
28
-        if (! $this->has()) {
28
+        if (!$this->has()) {
29 29
             return [];
30 30
         }
31 31
 
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.