@@ -51,7 +51,6 @@ final class CachePlugin implements Plugin
5151 private $ noCacheFlags = ['no-cache ' , 'private ' , 'no-store ' ];
5252
5353 /**
54- * @param CacheItemPoolInterface $pool
5554 * @param StreamFactory|StreamFactoryInterface $streamFactory
5655 * @param array $config {
5756 *
@@ -96,7 +95,6 @@ public function __construct(CacheItemPoolInterface $pool, $streamFactory, array
9695 * This method will setup the cachePlugin in client cache mode. When using the client cache mode the plugin will
9796 * cache responses with `private` cache directive.
9897 *
99- * @param CacheItemPoolInterface $pool
10098 * @param StreamFactory|StreamFactoryInterface $streamFactory
10199 * @param array $config For all possible config options see the constructor docs
102100 *
@@ -120,7 +118,6 @@ public static function clientCache(CacheItemPoolInterface $pool, $streamFactory,
120118 * This method will setup the cachePlugin in server cache mode. This is the default caching behavior it refuses to
121119 * cache responses with the `private`or `no-cache` directives.
122120 *
123- * @param CacheItemPoolInterface $pool
124121 * @param StreamFactory|StreamFactoryInterface $streamFactory
125122 * @param array $config For all possible config options see the constructor docs
126123 *
@@ -251,8 +248,6 @@ private function calculateResponseExpiresAt($maxAge)
251248 /**
252249 * Verify that we can cache this response.
253250 *
254- * @param ResponseInterface $response
255- *
256251 * @return bool
257252 */
258253 protected function isCacheable (ResponseInterface $ response )
@@ -274,8 +269,6 @@ protected function isCacheable(ResponseInterface $response)
274269 /**
275270 * Verify that we can cache this request.
276271 *
277- * @param RequestInterface $request
278- *
279272 * @return bool
280273 */
281274 private function isCacheableRequest (RequestInterface $ request )
@@ -293,8 +286,7 @@ private function isCacheableRequest(RequestInterface $request)
293286 /**
294287 * Get the value of a parameter in the cache control header.
295288 *
296- * @param ResponseInterface $response
297- * @param string $name The field of Cache-Control to fetch
289+ * @param string $name The field of Cache-Control to fetch
298290 *
299291 * @return bool|string The value of the directive, true if directive without value, false if directive not present
300292 */
@@ -316,8 +308,6 @@ private function getCacheControlDirective(ResponseInterface $response, $name)
316308 }
317309
318310 /**
319- * @param RequestInterface $request
320- *
321311 * @return string
322312 */
323313 private function createCacheKey (RequestInterface $ request )
@@ -330,8 +320,6 @@ private function createCacheKey(RequestInterface $request)
330320 /**
331321 * Get a ttl in seconds. It could return null if we do not respect cache headers and got no defaultTtl.
332322 *
333- * @param ResponseInterface $response
334- *
335323 * @return int|null
336324 */
337325 private function getMaxAge (ResponseInterface $ response )
@@ -362,8 +350,6 @@ private function getMaxAge(ResponseInterface $response)
362350
363351 /**
364352 * Configure an options resolver.
365- *
366- * @param OptionsResolver $resolver
367353 */
368354 private function configureOptions (OptionsResolver $ resolver )
369355 {
@@ -413,8 +399,6 @@ private function configureOptions(OptionsResolver $resolver)
413399 }
414400
415401 /**
416- * @param CacheItemInterface $cacheItem
417- *
418402 * @return ResponseInterface
419403 */
420404 private function createResponseFromCacheItem (CacheItemInterface $ cacheItem )
@@ -439,8 +423,6 @@ private function createResponseFromCacheItem(CacheItemInterface $cacheItem)
439423 /**
440424 * Get the value of the "If-Modified-Since" header.
441425 *
442- * @param CacheItemInterface $cacheItem
443- *
444426 * @return string|null
445427 */
446428 private function getModifiedSinceHeaderValue (CacheItemInterface $ cacheItem )
@@ -460,8 +442,6 @@ private function getModifiedSinceHeaderValue(CacheItemInterface $cacheItem)
460442 /**
461443 * Get the ETag from the cached response.
462444 *
463- * @param CacheItemInterface $cacheItem
464- *
465445 * @return string|null
466446 */
467447 private function getETag (CacheItemInterface $ cacheItem )
@@ -482,8 +462,6 @@ private function getETag(CacheItemInterface $cacheItem)
482462 /**
483463 * Call the cache listeners, if they are set.
484464 *
485- * @param RequestInterface $request
486- * @param ResponseInterface $response
487465 * @param bool $cacheHit
488466 * @param CacheItemInterface|null $cacheItem
489467 *
0 commit comments