@@ -112,7 +112,7 @@ |
||
| 112 | 112 | */ |
| 113 | 113 | public function getPages(): \Cecil\Collection\Page\Collection |
| 114 | 114 | { |
| 115 | - return $this->builder->getPages()->filter(function (CollectionPage $page) { |
|
| 115 | + return $this->builder->getPages()->filter(function(CollectionPage $page) { |
|
| 116 | 116 | // We should fix case of virtual pages without language |
| 117 | 117 | if ($page->getLanguage() === null && $this->language == $this->config->getLanguageDefault()) { |
| 118 | 118 | return true; |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | $this->generate(); |
| 51 | 51 | |
| 52 | 52 | // set default language (ex: "en") if necessary |
| 53 | - $this->generatedPages->map(function (\Cecil\Collection\Page\Page $page) { |
|
| 53 | + $this->generatedPages->map(function(\Cecil\Collection\Page\Page $page) { |
|
| 54 | 54 | if ($page->getLanguage() === null) { |
| 55 | 55 | $page->setLanguage($this->config->getLanguageDefault()); |
| 56 | 56 | } |
@@ -140,7 +140,7 @@ |
||
| 140 | 140 | */ |
| 141 | 141 | protected function collectPages(): void |
| 142 | 142 | { |
| 143 | - $filteredPages = $this->builder->getPages()->filter(function (Page $page) { |
|
| 143 | + $filteredPages = $this->builder->getPages()->filter(function(Page $page) { |
|
| 144 | 144 | return $page->hasVariable('menu') |
| 145 | 145 | && $page->getVariable('published') |
| 146 | 146 | && in_array($page->getLanguage() ?? $this->config->getLanguageDefault(), array_column($this->config->getLanguages(), 'code')); |