Passed
Push — analysis-Rv3Kpn ( 795b48 )
by Arnaud
08:31 queued 03:34
created
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
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
      */
109 109
     public function getPages(): \Cecil\Collection\Page\Collection
110 110
     {
111
-        return $this->builder->getPages()->filter(function ($page) {
111
+        return $this->builder->getPages()->filter(function($page) {
112 112
             // We should fix case of virtual pages without language
113 113
             if ($page->getVariable('language') === null && $this->language === $this->config->getLanguageDefault()) {
114 114
                 return true;
Please login to merge, or discard this patch.
src/Util.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,10 +44,10 @@  discard block
 block discarded – undo
44 44
      */
45 45
     public static function joinPath(string ...$path): string
46 46
     {
47
-        $path = array_filter($path, function ($path) {
47
+        $path = array_filter($path, function($path) {
48 48
             return !empty($path) && !is_null($path);
49 49
         });
50
-        array_walk($path, function (&$value, $key) {
50
+        array_walk($path, function(&$value, $key) {
51 51
             $value = str_replace('\\', '/', $value);
52 52
             $value = rtrim($value, '/');
53 53
             $value = $key == 0 ? $value : ltrim($value, '/');
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      */
66 66
     public static function joinFile(string ...$path): string
67 67
     {
68
-        array_walk($path, function (&$value, $key) use (&$path) {
68
+        array_walk($path, function(&$value, $key) use (&$path) {
69 69
             $value = str_replace(['\\', '/'], [DIRECTORY_SEPARATOR, DIRECTORY_SEPARATOR], $value);
70 70
             $value = rtrim($value, DIRECTORY_SEPARATOR);
71 71
             $value = $key == 0 ? $value : ltrim($value, DIRECTORY_SEPARATOR);
Please login to merge, or discard this patch.
src/Step/MenusCreate.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
     protected function collectPages()
138 138
     {
139
-        $filteredPages = $this->builder->getPages()->filter(function (Page $page) {
139
+        $filteredPages = $this->builder->getPages()->filter(function(Page $page) {
140 140
             return $page->hasVariable('menu') && $page->getVariable('published');
141 141
         });
142 142
 
Please login to merge, or discard this patch.