@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | */ |
| 23 | 23 | public function showable(): self |
| 24 | 24 | { |
| 25 | - $filteredPages = $this->filter(function (Page $page) { |
|
| 25 | + $filteredPages = $this->filter(function(Page $page) { |
|
| 26 | 26 | if ($page->getVariable('published') === true |
| 27 | 27 | && $page->isVirtual() === false |
| 28 | 28 | && $page->getVariable('redirect') === null |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | */ |
| 50 | 50 | public function sortByDate(): self |
| 51 | 51 | { |
| 52 | - return $this->usort(function ($a, $b) { |
|
| 52 | + return $this->usort(function($a, $b) { |
|
| 53 | 53 | if ($a['date'] == $b['date']) { |
| 54 | 54 | return 0; |
| 55 | 55 | } |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | */ |
| 66 | 66 | public function sortByTitle(): self |
| 67 | 67 | { |
| 68 | - return $this->usort(function ($a, $b) { |
|
| 68 | + return $this->usort(function($a, $b) { |
|
| 69 | 69 | return strnatcmp($a['title'], $b['title']); |
| 70 | 70 | }); |
| 71 | 71 | } |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | */ |
| 78 | 78 | public function sortByWeight(): self |
| 79 | 79 | { |
| 80 | - return $this->usort(function ($a, $b) { |
|
| 80 | + return $this->usort(function($a, $b) { |
|
| 81 | 81 | if ($a['weight'] == $b['weight']) { |
| 82 | 82 | return 0; |
| 83 | 83 | } |
@@ -136,7 +136,7 @@ |
||
| 136 | 136 | */ |
| 137 | 137 | protected function collectPages(): void |
| 138 | 138 | { |
| 139 | - $filteredPages = $this->builder->getPages()->filter(function (Page $page) { |
|
| 139 | + $filteredPages = $this->builder->getPages()->filter(function(Page $page) { |
|
| 140 | 140 | return $page->hasVariable('menu') && $page->getVariable('published'); |
| 141 | 141 | }); |
| 142 | 142 | |
@@ -93,7 +93,7 @@ |
||
| 93 | 93 | protected function collectTermsFromPages(): void |
| 94 | 94 | { |
| 95 | 95 | /** @var Page $page */ |
| 96 | - $pages = $this->builder->getPages()->filter(function (Page $page) { |
|
| 96 | + $pages = $this->builder->getPages()->filter(function(Page $page) { |
|
| 97 | 97 | return $page->getVariable('published'); |
| 98 | 98 | })->sortByDate(); |
| 99 | 99 | foreach ($pages as $page) { |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | public static function fileGetContents(string $filename, bool $userAgent = false) |
| 38 | 38 | { |
| 39 | 39 | set_error_handler( |
| 40 | - function ($severity, $message, $file, $line) { |
|
| 40 | + function($severity, $message, $file, $line) { |
|
| 41 | 41 | throw new \ErrorException($message, 0, $severity, $file, $line, null); |
| 42 | 42 | } |
| 43 | 43 | ); |