Test Setup Failed
Push — a-simpler-manager ( c7b435...29c609 )
by Ben
09:30
created
src/PageBuilder/Relations/AvailableChildren.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,14 +34,14 @@  discard block
 block discarded – undo
34 34
 
35 35
     public function onlyModules(): Collection
36 36
     {
37
-        return $this->collection()->reject(function ($item) {
37
+        return $this->collection()->reject(function($item) {
38 38
             return ($item instanceof ActsAsParent);
39 39
         });
40 40
     }
41 41
 
42 42
     public function onlyPages(): Collection
43 43
     {
44
-        return $this->collection()->filter(function ($item) {
44
+        return $this->collection()->filter(function($item) {
45 45
             return ($item instanceof ActsAsParent);
46 46
         });
47 47
     }
@@ -96,12 +96,12 @@  discard block
 block discarded – undo
96 96
 //        }
97 97
 
98 98
         // Remove duplicate models
99
-        $collection = $collection->unique(function ($model) {
99
+        $collection = $collection->unique(function($model) {
100 100
             return (new ModelReference(get_class($model), $model->id))->get();
101 101
         });
102 102
 
103 103
         // Filter out our parent
104
-        return $this->collection = $collection->reject(function ($item) {
104
+        return $this->collection = $collection->reject(function($item) {
105 105
             return ($item instanceof $this->parent && $item->id == $this->parent->id);
106 106
         })->values();
107 107
     }
Please login to merge, or discard this patch.