Passed
Push — analysis-ne2BAG ( b838b8 )
by Arnaud
04:03 queued 11s
created
src/Step/Pages/Save.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     public function process(): void
58 58
     {
59 59
         /** @var Page $page */
60
-        $filteredPages = $this->builder->getPages()->filter(function (Page $page) {
60
+        $filteredPages = $this->builder->getPages()->filter(function(Page $page) {
61 61
             return !empty($page->getRendered());
62 62
         });
63 63
         $max = count($filteredPages);
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
@@ -146,7 +146,7 @@
 block discarded – undo
146 146
      */
147 147
     protected function collectPages(): void
148 148
     {
149
-        $filteredPages = $this->builder->getPages()->filter(function (Page $page) {
149
+        $filteredPages = $this->builder->getPages()->filter(function(Page $page) {
150 150
             return $page->hasVariable('menu')
151 151
                 && $page->getVariable('published')
152 152
                 && in_array($page->getVariable('language', $this->config->getLanguageDefault()), array_column($this->config->getLanguages(), 'code'));
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 (e.g.: "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->getVariable('language') === null) {
55 55
                 $page->setVariable('language', $this->config->getLanguageDefault());
56 56
             }
Please login to merge, or discard this patch.
src/Renderer/Site.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@
 block discarded – undo
136 136
      */
137 137
     public function getPages(): \Cecil\Collection\Page\Collection
138 138
     {
139
-        return $this->builder->getPages()->filter(function (CollectionPage $page) {
139
+        return $this->builder->getPages()->filter(function(CollectionPage $page) {
140 140
             // We should fix case of virtual pages without language
141 141
             if ($page->getVariable('language') === null && $this->language == $this->config->getLanguageDefault()) {
142 142
                 return true;
Please login to merge, or discard this patch.