Completed
Push — collection-position ( d51bab )
by Arnaud
02:27
created
src/Collection/Collection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      */
67 67
     protected function searchItem(string $id): ?array
68 68
     {
69
-        return array_filter($this->items, function ($item) use ($id) {
69
+        return array_filter($this->items, function($item) use ($id) {
70 70
             return $item->getId() == $id;
71 71
         });
72 72
     }
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
     public function usort(\Closure $callback = null): CollectionInterface
239 239
     {
240 240
         //$callback ? uasort($this->items, $callback) : uasort($this->items, function ($a, $b) {
241
-        $callback ? usort($this->items, $callback) : usort($this->items, function ($a, $b) {
241
+        $callback ? usort($this->items, $callback) : usort($this->items, function($a, $b) {
242 242
             if ($a == $b) {
243 243
                 return 0;
244 244
             }
Please login to merge, or discard this patch.