From 1690965f39bc6caf5d993726bd77c8ce79a01bac Mon Sep 17 00:00:00 2001 From: David Buchmann Date: Tue, 26 Jul 2016 03:17:13 -0400 Subject: [PATCH] Applied fixes from StyleCI --- src/BatchClient.php | 4 ++-- src/BatchResult.php | 8 ++++---- src/HttpMethodsClient.php | 6 +++--- src/Plugin/DecoderPlugin.php | 2 +- src/Plugin/RedirectPlugin.php | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/BatchClient.php b/src/BatchClient.php index dd58b4f..2036355 100644 --- a/src/BatchClient.php +++ b/src/BatchClient.php @@ -45,11 +45,11 @@ public function sendRequest(RequestInterface $request) * * @param RequestInterface[] The requests to send * - * @return BatchResult Containing one result per request. + * @return BatchResult Containing one result per request * * @throws BatchException If one or more requests fails. The exception gives access to the * BatchResult with a map of request to result for success, request to - * exception for failures. + * exception for failures */ public function sendRequests(array $requests) { diff --git a/src/BatchResult.php b/src/BatchResult.php index a1fe3da..710611d 100644 --- a/src/BatchResult.php +++ b/src/BatchResult.php @@ -74,7 +74,7 @@ public function isSuccessful(RequestInterface $request) * * @return ResponseInterface * - * @throws \UnexpectedValueException If request was not part of the batch or failed. + * @throws \UnexpectedValueException If request was not part of the batch or failed */ public function getResponseFor(RequestInterface $request) { @@ -91,7 +91,7 @@ public function getResponseFor(RequestInterface $request) * @param RequestInterface $request * @param ResponseInterface $response * - * @return BatchResult the new BatchResult with this request-response pair added to it. + * @return BatchResult the new BatchResult with this request-response pair added to it */ public function addResponse(RequestInterface $request, ResponseInterface $response) { @@ -146,7 +146,7 @@ public function isFailed(RequestInterface $request) * * @return Exception * - * @throws \UnexpectedValueException If request was not part of the batch or was successful. + * @throws \UnexpectedValueException If request was not part of the batch or was successful */ public function getExceptionFor(RequestInterface $request) { @@ -163,7 +163,7 @@ public function getExceptionFor(RequestInterface $request) * @param RequestInterface $request * @param Exception $exception * - * @return BatchResult the new BatchResult with this request-exception pair added to it. + * @return BatchResult the new BatchResult with this request-exception pair added to it */ public function addException(RequestInterface $request, Exception $exception) { diff --git a/src/HttpMethodsClient.php b/src/HttpMethodsClient.php index 10b80e3..ea3e6cd 100644 --- a/src/HttpMethodsClient.php +++ b/src/HttpMethodsClient.php @@ -37,8 +37,8 @@ class HttpMethodsClient implements HttpClient private $messageFactory; /** - * @param HttpClient $httpClient The client to send requests with. - * @param MessageFactory $messageFactory The message factory to create requests. + * @param HttpClient $httpClient The client to send requests with + * @param MessageFactory $messageFactory The message factory to create requests */ public function __construct(HttpClient $httpClient, MessageFactory $messageFactory) { @@ -174,7 +174,7 @@ public function options($uri, array $headers = [], $body = null) /** * Sends a request with any HTTP method. * - * @param string $method HTTP method to use. + * @param string $method HTTP method to use * @param string|UriInterface $uri * @param array $headers * @param string|StreamInterface|null $body diff --git a/src/Plugin/DecoderPlugin.php b/src/Plugin/DecoderPlugin.php index eea4445..0f30a7b 100644 --- a/src/Plugin/DecoderPlugin.php +++ b/src/Plugin/DecoderPlugin.php @@ -23,7 +23,7 @@ final class DecoderPlugin implements Plugin /** * @var bool Whether this plugin decode stream with value in the Content-Encoding header (default to true). * - * If set to false only the Transfer-Encoding header will be used. + * If set to false only the Transfer-Encoding header will be used */ private $useContentEncoding; diff --git a/src/Plugin/RedirectPlugin.php b/src/Plugin/RedirectPlugin.php index f2b06a0..d85d979 100644 --- a/src/Plugin/RedirectPlugin.php +++ b/src/Plugin/RedirectPlugin.php @@ -102,7 +102,7 @@ class RedirectPlugin implements Plugin /** * @param array $config { * - * @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. + * @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 * @var bool $use_default_for_multiple Whether the location header must be directly used for a multiple redirection status code (300). * } */