@@ -10,13 +10,13 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | }); |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types = 1); |
|
| 1 | +<?php declare(strict_types=1); |
|
| 2 | 2 | |
| 3 | 3 | $ignoreErrors = []; |
| 4 | 4 | $ignoreErrors[] = [ |
@@ -37,7 +37,7 @@ |
||
| 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 | |
@@ -28,7 +28,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -171,7 +171,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | |