Passed
Push — menu ( bd9bd5...824d62 )
by Arnaud
03:27
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
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
                     /** @var \Cecil\Collection\Page\Page $page */
62 62
                     if ($page->hasVariable('cascade')) {
63 63
                         $cascade = $page->getVariable('cascade');
64
-                        $pages->map(function (Page $page) use ($cascade) {
64
+                        $pages->map(function(Page $page) use ($cascade) {
65 65
                             foreach ($cascade as $key => $value) {
66 66
                                 if (!$page->hasVariable($key)) {
67 67
                                     $page->setVariable($key, $value);
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
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
      */
112 112
     public function getPages(): \Cecil\Collection\Page\Collection
113 113
     {
114
-        return $this->builder->getPages()->filter(function ($page) {
114
+        return $this->builder->getPages()->filter(function($page) {
115 115
             if ($this->language != $this->builder->getConfig()->getLanguageDefault()) {
116 116
                 return $page->getVariable('language') == $this->language;
117 117
             }
Please login to merge, or discard this patch.