Passed
Pull Request — menu (#1177)
by Arnaud
08:02 queued 04:44
created
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.
src/Generator/Section.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
                     // cascade
61 61
                     if ($page->hasVariable('cascade')) {
62 62
                         $cascade = $page->getVariable('cascade');
63
-                        $pages->map(function (Page $page) use ($cascade) {
63
+                        $pages->map(function(Page $page) use ($cascade) {
64 64
                             foreach ($cascade as $key => $value) {
65 65
                                 if (!$page->hasVariable($key)) {
66 66
                                     $page->setVariable($key, $value);
Please login to merge, or discard this patch.