@@ -169,7 +169,7 @@ |
||
| 169 | 169 | */ |
| 170 | 170 | public function usort(\Closure $callback = null): CollectionInterface |
| 171 | 171 | { |
| 172 | - $callback ? uasort($this->items, $callback) : uasort($this->items, function ($a, $b) { |
|
| 172 | + $callback ? uasort($this->items, $callback) : uasort($this->items, function($a, $b) { |
|
| 173 | 173 | if ($a == $b) { |
| 174 | 174 | return 0; |
| 175 | 175 | } |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | */ |
| 24 | 24 | public function sortByDate(): self |
| 25 | 25 | { |
| 26 | - return $this->usort(function ($a, $b) { |
|
| 26 | + return $this->usort(function($a, $b) { |
|
| 27 | 27 | if (!isset($a['date'])) { |
| 28 | 28 | return -1; |
| 29 | 29 | } |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | */ |
| 23 | 23 | public function sortByDate(): self |
| 24 | 24 | { |
| 25 | - return $this->usort(function ($a, $b) { |
|
| 25 | + return $this->usort(function($a, $b) { |
|
| 26 | 26 | if (!isset($a['date'])) { |
| 27 | 27 | return -1; |
| 28 | 28 | } |