Skip to content
This repository was archived by the owner on Jan 16, 2018. It is now read-only.
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
2 changes: 1 addition & 1 deletion src/BatchClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Psr\Http\Message\RequestInterface;

/**
* BatchClient allow to sends multiple request and retrieve a Batch Result
* BatchClient allow to sends multiple request and retrieve a Batch Result.
*
* This implementation simply loops over the requests and uses sendRequest with each of them.
*
Expand Down
14 changes: 7 additions & 7 deletions src/BatchResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Psr\Http\Message\ResponseInterface;

/**
* Responses and exceptions returned from parallel request execution
* Responses and exceptions returned from parallel request execution.
*
* @author Márk Sági-Kazár <[email protected]>
*/
Expand All @@ -32,7 +32,7 @@ public function __construct()
/**
* Checks if there are any successful responses at all.
*
* @return boolean
* @return bool
*/
public function hasResponses()
{
Expand Down Expand Up @@ -60,7 +60,7 @@ public function getResponses()
*
* @param RequestInterface $request
*
* @return boolean
* @return bool
*/
public function isSuccessful(RequestInterface $request)
{
Expand Down Expand Up @@ -104,7 +104,7 @@ public function addResponse(RequestInterface $request, ResponseInterface $respon
/**
* Checks if there are any unsuccessful requests at all.
*
* @return boolean
* @return bool
*/
public function hasExceptions()
{
Expand Down Expand Up @@ -132,7 +132,7 @@ public function getExceptions()
*
* @param RequestInterface $request
*
* @return boolean
* @return bool
*/
public function isFailed(RequestInterface $request)
{
Expand Down Expand Up @@ -160,8 +160,8 @@ public function getExceptionFor(RequestInterface $request)
/**
* Adds an exception in an immutable way.
*
* @param RequestInterface $request
* @param Exception $exception
* @param RequestInterface $request
* @param Exception $exception
*
* @return BatchResult the new BatchResult with this request-exception pair added to it.
*/
Expand Down
3 changes: 2 additions & 1 deletion src/Exception/BatchException.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ public function __construct(BatchResult $result)
{
$this->result = $result;
}

/**
* Returns the BatchResult that contains all responses and exceptions
* Returns the BatchResult that contains all responses and exceptions.
*
* @return BatchResult
*/
Expand Down
18 changes: 9 additions & 9 deletions src/HttpMethodsClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

/**
* Convenience HTTP client that integrates the MessageFactory in order to send
* requests in the following form:
* requests in the following form:.
*
* $client
* ->get('/foo')
Expand Down Expand Up @@ -47,7 +47,7 @@ public function __construct(HttpClient $httpClient, MessageFactory $messageFacto
}

/**
* Sends a GET request
* Sends a GET request.
*
* @param string|UriInterface $uri
* @param array $headers
Expand All @@ -62,7 +62,7 @@ public function get($uri, array $headers = [])
}

/**
* Sends an HEAD request
* Sends an HEAD request.
*
* @param string|UriInterface $uri
* @param array $headers
Expand All @@ -77,7 +77,7 @@ public function head($uri, array $headers = [])
}

/**
* Sends a TRACE request
* Sends a TRACE request.
*
* @param string|UriInterface $uri
* @param array $headers
Expand All @@ -92,7 +92,7 @@ public function trace($uri, array $headers = [])
}

/**
* Sends a POST request
* Sends a POST request.
*
* @param string|UriInterface $uri
* @param array $headers
Expand All @@ -108,7 +108,7 @@ public function post($uri, array $headers = [], $body = null)
}

/**
* Sends a PUT request
* Sends a PUT request.
*
* @param string|UriInterface $uri
* @param array $headers
Expand All @@ -124,7 +124,7 @@ public function put($uri, array $headers = [], $body = null)
}

/**
* Sends a PATCH request
* Sends a PATCH request.
*
* @param string|UriInterface $uri
* @param array $headers
Expand All @@ -140,7 +140,7 @@ public function patch($uri, array $headers = [], $body = null)
}

/**
* Sends a DELETE request
* Sends a DELETE request.
*
* @param string|UriInterface $uri
* @param array $headers
Expand All @@ -156,7 +156,7 @@ public function delete($uri, array $headers = [], $body = null)
}

/**
* Sends an OPTIONS request
* Sends an OPTIONS request.
*
* @param string|UriInterface $uri
* @param array $headers
Expand Down