@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | */ |
21 | 21 | public function all(): self |
22 | 22 | { |
23 | - $filteredPages = $this->filter(function (Page $page) { |
|
23 | + $filteredPages = $this->filter(function(Page $page) { |
|
24 | 24 | if ($page->isVirtual() === false) { |
25 | 25 | return true; |
26 | 26 | } |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | */ |
37 | 37 | public function sortByDate(): self |
38 | 38 | { |
39 | - return $this->usort(function ($a, $b) { |
|
39 | + return $this->usort(function($a, $b) { |
|
40 | 40 | if (!isset($a['date'])) { |
41 | 41 | return -1; |
42 | 42 | } |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | */ |
59 | 59 | public function sortByTitle(): self |
60 | 60 | { |
61 | - return $this->usort(function ($a, $b) { |
|
61 | + return $this->usort(function($a, $b) { |
|
62 | 62 | return strnatcmp($a['title'], $b['title']); |
63 | 63 | }); |
64 | 64 | } |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | */ |
71 | 71 | public function sortByWeight(): self |
72 | 72 | { |
73 | - return $this->usort(function ($a, $b) { |
|
73 | + return $this->usort(function($a, $b) { |
|
74 | 74 | if (!isset($a['weight'])) { |
75 | 75 | return 1; |
76 | 76 | } |