@@ -141,7 +141,7 @@ |
||
| 141 | 141 | /** |
| 142 | 142 | * Adds navigation (next and prev) to section subpages. |
| 143 | 143 | */ |
| 144 | - protected function addNavigationLinks(PagesCollection $pages, string|null $sortBy = null, bool $circular = false): void |
|
| 144 | + protected function addNavigationLinks(PagesCollection $pages, string | null $sortBy = null, bool $circular = false): void |
|
| 145 | 145 | { |
| 146 | 146 | $pagesAsArray = $pages->toArray(); |
| 147 | 147 | if ($sortBy === null || $sortBy == 'date' || $sortBy == 'updated') { |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | /** |
| 50 | 50 | * Sorts pages by. |
| 51 | 51 | */ |
| 52 | - public function sortBy(array|string $options): self |
|
| 52 | + public function sortBy(array | string $options): self |
|
| 53 | 53 | { |
| 54 | 54 | /* |
| 55 | 55 | * $options: date|updated|title|weight |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | /** |
| 71 | 71 | * Sorts pages by date (or 'updated'): the most recent first. |
| 72 | 72 | */ |
| 73 | - public function sortByDate(array|string|null $options = null): self |
|
| 73 | + public function sortByDate(array | string | null $options = null): self |
|
| 74 | 74 | { |
| 75 | 75 | $opt = []; |
| 76 | 76 | // backward compatibility (i.e. $options = 'updated') |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | /** |
| 105 | 105 | * Sorts pages by title (natural sort). |
| 106 | 106 | */ |
| 107 | - public function sortByTitle(array|string|null $options = null): self |
|
| 107 | + public function sortByTitle(array | string | null $options = null): self |
|
| 108 | 108 | { |
| 109 | 109 | $opt = []; |
| 110 | 110 | // options |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | /** |
| 119 | 119 | * Sorts by weight (the heaviest first). |
| 120 | 120 | */ |
| 121 | - public function sortByWeight(array|string|null $options = null): self |
|
| 121 | + public function sortByWeight(array | string | null $options = null): self |
|
| 122 | 122 | { |
| 123 | 123 | $opt = []; |
| 124 | 124 | // options |