@@ -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 | - $pages = $this->usort(function ($a, $b) use ($options) { |
|
| 62 | + $pages = $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']))) { |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | $options['reverse'] = false; |
| 89 | 89 | } |
| 90 | 90 | |
| 91 | - return $this->usort(function ($a, $b) use ($options) { |
|
| 91 | + return $this->usort(function($a, $b) use ($options) { |
|
| 92 | 92 | return ($options['reverse'] ? -1 : 1) * strnatcmp($a['title'], $b['title']); |
| 93 | 93 | }); |
| 94 | 94 | } |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | $options['reverse'] = false; |
| 104 | 104 | } |
| 105 | 105 | |
| 106 | - return $this->usort(function ($a, $b) use ($options) { |
|
| 106 | + return $this->usort(function($a, $b) use ($options) { |
|
| 107 | 107 | if ($a['weight'] == $b['weight']) { |
| 108 | 108 | return 0; |
| 109 | 109 | } |