Skip to content

Commit 720a0cd

Browse files
committed
Remove unuseful PHPDoc automatically
1 parent f966926 commit 720a0cd

18 files changed

+6
-73
lines changed

src/BatchClient.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ class BatchClient implements HttpClient
2222
*/
2323
private $client;
2424

25-
/**
26-
* @param HttpClient $client
27-
*/
2825
public function __construct(HttpClient $client)
2926
{
3027
$this->client = $client;

src/BatchResult.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ public function getResponses()
5858
/**
5959
* Checks if there is a successful response for a request.
6060
*
61-
* @param RequestInterface $request
62-
*
6361
* @return bool
6462
*/
6563
public function isSuccessful(RequestInterface $request)
@@ -70,8 +68,6 @@ public function isSuccessful(RequestInterface $request)
7068
/**
7169
* Returns the response for a successful request.
7270
*
73-
* @param RequestInterface $request
74-
*
7571
* @return ResponseInterface
7672
*
7773
* @throws \UnexpectedValueException If request was not part of the batch or failed
@@ -88,9 +84,6 @@ public function getResponseFor(RequestInterface $request)
8884
/**
8985
* Adds a response in an immutable way.
9086
*
91-
* @param RequestInterface $request
92-
* @param ResponseInterface $response
93-
*
9487
* @return BatchResult the new BatchResult with this request-response pair added to it
9588
*/
9689
public function addResponse(RequestInterface $request, ResponseInterface $response)
@@ -130,8 +123,6 @@ public function getExceptions()
130123
/**
131124
* Checks if there is an exception for a request, meaning the request failed.
132125
*
133-
* @param RequestInterface $request
134-
*
135126
* @return bool
136127
*/
137128
public function isFailed(RequestInterface $request)
@@ -142,8 +133,6 @@ public function isFailed(RequestInterface $request)
142133
/**
143134
* Returns the exception for a failed request.
144135
*
145-
* @param RequestInterface $request
146-
*
147136
* @return Exception
148137
*
149138
* @throws \UnexpectedValueException If request was not part of the batch or was successful
@@ -160,9 +149,6 @@ public function getExceptionFor(RequestInterface $request)
160149
/**
161150
* Adds an exception in an immutable way.
162151
*
163-
* @param RequestInterface $request
164-
* @param Exception $exception
165-
*
166152
* @return BatchResult the new BatchResult with this request-exception pair added to it
167153
*/
168154
public function addException(RequestInterface $request, Exception $exception)

src/EmulatedHttpAsyncClient.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ class EmulatedHttpAsyncClient implements HttpClient, HttpAsyncClient
1717
use HttpAsyncClientEmulator;
1818
use HttpClientDecorator;
1919

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

src/EmulatedHttpClient.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ class EmulatedHttpClient implements HttpClient, HttpAsyncClient
1717
use HttpAsyncClientDecorator;
1818
use HttpClientEmulator;
1919

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

src/Exception/BatchException.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ final class BatchException extends TransferException
1919
*/
2020
private $result;
2121

22-
/**
23-
* @param BatchResult $result
24-
*/
2522
public function __construct(BatchResult $result)
2623
{
2724
$this->result = $result;

src/HttpClientRouter.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ public function sendAsyncRequest(RequestInterface $request)
4545
* Add a client to the router.
4646
*
4747
* @param HttpClient|HttpAsyncClient $client
48-
* @param RequestMatcher $requestMatcher
4948
*/
5049
public function addClient($client, RequestMatcher $requestMatcher)
5150
{
@@ -58,8 +57,6 @@ public function addClient($client, RequestMatcher $requestMatcher)
5857
/**
5958
* Choose an HTTP client given a specific request.
6059
*
61-
* @param RequestInterface $request
62-
*
6360
* @return HttpClient|HttpAsyncClient
6461
*/
6562
private function chooseHttpClient(RequestInterface $request)

src/HttpMethodsClient.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ public function __construct(HttpClient $httpClient, RequestFactory $requestFacto
5050
* Sends a GET request.
5151
*
5252
* @param string|UriInterface $uri
53-
* @param array $headers
5453
*
5554
* @throws Exception
5655
*
@@ -65,7 +64,6 @@ public function get($uri, array $headers = [])
6564
* Sends an HEAD request.
6665
*
6766
* @param string|UriInterface $uri
68-
* @param array $headers
6967
*
7068
* @throws Exception
7169
*
@@ -80,7 +78,6 @@ public function head($uri, array $headers = [])
8078
* Sends a TRACE request.
8179
*
8280
* @param string|UriInterface $uri
83-
* @param array $headers
8481
*
8582
* @throws Exception
8683
*
@@ -95,7 +92,6 @@ public function trace($uri, array $headers = [])
9592
* Sends a POST request.
9693
*
9794
* @param string|UriInterface $uri
98-
* @param array $headers
9995
* @param string|StreamInterface|null $body
10096
*
10197
* @throws Exception
@@ -111,7 +107,6 @@ public function post($uri, array $headers = [], $body = null)
111107
* Sends a PUT request.
112108
*
113109
* @param string|UriInterface $uri
114-
* @param array $headers
115110
* @param string|StreamInterface|null $body
116111
*
117112
* @throws Exception
@@ -127,7 +122,6 @@ public function put($uri, array $headers = [], $body = null)
127122
* Sends a PATCH request.
128123
*
129124
* @param string|UriInterface $uri
130-
* @param array $headers
131125
* @param string|StreamInterface|null $body
132126
*
133127
* @throws Exception
@@ -143,7 +137,6 @@ public function patch($uri, array $headers = [], $body = null)
143137
* Sends a DELETE request.
144138
*
145139
* @param string|UriInterface $uri
146-
* @param array $headers
147140
* @param string|StreamInterface|null $body
148141
*
149142
* @throws Exception
@@ -159,7 +152,6 @@ public function delete($uri, array $headers = [], $body = null)
159152
* Sends an OPTIONS request.
160153
*
161154
* @param string|UriInterface $uri
162-
* @param array $headers
163155
* @param string|StreamInterface|null $body
164156
*
165157
* @throws Exception
@@ -174,9 +166,8 @@ public function options($uri, array $headers = [], $body = null)
174166
/**
175167
* Sends a request with any HTTP method.
176168
*
177-
* @param string $method HTTP method to use
169+
* @param string $method HTTP method to use
178170
* @param string|UriInterface $uri
179-
* @param array $headers
180171
* @param string|StreamInterface|null $body
181172
*
182173
* @throws Exception

src/Plugin.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ interface Plugin
2222
*
2323
* @see http://docs.php-http.org/en/latest/plugins/build-your-own.html
2424
*
25-
* @param RequestInterface $request
26-
* @param callable $next Next middleware in the chain, the request is passed as the first argument
27-
* @param callable $first First middleware in the chain, used to to restart a request
25+
* @param callable $next Next middleware in the chain, the request is passed as the first argument
26+
* @param callable $first First middleware in the chain, used to to restart a request
2827
*
2928
* @return Promise Resolves a PSR-7 Response or fails with an Http\Client\Exception (The same as HttpAsyncClient)
3029
*/

src/Plugin/AddHostPlugin.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ final class AddHostPlugin implements Plugin
2525
private $replace;
2626

2727
/**
28-
* @param UriInterface $host
29-
* @param array $config {
28+
* @param array $config {
3029
*
3130
* @var bool $replace True will replace all hosts, false will only add host when none is specified.
3231
* }
@@ -64,9 +63,6 @@ public function handleRequest(RequestInterface $request, callable $next, callabl
6463
return $next($request);
6564
}
6665

67-
/**
68-
* @param OptionsResolver $resolver
69-
*/
7066
private function configureOptions(OptionsResolver $resolver)
7167
{
7268
$resolver->setDefaults([

src/Plugin/AddPathPlugin.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ final class AddPathPlugin implements Plugin
2525
*/
2626
private $alteredRequests = [];
2727

28-
/**
29-
* @param UriInterface $uri
30-
*/
3128
public function __construct(UriInterface $uri)
3229
{
3330
if ('' === $uri->getPath()) {

src/Plugin/AuthenticationPlugin.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ final class AuthenticationPlugin implements Plugin
1818
*/
1919
private $authentication;
2020

21-
/**
22-
* @param Authentication $authentication
23-
*/
2421
public function __construct(Authentication $authentication)
2522
{
2623
$this->authentication = $authentication;

src/Plugin/CookiePlugin.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ final class CookiePlugin implements Plugin
2525
*/
2626
private $cookieJar;
2727

28-
/**
29-
* @param CookieJar $cookieJar
30-
*/
3128
public function __construct(CookieJar $cookieJar)
3229
{
3330
$this->cookieJar = $cookieJar;
@@ -91,7 +88,6 @@ public function handleRequest(RequestInterface $request, callable $next, callabl
9188
/**
9289
* Creates a cookie from a string.
9390
*
94-
* @param RequestInterface $request
9591
* @param $setCookie
9692
*
9793
* @return Cookie|null

src/Plugin/DecoderPlugin.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@ private function decodeOnEncodingHeader($headerName, ResponseInterface $response
120120
/**
121121
* Decorate a stream given an encoding.
122122
*
123-
* @param string $encoding
124-
* @param StreamInterface $stream
123+
* @param string $encoding
125124
*
126125
* @return StreamInterface|false A new stream interface or false if encoding is not supported
127126
*/

src/Plugin/HistoryPlugin.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ final class HistoryPlugin implements Plugin
2121
*/
2222
private $journal;
2323

24-
/**
25-
* @param Journal $journal
26-
*/
2724
public function __construct(Journal $journal)
2825
{
2926
$this->journal = $journal;

src/Plugin/RequestMatcherPlugin.php

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

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

src/Plugin/RetryPlugin.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,7 @@ public function handleRequest(RequestInterface $request, callable $next, callabl
109109
}
110110

111111
/**
112-
* @param RequestInterface $request
113-
* @param Exception $e
114-
* @param int $retries The number of retries we made before. First time this get called it will be 0.
112+
* @param int $retries The number of retries we made before. First time this get called it will be 0.
115113
*
116114
* @return int
117115
*/

src/PluginClient.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@ public function sendAsyncRequest(RequestInterface $request)
102102
/**
103103
* Configure the plugin client.
104104
*
105-
* @param array $options
106-
*
107105
* @return array
108106
*/
109107
private function configure(array $options = [])

src/PluginClientFactory.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ final class PluginClientFactory
2626
* application execution.
2727
*
2828
* @internal
29-
*
30-
* @param callable $factory
3129
*/
3230
public static function setFactory(callable $factory)
3331
{

0 commit comments

Comments
 (0)