Completed
Push — master ( ae7c4d...f3215d )
by Michel
03:04
created
src/CacheUtil.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -263,7 +263,7 @@
 block discarded – undo
263 263
      * `null` if the lifetime cannot be calculated.
264 264
      *
265 265
      * @param ResponseInterface $response Response to get the lifetime from
266
-     * @return int|null Lifetime in seconds or null if not available
266
+     * @return ResponseInterface Lifetime in seconds or null if not available
267 267
      */
268 268
     public function getLifetime(ResponseInterface $response)
269 269
     {
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
     {
108 108
         if (!is_int($seconds)) {
109 109
             throw new InvalidArgumentException(
110
-                'Expected an integer with the number of seconds, received ' . gettype($seconds) . '.'
110
+                'Expected an integer with the number of seconds, received '.gettype($seconds).'.'
111 111
             );
112 112
         }
113 113
 
@@ -131,9 +131,9 @@  discard block
 block discarded – undo
131 131
      */
132 132
     public function withETag(ResponseInterface $response, $eTag, $weak = false)
133 133
     {
134
-        $eTag = '"' . trim($eTag, '"') . '"';
134
+        $eTag = '"'.trim($eTag, '"').'"';
135 135
         if ($weak) {
136
-            $eTag = 'W/' . $eTag;
136
+            $eTag = 'W/'.$eTag;
137 137
         }
138 138
 
139 139
         return $response->withHeader('ETag', $eTag);
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
     public function hasCurrentState(RequestInterface $request, $eTag, $lastModified = null)
219 219
     {
220 220
         if ($eTag) {
221
-            $eTag = '"' . trim($eTag, '"') . '"';
221
+            $eTag = '"'.trim($eTag, '"').'"';
222 222
         }
223 223
 
224 224
         $ifMatch = $request->getHeaderLine('If-Match');
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
             return $time->format($format);
414 414
         }
415 415
 
416
-        throw new InvalidArgumentException('Could not create a valid date from ' . gettype($time) . '.');
416
+        throw new InvalidArgumentException('Could not create a valid date from '.gettype($time).'.');
417 417
     }
418 418
 
419 419
     /**
@@ -438,7 +438,7 @@  discard block
 block discarded – undo
438 438
             return strtotime($time);
439 439
         }
440 440
 
441
-        throw new InvalidArgumentException('Could not create timestamp from ' . gettype($time) . '.');
441
+        throw new InvalidArgumentException('Could not create timestamp from '.gettype($time).'.');
442 442
     }
443 443
 
444 444
     /**
Please login to merge, or discard this patch.
src/Header/CacheControl.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -187,10 +187,10 @@
 block discarded – undo
187 187
             }
188 188
 
189 189
             if (is_string($value)) {
190
-                $value = '"' . $value . '"';
190
+                $value = '"'.$value.'"';
191 191
             }
192 192
 
193
-            $parts[] = $directive . '=' . $value;
193
+            $parts[] = $directive.'='.$value;
194 194
         }
195 195
 
196 196
         return implode(', ', $parts);
Please login to merge, or discard this patch.