@@ -42,7 +42,7 @@ |
||
| 42 | 42 | public static function fileGetContents($filename, $userAgent = false) |
| 43 | 43 | { |
| 44 | 44 | set_error_handler( |
| 45 | - function ($severity, $message, $file, $line) { |
|
| 45 | + function($severity, $message, $file, $line) { |
|
| 46 | 46 | throw new \ErrorException($message, 0, $severity, $file, $line, null); |
| 47 | 47 | } |
| 48 | 48 | ); |
@@ -136,8 +136,8 @@ |
||
| 136 | 136 | case PageType::TERM: |
| 137 | 137 | $layouts = [ |
| 138 | 138 | // "taxonomy/$term.$format.$ext", // ie: taxonomy/velo.html.twig |
| 139 | - "_default/term.$format.$ext", // ie: _default/term.html.twig |
|
| 140 | - "_default/list.$format.$ext", // ie: _default/list.html.twig |
|
| 139 | + "_default/term.$format.$ext", // ie: _default/term.html.twig |
|
| 140 | + "_default/list.$format.$ext", // ie: _default/list.html.twig |
|
| 141 | 141 | ]; |
| 142 | 142 | if ($page->getVariable('term')) { |
| 143 | 143 | $layouts = array_merge( |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | */ |
| 25 | 25 | public function all(): self |
| 26 | 26 | { |
| 27 | - $filteredPages = $this->filter(function (Page $page) { |
|
| 27 | + $filteredPages = $this->filter(function(Page $page) { |
|
| 28 | 28 | if ($page->isVirtual() === false && $page->getVariable('exclude') !== true) { |
| 29 | 29 | return true; |
| 30 | 30 | } |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | */ |
| 41 | 41 | public function sortByDate(): self |
| 42 | 42 | { |
| 43 | - return $this->usort(function ($a, $b) { |
|
| 43 | + return $this->usort(function($a, $b) { |
|
| 44 | 44 | if ($a['date'] == $b['date']) { |
| 45 | 45 | return 0; |
| 46 | 46 | } |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | */ |
| 57 | 57 | public function sortByTitle(): self |
| 58 | 58 | { |
| 59 | - return $this->usort(function ($a, $b) { |
|
| 59 | + return $this->usort(function($a, $b) { |
|
| 60 | 60 | return strnatcmp($a['title'], $b['title']); |
| 61 | 61 | }); |
| 62 | 62 | } |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | */ |
| 69 | 69 | public function sortByWeight(): self |
| 70 | 70 | { |
| 71 | - return $this->usort(function ($a, $b) { |
|
| 71 | + return $this->usort(function($a, $b) { |
|
| 72 | 72 | if ($a['weight'] == $b['weight']) { |
| 73 | 73 | return 0; |
| 74 | 74 | } |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | */ |
| 24 | 24 | public function generate(): void |
| 25 | 25 | { |
| 26 | - $subPages = $this->builder->getPages()->filter(function (Page $page) { |
|
| 26 | + $subPages = $this->builder->getPages()->filter(function(Page $page) { |
|
| 27 | 27 | return $page->getType() == TYPE::PAGE |
| 28 | 28 | && $page->isVirtual() === false // excludes virtual pages |
| 29 | 29 | && $page->getVariable('exclude') !== true; |