Completed
Push — master ( 1268a4...4b89b9 )
by Jens
09:22
created
src/Client/Adapter/Guzzle5Adapter.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
 
60 60
     /**
61 61
      * @param RequestInterface $request
62
-     * @return ResponseInterface
62
+     * @return null|Response
63 63
      * @throws \Commercetools\Core\Error\ApiException
64 64
      * @throws \Commercetools\Core\Error\BadGatewayException
65 65
      * @throws \Commercetools\Core\Error\ConcurrentModificationException
Please login to merge, or discard this patch.
src/Client/Adapter/Guzzle5Promise.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      * new protocol version.
77 77
      *
78 78
      * @param string $version HTTP protocol version
79
-     * @return self
79
+     * @return Response
80 80
      */
81 81
     public function withProtocolVersion($version)
82 82
     {
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
      *
182 182
      * @param string $name Case-insensitive header field name.
183 183
      * @param string|string[] $value Header value(s).
184
-     * @return self
184
+     * @return Response
185 185
      * @throws \InvalidArgumentException for invalid header names or values.
186 186
      */
187 187
     public function withHeader($name, $value)
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
      *
203 203
      * @param string $name Case-insensitive header field name to add.
204 204
      * @param string|string[] $value Header value(s).
205
-     * @return self
205
+     * @return Response
206 206
      * @throws \InvalidArgumentException for invalid header names or values.
207 207
      */
208 208
     public function withAddedHeader($name, $value)
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
      * the named header.
221 221
      *
222 222
      * @param string $name Case-insensitive header field name to remove.
223
-     * @return self
223
+     * @return Response
224 224
      */
225 225
     public function withoutHeader($name)
226 226
     {
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
      * new body stream.
248 248
      *
249 249
      * @param StreamInterface $body Body.
250
-     * @return self
250
+     * @return Response
251 251
      * @throws \InvalidArgumentException When the body is not valid.
252 252
      */
253 253
     public function withBody(StreamInterface $body)
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
      * @param string $reasonPhrase The reason phrase to use with the
286 286
      *     provided status code; if none is provided, implementations MAY
287 287
      *     use the defaults as suggested in the HTTP specification.
288
-     * @return self
288
+     * @return Response
289 289
      * @throws \InvalidArgumentException For invalid status code arguments.
290 290
      */
291 291
     public function withStatus($code, $reasonPhrase = '')
Please login to merge, or discard this patch.
src/Request/Customers/CustomerPasswordResetRequest.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,6 @@
 block discarded – undo
38 38
     protected $newPassword;
39 39
 
40 40
     /**
41
-     * @param string $id
42
-     * @param int $version
43 41
      * @param string $tokenValue
44 42
      * @param string $newPassword
45 43
      * @param Context $context
Please login to merge, or discard this patch.
src/Response/AbstractApiResponse.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,6 +103,9 @@  discard block
 block discarded – undo
103 103
         return (!in_array($statusCode, [200, 201]));
104 104
     }
105 105
 
106
+    /**
107
+     * @param string $fieldName
108
+     */
106 109
     protected function getResponseField($fieldName, $default = '')
107 110
     {
108 111
         $result = $this->toArray();
@@ -110,7 +113,7 @@  discard block
 block discarded – undo
110 113
     }
111 114
 
112 115
     /**
113
-     * @return array
116
+     * @return ErrorContainer
114 117
      */
115 118
     public function getErrors()
116 119
     {
Please login to merge, or discard this patch.