@@ -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 | |