@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | |
| 124 | 124 | $time = strtotime($expires); |
| 125 | 125 | |
| 126 | - if (! is_int($time)) { |
|
| 126 | + if (!is_int($time)) { |
|
| 127 | 127 | throw new InvalidArgumentException(sprintf('Invalid expires "%s" provided', $expires)); |
| 128 | 128 | } |
| 129 | 129 | |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | /** @param array<string> $config */ |
| 210 | 210 | public static function fromConfig(array $config): self |
| 211 | 211 | { |
| 212 | - if (! isset($config['name'])) { |
|
| 212 | + if (!isset($config['name'])) { |
|
| 213 | 213 | throw new InvalidArgumentException( |
| 214 | 214 | "A 'name' item is required in the \$config parameter to __METHOD__. None provided." |
| 215 | 215 | ); |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | $clone = clone $this; |
| 242 | 242 | |
| 243 | 243 | foreach ($validAttributes as $attr) { |
| 244 | - if (! isset($params[$attr])) { |
|
| 244 | + if (!isset($params[$attr])) { |
|
| 245 | 245 | continue; |
| 246 | 246 | } |
| 247 | 247 | |
@@ -275,7 +275,7 @@ discard block |
||
| 275 | 275 | public function __toString(): string |
| 276 | 276 | { |
| 277 | 277 | $cookieStringParts = [ |
| 278 | - urlencode($this->name) . '=' . urlencode((string) $this->value), |
|
| 278 | + urlencode($this->name).'='.urlencode((string) $this->value), |
|
| 279 | 279 | ]; |
| 280 | 280 | |
| 281 | 281 | $cookieStringParts = $this->appendFormattedDomainPartIfSet($cookieStringParts); |
@@ -316,7 +316,7 @@ discard block |
||
| 316 | 316 | |
| 317 | 317 | $rawAttribute = array_shift($rawAttributes); |
| 318 | 318 | |
| 319 | - if (! is_string($rawAttribute)) { |
|
| 319 | + if (!is_string($rawAttribute)) { |
|
| 320 | 320 | throw new InvalidArgumentException(sprintf( |
| 321 | 321 | 'The provided cookie string "%s" must have at least one attribute', |
| 322 | 322 | $string |