Completed
Push — master ( a654a8...533fff )
by Jasper
11:19
created
src/Document.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -227,6 +227,6 @@
 block discarded – undo
227 227
             $document['jsonapi'] = $this->getJsonapi();
228 228
         }
229 229
 
230
-        return (object) $document;
230
+        return (object)$document;
231 231
     }
232 232
 }
Please login to merge, or discard this patch.
src/Links.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
     public function toArray()
113 113
     {
114 114
         return array_map(
115
-            static function (?Link $link) {
115
+            static function(?Link $link) {
116 116
                 return $link ? $link->toArray() : null;
117 117
             },
118 118
             $this->links
@@ -138,6 +138,6 @@  discard block
 block discarded – undo
138 138
      */
139 139
     public function jsonSerialize()
140 140
     {
141
-        return (object) $this->toArray();
141
+        return (object)$this->toArray();
142 142
     }
143 143
 }
Please login to merge, or discard this patch.
src/Jsonapi.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,6 +133,6 @@
 block discarded – undo
133 133
      */
134 134
     public function jsonSerialize()
135 135
     {
136
-        return (object) $this->toArray();
136
+        return (object)$this->toArray();
137 137
     }
138 138
 }
Please login to merge, or discard this patch.
src/Providers/ServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
     {
52 52
         $this->app->extend(
53 53
             ClientInterface::class,
54
-            static function (ClientInterface $client) {
54
+            static function(ClientInterface $client) {
55 55
                 if ($baseUri = config('jsonapi.base_uri')) {
56 56
                     $client->setBaseUri($baseUri);
57 57
                 }
Please login to merge, or discard this patch.
src/Parsers/DocumentParser.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -202,13 +202,13 @@  discard block
 block discarded – undo
202 202
     private function linkRelationships(Collection $items): void
203 203
     {
204 204
         $keyedItems = $items->keyBy(
205
-            function (ItemInterface $item) {
205
+            function(ItemInterface $item) {
206 206
                 return $this->getItemKey($item);
207 207
             }
208 208
         );
209 209
 
210 210
         $items->each(
211
-            function (ItemInterface $item) use ($keyedItems) {
211
+            function(ItemInterface $item) use ($keyedItems) {
212 212
                 foreach ($item->getRelations() as $name => $relation) {
213 213
                     if ($relation instanceof OneRelationInterface) {
214 214
                         /** @var \Swis\JsonApi\Client\Interfaces\ItemInterface|null $relatedItem */
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
      */
268 268
     private function getDuplicateItems(Collection $items): Collection
269 269
     {
270
-        $valueRetriever = function (ItemInterface $item) {
270
+        $valueRetriever = function(ItemInterface $item) {
271 271
             return $this->getItemKey($item);
272 272
         };
273 273
 
Please login to merge, or discard this patch.