@@ -107,7 +107,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | /** |