diff --git a/src/BatchClient.php b/src/BatchClient.php index e29bd60..72dd7d2 100644 --- a/src/BatchClient.php +++ b/src/BatchClient.php @@ -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. * diff --git a/src/BatchResult.php b/src/BatchResult.php index fbdeadf..5af4b78 100644 --- a/src/BatchResult.php +++ b/src/BatchResult.php @@ -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 */ @@ -32,7 +32,7 @@ public function __construct() /** * Checks if there are any successful responses at all. * - * @return boolean + * @return bool */ public function hasResponses() { @@ -60,7 +60,7 @@ public function getResponses() * * @param RequestInterface $request * - * @return boolean + * @return bool */ public function isSuccessful(RequestInterface $request) { @@ -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() { @@ -132,7 +132,7 @@ public function getExceptions() * * @param RequestInterface $request * - * @return boolean + * @return bool */ public function isFailed(RequestInterface $request) { @@ -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. */ diff --git a/src/Exception/BatchException.php b/src/Exception/BatchException.php index 8469c4a..25750ef 100644 --- a/src/Exception/BatchException.php +++ b/src/Exception/BatchException.php @@ -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 */ diff --git a/src/HttpMethodsClient.php b/src/HttpMethodsClient.php index 7fa6c7d..b8191ec 100644 --- a/src/HttpMethodsClient.php +++ b/src/HttpMethodsClient.php @@ -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') @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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