Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 79ff0b8

Browse files
committed
Merge pull request #53 from Nyholm/doc_block
Updated doc block to be coherent with the suggested PSR
2 parents aaa1f69 + a43db06 commit 79ff0b8

File tree

5 files changed

+19
-16
lines changed

5 files changed

+19
-16
lines changed

src/CachePlugin.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ class CachePlugin implements Plugin
3232
private $config;
3333

3434
/**
35-
* Available options for $config are
36-
* - respect_cache_headers: Whether to look at the cache directives or ignore them.
37-
* - default_ttl: If we do not respect cache headers or can't calculate a good ttl, use this value.
38-
*
3935
* @param CacheItemPoolInterface $pool
4036
* @param StreamFactory $streamFactory
41-
* @param array $config
37+
* @param array $config {
38+
*
39+
* @var bool $respect_cache_headers Whether to look at the cache directives or ignore them.
40+
* @var int $default_ttl If we do not respect cache headers or can't calculate a good ttl, use this value.
41+
* }
4242
*/
4343
public function __construct(CacheItemPoolInterface $pool, StreamFactory $streamFactory, array $config = [])
4444
{

src/DecoderPlugin.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ class DecoderPlugin implements Plugin
3030
private $useContentEncoding;
3131

3232
/**
33-
* Available options for $config are:
34-
* - use_content_encoding: Whether this plugin should look at the Content-Encoding header first or only at the Transfer-Encoding (defaults to true).
33+
* @param array $config {
3534
*
36-
* @param array $config
35+
* @var bool $use_content_encoding Whether this plugin should look at the Content-Encoding header first or only at the Transfer-Encoding (defaults to true).
36+
* }
3737
*/
3838
public function __construct(array $config = [])
3939
{

src/PluginClient.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ final class PluginClient implements HttpClient, HttpAsyncClient
4343
/**
4444
* @param HttpClient|HttpAsyncClient $client
4545
* @param Plugin[] $plugins
46-
* @param array $options
46+
* @param array $options {
47+
*
48+
* @var int $max_restarts
49+
* }
4750
*
4851
* @throws \RuntimeException if client is not an instance of HttpClient or HttpAsyncClient
4952
*/

src/RedirectPlugin.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ class RedirectPlugin implements Plugin
9999
protected $circularDetection = [];
100100

101101
/**
102-
* Available options for $config are:
103-
* - preserve_header: bool|string[] True keeps all headers, false remove all of them, an array is interpreted as a list of header names to keep.
104-
* - use_default_for_multiple: Whether the location header must be directly used for a multiple redirection status code (300).
102+
* @param array $config {
105103
*
106-
* @param array $config
104+
* @var bool|string[] $preserve_header True keeps all headers, false remove all of them, an array is interpreted as a list of header names to keep.
105+
* @var bool $use_default_for_multiple Whether the location header must be directly used for a multiple redirection status code (300).
106+
* }
107107
*/
108108
public function __construct(array $config = [])
109109
{

src/RetryPlugin.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ class RetryPlugin implements Plugin
3131
private $retryStorage = [];
3232

3333
/**
34-
* Available options for $config are:
35-
* - retries: Number of retries to attempt if an exception occurs before letting the exception bubble up.
34+
* @param array $config {
3635
*
37-
* @param array $config
36+
* @var int $retries Number of retries to attempt if an exception occurs before letting the exception bubble up.
37+
* }
3838
*/
3939
public function __construct(array $config = [])
4040
{

0 commit comments

Comments
 (0)