Completed
Push — master ( 471601...d5a7ba )
by
unknown
13:03
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/Model/Cart/LineItem.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
 use Commercetools\Core\Model\Common\LocalizedString;
11 11
 use Commercetools\Core\Model\Common\Money;
12 12
 use Commercetools\Core\Model\Common\Price;
13
-use Commercetools\Core\Model\Order\ItemState;
14 13
 use Commercetools\Core\Model\Order\ItemStateCollection;
15 14
 use Commercetools\Core\Model\Product\ProductVariant;
16 15
 use Commercetools\Core\Model\TaxCategory\TaxRate;
Please login to merge, or discard this patch.
src/Model/Common/Attribute.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -151,6 +151,9 @@
 block discarded – undo
151 151
         return static::T_UNKNOWN;
152 152
     }
153 153
 
154
+    /**
155
+     * @param string[] $keys
156
+     */
154 157
     protected function hasKeys($value, $keys)
155 158
     {
156 159
         if (!is_array($value)) {
Please login to merge, or discard this patch.
src/Response/AbstractApiResponse.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
 
105 105
     /**
106 106
      * @param string $header
107
-     * @return array
107
+     * @return string[]
108 108
      */
109 109
     public function getHeader($header)
110 110
     {
Please login to merge, or discard this patch.