@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | */ |
| 26 | 26 | public function showable(): self |
| 27 | 27 | { |
| 28 | - return $this->filter(function (Page $page) { |
|
| 28 | + return $this->filter(function(Page $page) { |
|
| 29 | 29 | if ($page->getVariable('published') === true |
| 30 | 30 | && $page->isVirtual() === false |
| 31 | 31 | && $page->getVariable('redirect') === null |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | */ |
| 49 | 49 | public function sortByDate(): self |
| 50 | 50 | { |
| 51 | - return $this->usort(function ($a, $b) { |
|
| 51 | + return $this->usort(function($a, $b) { |
|
| 52 | 52 | if ($a['date'] == $b['date']) { |
| 53 | 53 | return 0; |
| 54 | 54 | } |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | */ |
| 63 | 63 | public function sortByTitle(): self |
| 64 | 64 | { |
| 65 | - return $this->usort(function ($a, $b) { |
|
| 65 | + return $this->usort(function($a, $b) { |
|
| 66 | 66 | return strnatcmp($a['title'], $b['title']); |
| 67 | 67 | }); |
| 68 | 68 | } |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | */ |
| 73 | 73 | public function sortByWeight(): self |
| 74 | 74 | { |
| 75 | - return $this->usort(function ($a, $b) { |
|
| 75 | + return $this->usort(function($a, $b) { |
|
| 76 | 76 | if ($a['weight'] == $b['weight']) { |
| 77 | 77 | return 0; |
| 78 | 78 | } |