Passed
Push — analysis-vQjJ4v ( b84763 )
by Arnaud
12:53 queued 08:04
created
src/Step/MenusCreate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
     {
136 136
         $count = 0;
137 137
 
138
-        $filteredPages = $this->builder->getPages()->filter(function (Page $page) {
138
+        $filteredPages = $this->builder->getPages()->filter(function(Page $page) {
139 139
             return $page->hasVariable('menu') && $page->getVariable('published');
140 140
         });
141 141
 
Please login to merge, or discard this patch.
src/Generator/Pagination.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
         }
30 30
 
31 31
         // filters pages: home, sections and terms
32
-        $filteredPages = $this->builder->getPages()->filter(function (Page $page) {
32
+        $filteredPages = $this->builder->getPages()->filter(function(Page $page) {
33 33
             return in_array($page->getType(), [Type::HOMEPAGE, Type::SECTION, Type::TERM]);
34 34
         });
35 35
         /** @var Page $page */
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
                     $paginationPath = $pagePagination['path'];
59 59
                 }
60 60
             }
61
-            $pages = $pages->filter(function (Page $page) {
61
+            $pages = $pages->filter(function(Page $page) {
62 62
                 return $page->getVariable('published');
63 63
             });
64 64
             $pagesTotal = count($pages);
Please login to merge, or discard this patch.
src/Assets/Url.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -115,8 +115,7 @@
 block discarded – undo
115 115
                         $this->url = new self($this->builder, $page, $options);
116 116
                         break;
117 117
                     // asset as string
118
-                    case false !== strpos($value, '.') ? true : false:
119
-                        $this->url = $base.'/'.ltrim($value, '/');
118
+                    case false !== strpos($value, '.') ? true : false : $this->url = $base.'/'.ltrim($value, '/');
120 119
                         break;
121 120
                     // others cases?
122 121
                     default:
Please login to merge, or discard this patch.