@@ -127,7 +127,7 @@ |
||
| 127 | 127 | /** |
| 128 | 128 | * Format class name. |
| 129 | 129 | * |
| 130 | - * @param \object $class |
|
| 130 | + * @param Generator\GeneratorInterface $class |
|
| 131 | 131 | * @param array $options |
| 132 | 132 | * |
| 133 | 133 | * @return string |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | */ |
| 22 | 22 | public function generate(): void |
| 23 | 23 | { |
| 24 | - $filteredPages = $this->pagesCollection->filter(function (Page $page) { |
|
| 24 | + $filteredPages = $this->pagesCollection->filter(function(Page $page) { |
|
| 25 | 25 | return null !== $page->getVariable('title'); |
| 26 | 26 | }); |
| 27 | 27 | |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | $paginationSections = $this->config->get('site.pagination.sections'); |
| 35 | 35 | |
| 36 | 36 | // filter pages: home and sections |
| 37 | - $filteredPages = $this->pagesCollection->filter(function (Page $page) { |
|
| 37 | + $filteredPages = $this->pagesCollection->filter(function(Page $page) { |
|
| 38 | 38 | return in_array($page->getType(), [Type::HOMEPAGE, Type::SECTION]); |
| 39 | 39 | }); |
| 40 | 40 | /* @var $page Page */ |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | */ |
| 22 | 22 | public function generate(): void |
| 23 | 23 | { |
| 24 | - $filteredPages = $this->pagesCollection->filter(function (Page $page) { |
|
| 24 | + $filteredPages = $this->pagesCollection->filter(function(Page $page) { |
|
| 25 | 25 | return null !== $page->getVariable('redirect') |
| 26 | 26 | && $page->getVariable('layout') != 'redirect'; |
| 27 | 27 | }); |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | */ |
| 23 | 23 | public function generate(): void |
| 24 | 24 | { |
| 25 | - $filteredPages = $this->pagesCollection->filter(function (Page $page) { |
|
| 25 | + $filteredPages = $this->pagesCollection->filter(function(Page $page) { |
|
| 26 | 26 | return null !== $page->getVariable('external'); |
| 27 | 27 | }); |
| 28 | 28 | |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | */ |
| 22 | 22 | public function generate(): void |
| 23 | 23 | { |
| 24 | - $subPages = $this->pagesCollection->filter(function (Page $page) { |
|
| 24 | + $subPages = $this->pagesCollection->filter(function(Page $page) { |
|
| 25 | 25 | return $page->getType() == TYPE::PAGE |
| 26 | 26 | && $page->getId() != 'index'; // exclude homepage |
| 27 | 27 | }); |