Passed
Push — analysis-ZnjP0g ( e39df9 )
by Arnaud
04:30
created
src/Renderer/Site.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Generator/AbstractGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/Step/Menus/Create.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@
 block discarded – undo
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'));
Please login to merge, or discard this patch.