Completed
Push — master ( 24b486...2b6901 )
by Jasper
14s queued 10s
created
src/DocumentFactory.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -34,12 +34,12 @@  discard block
 block discarded – undo
34 34
     {
35 35
         return Collection::wrap($data)
36 36
             ->flatMap(
37
-                function (ItemInterface $item) {
37
+                function(ItemInterface $item) {
38 38
                     return $this->getIncludedFromItem($item);
39 39
                 }
40 40
             )
41 41
             ->unique(
42
-                static function (ItemInterface $item) {
42
+                static function(ItemInterface $item) {
43 43
                     return sprintf('%s:%s', $item->getType(), $item->getId());
44 44
                 }
45 45
             )
@@ -55,24 +55,24 @@  discard block
 block discarded – undo
55 55
     {
56 56
         return Collection::make($item->getRelations())
57 57
             ->reject(
58
-                static function ($relationship) {
58
+                static function($relationship) {
59 59
                     /* @var \Swis\JsonApi\Client\Interfaces\OneRelationInterface|\Swis\JsonApi\Client\Interfaces\ManyRelationInterface $relationship */
60 60
                     return $relationship->shouldOmitIncluded() || !$relationship->hasIncluded();
61 61
                 }
62 62
             )
63 63
             ->flatMap(
64
-                static function ($relationship) {
64
+                static function($relationship) {
65 65
                     /* @var \Swis\JsonApi\Client\Interfaces\OneRelationInterface|\Swis\JsonApi\Client\Interfaces\ManyRelationInterface $relationship */
66 66
                     return Collection::wrap($relationship->getIncluded());
67 67
                 }
68 68
             )
69 69
             ->flatMap(
70
-                function (ItemInterface $item) {
70
+                function(ItemInterface $item) {
71 71
                     return Collection::wrap($item)->merge($this->getIncludedFromItem($item));
72 72
                 }
73 73
             )
74 74
             ->filter(
75
-                function (ItemInterface $item) {
75
+                function(ItemInterface $item) {
76 76
                     return $this->itemCanBeIncluded($item);
77 77
                 }
78 78
             );
Please login to merge, or discard this patch.