Completed
Push — master ( 59abc1...a59857 )
by Beau
35s
created
src/Dflydev/FigCookies/SetCookie.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Dflydev/FigCookies/Modifier/SameSite.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,6 +50,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Dflydev/FigCookies/Cookie.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.