Passed
Push — master ( 7a5b9c...a3c1ba )
by Michael
06:08
created
src/Document/ErrorObject.php 1 patch
Spacing   +2 added lines, -2 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\Document;
5 5
 
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
      */
251 251
     public function __toString(): string
252 252
     {
253
-        return 'Error-object with ' . (
253
+        return 'Error-object with '.(
254 254
             $this->id === null
255 255
                 ? 'no ID'
256 256
                 : sprintf('ID: "%s"', $this->id)
Please login to merge, or discard this patch.
src/Document/LinkObject.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/IdentifierCollectionDocument.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/SingleIdentifierDocument.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/JsonApiObject.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/NoDataDocument.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/SingleIdentifierRelationship.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/Hydrator/DocumentHydrator.php 1 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\Hydrator;
5 5
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public function hydrate($source): AbstractDocument
51 51
     {
52
-        if (! isset($source->data)) {
52
+        if (!isset($source->data)) {
53 53
             return $this->processNoDataDocument($source);
54 54
         }
55 55
 
@@ -139,11 +139,11 @@  discard block
 block discarded – undo
139 139
      */
140 140
     public function hydrateResource($source): ResourceObject
141 141
     {
142
-        if (! isset($source->id)) {
142
+        if (!isset($source->id)) {
143 143
             throw new InvalidDocumentException('Resource contains no ID');
144 144
         }
145 145
 
146
-        if (! isset($source->type)) {
146
+        if (!isset($source->type)) {
147 147
             throw new InvalidDocumentException('Resource contains no type');
148 148
         }
149 149
 
Please login to merge, or discard this patch.
src/Hydrator/Extension/LinksExtension.php 1 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\Hydrator\Extension;
5 5
 
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      */
23 23
     public function hydrate($object, $source, DocumentHydrator $hydrator)
24 24
     {
25
-        if (! $object instanceof LinksAwareInterface) {
25
+        if (!$object instanceof LinksAwareInterface) {
26 26
             throw new InvalidDocumentException(sprintf(
27 27
                 'Given instance of "%s" does not implements "%s"',
28 28
                 get_class($object),
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
             return new LinkObject($source);
52 52
         }
53 53
 
54
-        if (! isset($source->href)) {
54
+        if (!isset($source->href)) {
55 55
             throw new InvalidDocumentException('Link must be a string or an object contains "href" attribute.');
56 56
         }
57 57
 
Please login to merge, or discard this patch.