Completed
Pull Request — master (#16)
by Antonio Carlos
15:05 queued 05:01
created
src/package/Coollection.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
     public function call($name, $arguments = [])
123 123
     {
124 124
         return $this->runViaLaravelCollection(
125
-            function ($collection) use (
125
+            function($collection) use (
126 126
                 $name,
127 127
                 $arguments
128 128
             ) {
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
             return $value;
150 150
         }
151 151
 
152
-        $result = array_map(function ($value) {
152
+        $result = array_map(function($value) {
153 153
             if ($this->isArrayable($value)) {
154 154
                 return new static($value);
155 155
             }
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
      */
168 168
     public function toArray()
169 169
     {
170
-        return array_map(function ($value) {
170
+        return array_map(function($value) {
171 171
             return $value instanceof Arrayable ? $value->toArray() : $value;
172 172
         }, $this->items);
173 173
     }
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
             return null;
197 197
         }
198 198
 
199
-        return $this->runViaLaravelCollection(function ($collection) use (
199
+        return $this->runViaLaravelCollection(function($collection) use (
200 200
             $key
201 201
         ) {
202 202
             return new HigherOrderCollectionProxy($collection, $key);
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
             return $value;
218 218
         }
219 219
 
220
-        $result = array_map(function ($value) {
220
+        $result = array_map(function($value) {
221 221
             if ($this->isArrayable($value)) {
222 222
                 return $this->__toArray($value);
223 223
             }
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
             Str::lower($key),
301 301
         ];
302 302
 
303
-        $data = $this->filter(function ($value, $key) use ($cases) {
303
+        $data = $this->filter(function($value, $key) use ($cases) {
304 304
             return array_search($key, $cases) !== false ||
305 305
                 array_search(Str::lower($key), $cases) !== false;
306 306
         })
@@ -529,7 +529,7 @@  discard block
 block discarded – undo
529 529
      */
530 530
     public function coollectizeCallback(callable $originalCallback = null)
531 531
     {
532
-        return function ($value = null, $key = null) use ($originalCallback) {
532
+        return function($value = null, $key = null) use ($originalCallback) {
533 533
             return $originalCallback($this->__wrap($value), $key);
534 534
         };
535 535
     }
@@ -540,7 +540,7 @@  discard block
 block discarded – undo
540 540
      */
541 541
     public function coollectizeCallbackForReduce(callable $originalCallback)
542 542
     {
543
-        return function ($carry, $item) use ($originalCallback) {
543
+        return function($carry, $item) use ($originalCallback) {
544 544
             return $originalCallback($carry, $this->__wrap($item));
545 545
         };
546 546
     }
Please login to merge, or discard this patch.