Skip to content

Commit a853884

Browse files
committed
Run php cs fixer
1 parent 9a23e29 commit a853884

22 files changed

+27
-74
lines changed

src/Authentication/Matching.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ final class Matching implements Authentication
2727
*/
2828
private $matcher;
2929

30-
/**
31-
* @param Authentication $authentication
32-
* @param callable|null $matcher
33-
*/
3430
public function __construct(Authentication $authentication, callable $matcher = null)
3531
{
3632
if (is_null($matcher)) {
@@ -58,8 +54,7 @@ public function authenticate(RequestInterface $request)
5854
/**
5955
* Creates a matching authentication for an URL.
6056
*
61-
* @param Authentication $authentication
62-
* @param string $url
57+
* @param string $url
6358
*
6459
* @return self
6560
*/

src/Authentication/QueryParam.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ final class QueryParam implements Authentication
2020
*/
2121
private $params = [];
2222

23-
/**
24-
* @param array $params
25-
*/
2623
public function __construct(array $params)
2724
{
2825
$this->params = $params;

src/Authentication/RequestConditional.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ final class RequestConditional implements Authentication
2323
*/
2424
private $authentication;
2525

26-
/**
27-
* @param RequestMatcher $requestMatcher
28-
* @param Authentication $authentication
29-
*/
3026
public function __construct(RequestMatcher $requestMatcher, Authentication $authentication)
3127
{
3228
$this->requestMatcher = $requestMatcher;

src/Builder/ResponseBuilder.php

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ class ResponseBuilder
1818

1919
/**
2020
* Create builder for the given response.
21-
*
22-
* @param ResponseInterface $response
2321
*/
2422
public function __construct(ResponseInterface $response)
2523
{
@@ -39,12 +37,12 @@ public function getResponse()
3937
/**
4038
* Add headers represented by an array of header lines.
4139
*
42-
* @param string[] $headers Response headers as array of header lines.
40+
* @param string[] $headers response headers as array of header lines
4341
*
4442
* @return $this
4543
*
46-
* @throws \UnexpectedValueException For invalid header values.
47-
* @throws \InvalidArgumentException For invalid status code arguments.
44+
* @throws \UnexpectedValueException for invalid header values
45+
* @throws \InvalidArgumentException for invalid status code arguments
4846
*/
4947
public function setHeadersFromArray(array $headers)
5048
{
@@ -66,12 +64,12 @@ public function setHeadersFromArray(array $headers)
6664
/**
6765
* Add headers represented by a single string.
6866
*
69-
* @param string $headers Response headers as single string.
67+
* @param string $headers response headers as single string
7068
*
7169
* @return $this
7270
*
7371
* @throws \InvalidArgumentException if $headers is not a string on object with __toString()
74-
* @throws \UnexpectedValueException For invalid header values.
72+
* @throws \UnexpectedValueException for invalid header values
7573
*/
7674
public function setHeadersFromString($headers)
7775
{
@@ -95,11 +93,11 @@ public function setHeadersFromString($headers)
9593
/**
9694
* Set response status from a status string.
9795
*
98-
* @param string $statusLine Response status as a string.
96+
* @param string $statusLine response status as a string
9997
*
10098
* @return $this
10199
*
102-
* @throws \InvalidArgumentException For invalid status line.
100+
* @throws \InvalidArgumentException for invalid status line
103101
*/
104102
public function setStatus($statusLine)
105103
{
@@ -121,11 +119,11 @@ public function setStatus($statusLine)
121119
/**
122120
* Add header represented by a string.
123121
*
124-
* @param string $headerLine Response header as a string.
122+
* @param string $headerLine response header as a string
125123
*
126124
* @return $this
127125
*
128-
* @throws \InvalidArgumentException For invalid header names or values.
126+
* @throws \InvalidArgumentException for invalid header names or values
129127
*/
130128
public function addHeader($headerLine)
131129
{

src/Cookie.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ final class Cookie
6363
* @param bool $httpOnly
6464
* @param \DateTime|null $expires Expires attribute is HTTP 1.0 only and should be avoided.
6565
*
66-
* @throws \InvalidArgumentException If name, value or max age is not valid.
66+
* @throws \InvalidArgumentException if name, value or max age is not valid
6767
*/
6868
public function __construct(
6969
$name,
@@ -226,8 +226,6 @@ public function hasExpires()
226226
/**
227227
* Sets the expires.
228228
*
229-
* @param \DateTime|null $expires
230-
*
231229
* @return Cookie
232230
*/
233231
public function withExpires(\DateTime $expires = null)
@@ -435,7 +433,7 @@ public function isValid()
435433
*
436434
* @param string $name
437435
*
438-
* @throws \InvalidArgumentException If the name is empty or contains invalid characters.
436+
* @throws \InvalidArgumentException if the name is empty or contains invalid characters
439437
*/
440438
private function validateName($name)
441439
{
@@ -456,7 +454,7 @@ private function validateName($name)
456454
*
457455
* @param string|null $value
458456
*
459-
* @throws \InvalidArgumentException If the value contains invalid characters.
457+
* @throws \InvalidArgumentException if the value contains invalid characters
460458
*/
461459
private function validateValue($value)
462460
{
@@ -472,7 +470,7 @@ private function validateValue($value)
472470
*
473471
* @param int|null $maxAge
474472
*
475-
* @throws \InvalidArgumentException If the Max-Age is not an empty or integer value.
473+
* @throws \InvalidArgumentException if the Max-Age is not an empty or integer value
476474
*/
477475
private function validateMaxAge($maxAge)
478476
{

src/CookieJar.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ public function __construct()
2222
/**
2323
* Checks if there is a cookie.
2424
*
25-
* @param Cookie $cookie
26-
*
2725
* @return bool
2826
*/
2927
public function hasCookie(Cookie $cookie)
@@ -33,8 +31,6 @@ public function hasCookie(Cookie $cookie)
3331

3432
/**
3533
* Adds a cookie.
36-
*
37-
* @param Cookie $cookie
3834
*/
3935
public function addCookie(Cookie $cookie)
4036
{
@@ -57,8 +53,6 @@ public function addCookie(Cookie $cookie)
5753

5854
/**
5955
* Removes a cookie.
60-
*
61-
* @param Cookie $cookie
6256
*/
6357
public function removeCookie(Cookie $cookie)
6458
{
@@ -82,8 +76,6 @@ public function getCookies()
8276
/**
8377
* Returns all matching cookies.
8478
*
85-
* @param Cookie $cookie
86-
*
8779
* @return Cookie[]
8880
*/
8981
public function getMatchingCookies(Cookie $cookie)
@@ -98,8 +90,6 @@ public function getMatchingCookies(Cookie $cookie)
9890
/**
9991
* Finds matching cookies based on a callable.
10092
*
101-
* @param callable $match
102-
*
10393
* @return Cookie[]
10494
*/
10595
protected function findMatchingCookies(callable $match)

src/CookieUtil.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ final class CookieUtil
3030
*
3131
* @return \DateTime
3232
*
33-
* @throws UnexpectedValueException if we cannot parse the cookie date string.
33+
* @throws UnexpectedValueException if we cannot parse the cookie date string
3434
*/
3535
public static function parseDate($dateValue)
3636
{

src/Decorator/RequestDecorator.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ trait RequestDecorator
1717
/**
1818
* Exchanges the underlying request with another.
1919
*
20-
* @param RequestInterface $request
21-
*
2220
* @return self
2321
*/
2422
public function withRequest(RequestInterface $request)

src/Decorator/ResponseDecorator.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ trait ResponseDecorator
1616
/**
1717
* Exchanges the underlying response with another.
1818
*
19-
* @param ResponseInterface $response
20-
*
2119
* @return self
2220
*/
2321
public function withResponse(ResponseInterface $response)

src/Encoding/CompressStream.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
class CompressStream extends FilteredStream
1414
{
1515
/**
16-
* @param StreamInterface $stream
17-
* @param int $level
16+
* @param int $level
1817
*/
1918
public function __construct(StreamInterface $stream, $level = -1)
2019
{

src/Encoding/DecompressStream.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
class DecompressStream extends FilteredStream
1414
{
1515
/**
16-
* @param StreamInterface $stream
17-
* @param int $level
16+
* @param int $level
1817
*/
1918
public function __construct(StreamInterface $stream, $level = -1)
2019
{

src/Encoding/DeflateStream.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
class DeflateStream extends FilteredStream
1414
{
1515
/**
16-
* @param StreamInterface $stream
17-
* @param int $level
16+
* @param int $level
1817
*/
1918
public function __construct(StreamInterface $stream, $level = -1)
2019
{

src/Encoding/FilteredStream.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,8 @@ abstract class FilteredStream implements StreamInterface
5454
protected $buffer = '';
5555

5656
/**
57-
* @param StreamInterface $stream
58-
* @param mixed|null $readFilterOptions
59-
* @param mixed|null $writeFilterOptions deprecated since 1.5, will be removed in 2.0
57+
* @param mixed|null $readFilterOptions
58+
* @param mixed|null $writeFilterOptions deprecated since 1.5, will be removed in 2.0
6059
*/
6160
public function __construct(StreamInterface $stream, $readFilterOptions = null, $writeFilterOptions = null)
6261
{

src/Encoding/GzipDecodeStream.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
class GzipDecodeStream extends FilteredStream
1414
{
1515
/**
16-
* @param StreamInterface $stream
17-
* @param int $level
16+
* @param int $level
1817
*/
1918
public function __construct(StreamInterface $stream, $level = -1)
2019
{

src/Encoding/GzipEncodeStream.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
class GzipEncodeStream extends FilteredStream
1414
{
1515
/**
16-
* @param StreamInterface $stream
17-
* @param int $level
16+
* @param int $level
1817
*/
1918
public function __construct(StreamInterface $stream, $level = -1)
2019
{

src/Encoding/InflateStream.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
class InflateStream extends FilteredStream
1414
{
1515
/**
16-
* @param StreamInterface $stream
17-
* @param int $level
16+
* @param int $level
1817
*/
1918
public function __construct(StreamInterface $stream, $level = -1)
2019
{

src/Formatter.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,13 @@ interface Formatter
1515
/**
1616
* Formats a request.
1717
*
18-
* @param RequestInterface $request
19-
*
2018
* @return string
2119
*/
2220
public function formatRequest(RequestInterface $request);
2321

2422
/**
2523
* Formats a response.
2624
*
27-
* @param ResponseInterface $response
28-
*
2925
* @return string
3026
*/
3127
public function formatResponse(ResponseInterface $response);

src/Formatter/CurlCommandFormatter.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ public function formatResponse(ResponseInterface $response)
6868
}
6969

7070
/**
71-
* @param RequestInterface $request
72-
*
7371
* @return string
7472
*/
7573
private function getHeadersAsCommandOptions(RequestInterface $request)

src/Formatter/FullHttpMessageFormatter.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ public function formatResponse(ResponseInterface $response)
7070
/**
7171
* Add the message body if the stream is seekable.
7272
*
73-
* @param MessageInterface $request
74-
* @param string $message
73+
* @param string $message
7574
*
7675
* @return string
7776
*/

src/MessageFactory/DiactorosMessageFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace Http\Message\MessageFactory;
44

5-
use Http\Message\StreamFactory\DiactorosStreamFactory;
65
use Http\Message\MessageFactory;
6+
use Http\Message\StreamFactory\DiactorosStreamFactory;
77
use Zend\Diactoros\Request;
88
use Zend\Diactoros\Response;
99

src/MessageFactory/SlimMessageFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
namespace Http\Message\MessageFactory;
44

5+
use Http\Message\MessageFactory;
56
use Http\Message\StreamFactory\SlimStreamFactory;
67
use Http\Message\UriFactory\SlimUriFactory;
7-
use Http\Message\MessageFactory;
8+
use Slim\Http\Headers;
89
use Slim\Http\Request;
910
use Slim\Http\Response;
10-
use Slim\Http\Headers;
1111

1212
/**
1313
* Creates Slim 3 messages.

src/RequestMatcher/CallbackRequestMatcher.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ final class CallbackRequestMatcher implements RequestMatcher
1717
*/
1818
private $callback;
1919

20-
/**
21-
* @param callable $callback
22-
*/
2320
public function __construct(callable $callback)
2421
{
2522
$this->callback = $callback;

0 commit comments

Comments
 (0)