Skip to content

Applied fixes from StyleCI #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 26, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/BatchClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
8 changes: 4 additions & 4 deletions src/BatchResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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)
{
Expand Down Expand Up @@ -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)
{
Expand All @@ -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)
{
Expand Down
6 changes: 3 additions & 3 deletions src/HttpMethodsClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Plugin/DecoderPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/Plugin/RedirectPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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).
* }
*/
Expand Down