Passed
Push — master ( 3e64fc...876719 )
by Adam
04:04
created
src/IPub/JsonAPIClient/Clients/GuzzleClient.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
 	 * @param PsrRequest $request
273 273
 	 * @param PsrResponse|NULL $response
274 274
 	 *
275
-	 * @return Objects\IDocument|NULL
275
+	 * @return null|Objects\Document
276 276
 	 *
277 277
 	 * @throws Utils\JsonException
278 278
 	 */
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
 	 * @param PsrRequest $request
290 290
 	 * @param PsrResponse|NULL $response
291 291
 	 *
292
-	 * @return Objects\IMutableError|NULL
292
+	 * @return null|Objects\Error
293 293
 	 *
294 294
 	 * @throws Utils\JsonException
295 295
 	 */
Please login to merge, or discard this patch.
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -19,20 +19,16 @@
 block discarded – undo
19 19
 use Nette;
20 20
 use Nette\Http as NHttp;
21 21
 use Nette\Utils;
22
-
23 22
 use GuzzleHttp;
24 23
 use GuzzleHttp\Client;
25 24
 use GuzzleHttp\Exception\BadResponseException;
26 25
 use GuzzleHttp\Psr7\Request;
27
-
28 26
 use Neomerx\JsonApi\Contracts\Encoder\Parameters\EncodingParametersInterface;
29 27
 use Neomerx\JsonApi\Encoder\EncoderOptions;
30 28
 use Neomerx\JsonApi\Exceptions\JsonApiException;
31 29
 use Neomerx\JsonApi\Factories\Factory;
32
-
33 30
 use Psr\Http\Message\RequestInterface as PsrRequest;
34 31
 use Psr\Http\Message\ResponseInterface as PsrResponse;
35
-
36 32
 use IPub\JsonAPIClient\Encoders;
37 33
 use IPub\JsonAPIClient\Exceptions;
38 34
 use IPub\JsonAPIClient\Http;
Please login to merge, or discard this patch.
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
  * @date           05.05.18
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\JsonAPIClient\Clients;
18 18
 
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
 	 */
167 167
 	public function addAuthorization(string $token) : void
168 168
 	{
169
-		$this->addHeader('Authorization', 'Bearer ' . $token);
169
+		$this->addHeader('Authorization', 'Bearer '.$token);
170 170
 	}
171 171
 
172 172
 	/**
@@ -311,8 +311,7 @@  discard block
 block discarded – undo
311 311
 	private function httpContainsBody(PsrRequest $request, ?PsrResponse $response = NULL) : bool
312 312
 	{
313 313
 		return $response ?
314
-			$this->doesResponseHaveBody($request, $response) :
315
-			$this->doesRequestHaveBody($request);
314
+			$this->doesResponseHaveBody($request, $response) : $this->doesRequestHaveBody($request);
316 315
 	}
317 316
 
318 317
 	/**
Please login to merge, or discard this patch.
src/IPub/JsonAPIClient/Clients/TSendsRequests.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,6 @@
 block discarded – undo
21 21
 use Neomerx\JsonApi\Contracts\Schema\ContainerInterface;
22 22
 use Neomerx\JsonApi\Encoder\Parameters\EncodingParameters;
23 23
 use Neomerx\JsonApi\Http\Headers\MediaType;
24
-
25 24
 use IPub\JsonAPIClient\Encoders;
26 25
 
27 26
 /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
  * @date           05.05.18
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\JsonAPIClient\Clients;
18 18
 
Please login to merge, or discard this patch.
src/IPub/JsonAPIClient/Objects/Error.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -134,8 +134,8 @@
 block discarded – undo
134 134
 	/**
135 135
 	 * @param int|string|NULL $id
136 136
 	 * @param array|NULL $links
137
-	 * @param int|string|NULL $status
138
-	 * @param int|string|NULL $code
137
+	 * @param string|null $status
138
+	 * @param string|null $code
139 139
 	 * @param string|NULL $title
140 140
 	 * @param string|NULL $detail
141 141
 	 * @param array|NULL $source
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,6 @@
 block discarded – undo
20 20
 use Neomerx\JsonApi\Contracts\Document\LinkInterface;
21 21
 use Neomerx\JsonApi\Document\Link;
22 22
 use Neomerx\JsonApi\Exceptions\ErrorCollection;
23
-
24 23
 use IPub\JsonAPIClient\Exceptions;
25 24
 
26 25
 /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
  * @date           05.05.18
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\JsonAPIClient\Objects;
18 18
 
Please login to merge, or discard this patch.
src/IPub/JsonAPIClient/Objects/TIdentifiable.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,6 @@
 block discarded – undo
17 17
 namespace IPub\JsonAPIClient\Objects;
18 18
 
19 19
 use Neomerx\JsonApi\Contracts\Document\DocumentInterface;
20
-
21 20
 use IPub\JsonAPIClient\Exceptions;
22 21
 
23 22
 /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
  * @date           05.05.18
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\JsonAPIClient\Objects;
18 18
 
Please login to merge, or discard this patch.
src/IPub/JsonAPIClient/Objects/TMetaMember.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -18,9 +18,7 @@
 block discarded – undo
18 18
 
19 19
 use CloudCreativity\Utils\Object\StandardObject;
20 20
 use CloudCreativity\Utils\Object\StandardObjectInterface;
21
-
22 21
 use Neomerx\JsonApi\Contracts\Document\DocumentInterface;
23
-
24 22
 use IPub\JsonAPIClient\Exceptions;
25 23
 
26 24
 /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
  * @date           05.05.18
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\JsonAPIClient\Objects;
18 18
 
Please login to merge, or discard this patch.
src/IPub/JsonAPIClient/Schemas/SchemaProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
  * @date           05.05.18
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\JsonAPIClient\Schemas;
18 18
 
Please login to merge, or discard this patch.
src/IPub/JsonAPIClient/Clients/IClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
  * @date           05.05.18
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\JsonAPIClient\Clients;
18 18
 
Please login to merge, or discard this patch.
src/IPub/JsonAPIClient/Http/IResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
  * @date           05.05.18
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\JsonAPIClient\Http;
18 18
 
Please login to merge, or discard this patch.
src/IPub/JsonAPIClient/Exceptions/RuntimeException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
  * @date           06.05.18
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\JsonAPIClient\Exceptions;
18 18
 
Please login to merge, or discard this patch.