@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | */ |
| 45 | 45 | public static function joinPath(string ...$path): string |
| 46 | 46 | { |
| 47 | - array_walk($path, function (&$value, $key) { |
|
| 47 | + array_walk($path, function(&$value, $key) { |
|
| 48 | 48 | $value = str_replace('\\', '/', $value); |
| 49 | 49 | $value = rtrim($value, '/'); |
| 50 | 50 | $value = $key == 0 ? $value : ltrim($value, '/'); |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | */ |
| 63 | 63 | public static function joinFile(string ...$path): string |
| 64 | 64 | { |
| 65 | - array_walk($path, function (&$value, $key) use (&$path) { |
|
| 65 | + array_walk($path, function(&$value, $key) use (&$path) { |
|
| 66 | 66 | $value = str_replace(['\\', '/'], [DIRECTORY_SEPARATOR, DIRECTORY_SEPARATOR], $value); |
| 67 | 67 | $value = rtrim($value, DIRECTORY_SEPARATOR); |
| 68 | 68 | $value = $key == 0 ? $value : ltrim($value, DIRECTORY_SEPARATOR); |
@@ -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 | } |