Skip to content

Commit 9a91887

Browse files
committed
Fix doc issues
1 parent 60a0ed7 commit 9a91887

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

src/CachePlugin.php

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ final class CachePlugin implements Plugin
3535
private $config;
3636

3737
/**
38-
* Cache directives indicating if a response can be cached.
38+
* Cache directives indicating if a response can not be cached.
3939
*
4040
* @var array
4141
*/
@@ -46,7 +46,8 @@ final class CachePlugin implements Plugin
4646
* @param StreamFactory $streamFactory
4747
* @param array $config {
4848
*
49-
* @var bool $respect_cache_headers Whether to look at the cache directives or ignore them. This option is deprecated, use `respect_response_cache_directives` instead
49+
* @var bool $respect_cache_headers Whether to look at the cache directives or ignore them. This option is
50+
* deprecated, use `respect_response_cache_directives` instead
5051
* @var int $default_ttl (seconds) If we do not respect cache headers or can't calculate a good ttl, use this
5152
* value
5253
* @var string $hash_algo The hashing algorithm to use when generating cache keys
@@ -55,7 +56,7 @@ final class CachePlugin implements Plugin
5556
* We store a cache item for $cache_lifetime + max age of the response.
5657
* @var array $methods list of request methods which can be cached
5758
* @var array $respect_response_cache_directives list of cache directives this plugin will respect while caching responses.
58-
* }
59+
* }.
5960
*/
6061
public function __construct(CacheItemPoolInterface $pool, StreamFactory $streamFactory, array $config = [])
6162
{
@@ -72,11 +73,12 @@ public function __construct(CacheItemPoolInterface $pool, StreamFactory $streamF
7273
}
7374

7475
/**
75-
* This method will setup the cachePlugin in client cache mode. When using the client cache mode the plugin will cache responses with `private` cache directive.
76+
* This method will setup the cachePlugin in client cache mode. When using the client cache mode the plugin will
77+
* cache responses with `private` cache directive.
7678
*
7779
* @param CacheItemPoolInterface $pool
7880
* @param StreamFactory $streamFactory
79-
* @param array $config
81+
* @param array $config For all possible config options see the constructor docs
8082
*
8183
* @return CachePlugin
8284
*/
@@ -98,11 +100,12 @@ public static function clientCache(CacheItemPoolInterface $pool, StreamFactory $
98100
}
99101

100102
/**
101-
* This method will setup the cachePlugin in server cache mode. This is the default caching behavior (refuses to cache responses with the `private`or `no-cache` directives.
103+
* This method will setup the cachePlugin in server cache mode. This is the default caching behavior it refuses to
104+
* cache responses with the `private`or `no-cache` directives.
102105
*
103106
* @param CacheItemPoolInterface $pool
104107
* @param StreamFactory $streamFactory
105-
* @param array $config
108+
* @param array $config For all possible config options see the constructor docs
106109
*
107110
* @return CachePlugin
108111
*/

0 commit comments

Comments
 (0)