Skip to content
This repository was archived by the owner on Jan 16, 2018. It is now read-only.

Commit 629fd8c

Browse files
committed
Merge pull request #23 from php-http/analysis-zGLp28
Applied fixes from StyleCI
2 parents 613bd16 + 4d55c32 commit 629fd8c

File tree

4 files changed

+19
-18
lines changed

4 files changed

+19
-18
lines changed

src/BatchClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Psr\Http\Message\RequestInterface;
99

1010
/**
11-
* BatchClient allow to sends multiple request and retrieve a Batch Result
11+
* BatchClient allow to sends multiple request and retrieve a Batch Result.
1212
*
1313
* This implementation simply loops over the requests and uses sendRequest with each of them.
1414
*

src/BatchResult.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Psr\Http\Message\ResponseInterface;
88

99
/**
10-
* Responses and exceptions returned from parallel request execution
10+
* Responses and exceptions returned from parallel request execution.
1111
*
1212
* @author Márk Sági-Kazár <[email protected]>
1313
*/
@@ -32,7 +32,7 @@ public function __construct()
3232
/**
3333
* Checks if there are any successful responses at all.
3434
*
35-
* @return boolean
35+
* @return bool
3636
*/
3737
public function hasResponses()
3838
{
@@ -60,7 +60,7 @@ public function getResponses()
6060
*
6161
* @param RequestInterface $request
6262
*
63-
* @return boolean
63+
* @return bool
6464
*/
6565
public function isSuccessful(RequestInterface $request)
6666
{
@@ -104,7 +104,7 @@ public function addResponse(RequestInterface $request, ResponseInterface $respon
104104
/**
105105
* Checks if there are any unsuccessful requests at all.
106106
*
107-
* @return boolean
107+
* @return bool
108108
*/
109109
public function hasExceptions()
110110
{
@@ -132,7 +132,7 @@ public function getExceptions()
132132
*
133133
* @param RequestInterface $request
134134
*
135-
* @return boolean
135+
* @return bool
136136
*/
137137
public function isFailed(RequestInterface $request)
138138
{
@@ -160,8 +160,8 @@ public function getExceptionFor(RequestInterface $request)
160160
/**
161161
* Adds an exception in an immutable way.
162162
*
163-
* @param RequestInterface $request
164-
* @param Exception $exception
163+
* @param RequestInterface $request
164+
* @param Exception $exception
165165
*
166166
* @return BatchResult the new BatchResult with this request-exception pair added to it.
167167
*/

src/Exception/BatchException.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ public function __construct(BatchResult $result)
2727
{
2828
$this->result = $result;
2929
}
30+
3031
/**
31-
* Returns the BatchResult that contains all responses and exceptions
32+
* Returns the BatchResult that contains all responses and exceptions.
3233
*
3334
* @return BatchResult
3435
*/

src/HttpMethodsClient.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
/**
1414
* Convenience HTTP client that integrates the MessageFactory in order to send
15-
* requests in the following form:
15+
* requests in the following form:.
1616
*
1717
* $client
1818
* ->get('/foo')
@@ -47,7 +47,7 @@ public function __construct(HttpClient $httpClient, MessageFactory $messageFacto
4747
}
4848

4949
/**
50-
* Sends a GET request
50+
* Sends a GET request.
5151
*
5252
* @param string|UriInterface $uri
5353
* @param array $headers
@@ -62,7 +62,7 @@ public function get($uri, array $headers = [])
6262
}
6363

6464
/**
65-
* Sends an HEAD request
65+
* Sends an HEAD request.
6666
*
6767
* @param string|UriInterface $uri
6868
* @param array $headers
@@ -77,7 +77,7 @@ public function head($uri, array $headers = [])
7777
}
7878

7979
/**
80-
* Sends a TRACE request
80+
* Sends a TRACE request.
8181
*
8282
* @param string|UriInterface $uri
8383
* @param array $headers
@@ -92,7 +92,7 @@ public function trace($uri, array $headers = [])
9292
}
9393

9494
/**
95-
* Sends a POST request
95+
* Sends a POST request.
9696
*
9797
* @param string|UriInterface $uri
9898
* @param array $headers
@@ -108,7 +108,7 @@ public function post($uri, array $headers = [], $body = null)
108108
}
109109

110110
/**
111-
* Sends a PUT request
111+
* Sends a PUT request.
112112
*
113113
* @param string|UriInterface $uri
114114
* @param array $headers
@@ -124,7 +124,7 @@ public function put($uri, array $headers = [], $body = null)
124124
}
125125

126126
/**
127-
* Sends a PATCH request
127+
* Sends a PATCH request.
128128
*
129129
* @param string|UriInterface $uri
130130
* @param array $headers
@@ -140,7 +140,7 @@ public function patch($uri, array $headers = [], $body = null)
140140
}
141141

142142
/**
143-
* Sends a DELETE request
143+
* Sends a DELETE request.
144144
*
145145
* @param string|UriInterface $uri
146146
* @param array $headers
@@ -156,7 +156,7 @@ public function delete($uri, array $headers = [], $body = null)
156156
}
157157

158158
/**
159-
* Sends an OPTIONS request
159+
* Sends an OPTIONS request.
160160
*
161161
* @param string|UriInterface $uri
162162
* @param array $headers

0 commit comments

Comments
 (0)