@@ -61,8 +61,8 @@ |
||
| 61 | 61 | |
| 62 | 62 | // handles options |
| 63 | 63 | $canonical = null; // if true, add prefix URL with baseurl |
| 64 | - $format = null; // set output format |
|
| 65 | - $language = null; // force language |
|
| 64 | + $format = null; // set output format |
|
| 65 | + $language = null; // force language |
|
| 66 | 66 | extract(is_array($options) ? $options : [], EXTR_IF_EXISTS); |
| 67 | 67 | |
| 68 | 68 | // canonical URL? |
@@ -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 |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | $options['descTitle'] = $options['descTitle'] ?? false; |
| 60 | 60 | $options['reverse'] = $options['reverse'] ?? false; |
| 61 | 61 | |
| 62 | - return $this->usort(function ($a, $b) use ($options) { |
|
| 62 | + return $this->usort(function($a, $b) use ($options) { |
|
| 63 | 63 | if ($a[$options['variable']] == $b[$options['variable']]) { |
| 64 | 64 | // if dates are equal and "descTitle" is true |
| 65 | 65 | if ($options['descTitle'] && (isset($a['title']) && isset($b['title']))) { |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | $options['reverse'] = false; |
| 84 | 84 | } |
| 85 | 85 | |
| 86 | - return $this->usort(function ($a, $b) use ($options) { |
|
| 86 | + return $this->usort(function($a, $b) use ($options) { |
|
| 87 | 87 | return ($options['reverse'] ? -1 : 1) * strnatcmp($a['title'], $b['title']); |
| 88 | 88 | }); |
| 89 | 89 | } |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | $options['reverse'] = false; |
| 99 | 99 | } |
| 100 | 100 | |
| 101 | - return $this->usort(function ($a, $b) use ($options) { |
|
| 101 | + return $this->usort(function($a, $b) use ($options) { |
|
| 102 | 102 | if ($a['weight'] == $b['weight']) { |
| 103 | 103 | return 0; |
| 104 | 104 | } |