Passed
Push — master ( 7a5b9c...a3c1ba )
by Michael
06:08
created
src/HttpClient/Decorator/SymfonyEventDispatcherDecorator.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,8 +81,7 @@
 block discarded – undo
81 81
 
82 82
         try {
83 83
             $response = $this->client->request($request);
84
-        }
85
-        catch (\Throwable $exception) {
84
+        } catch (\Throwable $exception) {
86 85
             $exceptionEvent = new ExceptionEvent($request, $exception);
87 86
             $this->dispatcher->dispatch($this->exceptionEvent, $exceptionEvent);
88 87
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4 4
 namespace Mikemirten\Component\JsonApi\HttpClient\Decorator;
5 5
 
@@ -86,13 +86,13 @@  discard block
 block discarded – undo
86 86
             $exceptionEvent = new ExceptionEvent($request, $exception);
87 87
             $this->dispatcher->dispatch($this->exceptionEvent, $exceptionEvent);
88 88
 
89
-            if (! $exceptionEvent->hasResponse()) {
89
+            if (!$exceptionEvent->hasResponse()) {
90 90
                 throw $this->handleException($exception, $request);
91 91
             }
92 92
 
93 93
             $response = $exceptionEvent->getResponse();
94 94
 
95
-            if (! $exceptionEvent->isResponseEventEnabled()) {
95
+            if (!$exceptionEvent->isResponseEventEnabled()) {
96 96
                 return $response;
97 97
             }
98 98
         }
Please login to merge, or discard this patch.
src/HttpClient/Adapter/GuzzleAdapter.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,7 @@
 block discarded – undo
41 41
     {
42 42
         try {
43 43
             return $this->client->send($request);
44
-        }
45
-        catch (GuzzleRequestException $exception) {
44
+        } catch (GuzzleRequestException $exception) {
46 45
             throw $this->createException($exception);
47 46
         }
48 47
     }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4 4
 namespace Mikemirten\Component\JsonApi\HttpClient\Adapter;
5 5
 
Please login to merge, or discard this patch.
src/HttpClient/HttpClient.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,8 +88,7 @@
 block discarded – undo
88 88
 
89 89
         try {
90 90
             $response = $this->client->request($request);
91
-        }
92
-        catch (ResponseException $exception) {
91
+        } catch (ResponseException $exception) {
93 92
             $responseRaw = $exception->getResponse();
94 93
             $response    = $this->handleResponse($responseRaw);
95 94
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4 4
 namespace Mikemirten\Component\JsonApi\HttpClient;
5 5
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
         foreach ($options as $option => $value)
63 63
         {
64
-            if (! in_array($option, static::$possibleOptions, true)) {
64
+            if (!in_array($option, static::$possibleOptions, true)) {
65 65
                 throw new InvalidOptionException($option, static::$possibleOptions);
66 66
             }
67 67
 
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
         $decoded = json_decode($content);
157 157
 
158 158
         if (json_last_error() !== JSON_ERROR_NONE) {
159
-            throw new \RuntimeException('Decoding error: "' . json_last_error_msg() . '""');
159
+            throw new \RuntimeException('Decoding error: "'.json_last_error_msg().'""');
160 160
         }
161 161
 
162 162
         return $this->hydrator->hydrate($decoded);
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
         $encoded = json_encode($document->toArray());
174 174
 
175 175
         if (json_last_error() !== JSON_ERROR_NONE) {
176
-            throw new \RuntimeException('Encoding error: "' . json_last_error_msg() . '""');
176
+            throw new \RuntimeException('Encoding error: "'.json_last_error_msg().'""');
177 177
         }
178 178
 
179 179
         $stream = fopen('php://memory', 'r+');
Please login to merge, or discard this patch.
src/Document/ResourceIdentifierObject.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4 4
 namespace Mikemirten\Component\JsonApi\Document;
5 5
 
Please login to merge, or discard this patch.
src/Document/IdentifierCollectionRelationship.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4 4
 namespace Mikemirten\Component\JsonApi\Document;
5 5
 
Please login to merge, or discard this patch.
src/Document/Behaviour/LinksAwareInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4 4
 namespace Mikemirten\Component\JsonApi\Document\Behaviour;
5 5
 
Please login to merge, or discard this patch.
src/Document/Behaviour/AttributesContainer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4 4
 namespace Mikemirten\Component\JsonApi\Document\Behaviour;
5 5
 
Please login to merge, or discard this patch.
src/Document/Behaviour/ResourceBehaviour.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4 4
 namespace Mikemirten\Component\JsonApi\Document\Behaviour;
5 5
 
Please login to merge, or discard this patch.
src/Document/Behaviour/IncludedResourcesContainer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4 4
 namespace Mikemirten\Component\JsonApi\Document\Behaviour;
5 5
 
Please login to merge, or discard this patch.