@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | |
119 | 119 | $time = strtotime($expires); |
120 | 120 | |
121 | - if (! is_int($time)) { |
|
121 | + if (!is_int($time)) { |
|
122 | 122 | throw new \InvalidArgumentException(sprintf('Invalid expires "%s" provided', $expires)); |
123 | 123 | } |
124 | 124 | |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | public function __toString() : string |
214 | 214 | { |
215 | 215 | $cookieStringParts = [ |
216 | - urlencode($this->name) . '=' . urlencode((string) $this->value), |
|
216 | + urlencode($this->name).'='.urlencode((string) $this->value), |
|
217 | 217 | ]; |
218 | 218 | |
219 | 219 | $cookieStringParts = $this->appendFormattedDomainPartIfSet($cookieStringParts); |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | |
249 | 249 | $rawAttribute = array_shift($rawAttributes); |
250 | 250 | |
251 | - if (! is_string($rawAttribute)) { |
|
251 | + if (!is_string($rawAttribute)) { |
|
252 | 252 | throw new \InvalidArgumentException(sprintf( |
253 | 253 | 'The provided cookie string "%s" must have at least one attribute', |
254 | 254 | $string |
@@ -50,6 +50,6 @@ |
||
50 | 50 | |
51 | 51 | public function asString() : string |
52 | 52 | { |
53 | - return 'SameSite=' . ($this->strict ? 'Strict' : 'Lax'); |
|
53 | + return 'SameSite='.($this->strict ? 'Strict' : 'Lax'); |
|
54 | 54 | } |
55 | 55 | } |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | */ |
47 | 47 | public function __toString() : string |
48 | 48 | { |
49 | - return urlencode($this->name) . '=' . urlencode((string) $this->value); |
|
49 | + return urlencode($this->name).'='.urlencode((string) $this->value); |
|
50 | 50 | } |
51 | 51 | |
52 | 52 | /** |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | { |
68 | 68 | $cookies = StringUtil::splitOnAttributeDelimiter($string); |
69 | 69 | |
70 | - return array_map(function ($cookiePair) { |
|
70 | + return array_map(function($cookiePair) { |
|
71 | 71 | return static::oneFromCookiePair($cookiePair); |
72 | 72 | }, $cookies); |
73 | 73 | } |