Skip to content

Commit 61aab95

Browse files
author
Till Hildebrandt
committed
Implemented Feedback
- removed unnecessary string concatenation - set isCacheableRequest to private
1 parent ba4b1aa commit 61aab95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CachePlugin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function __construct(CacheItemPoolInterface $pool, StreamFactory $streamF
7373
$this->streamFactory = $streamFactory;
7474

7575
if (isset($config['respect_cache_headers']) && isset($config['respect_response_cache_directives'])) {
76-
throw new \InvalidArgumentException('You can\'t provide config option "respect_cache_headers" and "respect_response_cache_directives". '.'Use "respect_response_cache_directives" instead.');
76+
throw new \InvalidArgumentException('You can\'t provide config option "respect_cache_headers" and "respect_response_cache_directives". Use "respect_response_cache_directives" instead.');
7777
}
7878

7979
$optionsResolver = new OptionsResolver();
@@ -271,7 +271,7 @@ protected function isCacheable(ResponseInterface $response)
271271
*
272272
* @return bool
273273
*/
274-
protected function isCacheableRequest(RequestInterface $request)
274+
private function isCacheableRequest(RequestInterface $request)
275275
{
276276
foreach ($this->config['blacklisted_paths'] as $not_to_cache_path) {
277277
if (1 === preg_match('/'.$not_to_cache_path.'/', $request->getUri())) {

0 commit comments

Comments
 (0)