@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | public function last() |
35 | 35 | { |
36 | 36 | $count = count($this->items); |
37 | - return $this->items[$count-1]; |
|
37 | + return $this->items[$count - 1]; |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | /** |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | public function sortBy(string $fieldName, bool $reverse = false): CollectionInterface |
53 | 53 | { |
54 | 54 | $results = $this->items; |
55 | - usort($results, static function ($item1, $item2) use ($fieldName) { |
|
55 | + usort($results, static function($item1, $item2) use ($fieldName) { |
|
56 | 56 | return $item1[$fieldName] <=> $item2[$fieldName]; |
57 | 57 | }); |
58 | 58 | if ($reverse) { |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | */ |
117 | 117 | public function toArray(): array |
118 | 118 | { |
119 | - return array_map(static function ($value) { |
|
119 | + return array_map(static function($value) { |
|
120 | 120 | return $value instanceof ArrayableInterface ? $value->toArray() : $value; |
121 | 121 | }, $this->items); |
122 | 122 | } |