Completed
Push — feature-data-loader ( a3cb96...33070f )
by Arnaud
02:39
created
src/Step/PagesGenerate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
             call_user_func_array($this->builder->getMessageCb(), ['GENERATE', 'Generating pages']);
37 37
 
38 38
             $generators = $this->builder->getConfig()->get('generators');
39
-            array_walk($generators, function ($generator, $priority) use ($generatorManager) {
39
+            array_walk($generators, function($generator, $priority) use ($generatorManager) {
40 40
                 if (!class_exists($generator)) {
41 41
                     $message = sprintf('Unable to load generator "%s"', $generator);
42 42
                     call_user_func_array($this->builder->getMessageCb(), ['GENERATE_ERROR', $message]);
Please login to merge, or discard this patch.
src/Util.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
     /**
128 128
      * Format class name.
129 129
      *
130
-     * @param \object $class
130
+     * @param Generator\GeneratorInterface $class
131 131
      * @param array   $options
132 132
      *
133 133
      * @return string
Please login to merge, or discard this patch.
src/Generator/TitleReplace.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
      */
22 22
     public function generate(): void
23 23
     {
24
-        $filteredPages = $this->pagesCollection->filter(function (Page $page) {
24
+        $filteredPages = $this->pagesCollection->filter(function(Page $page) {
25 25
             return null !== $page->getVariable('title');
26 26
         });
27 27
 
Please login to merge, or discard this patch.
src/Generator/Redirect.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
      */
22 22
     public function generate(): void
23 23
     {
24
-        $filteredPages = $this->pagesCollection->filter(function (Page $page) {
24
+        $filteredPages = $this->pagesCollection->filter(function(Page $page) {
25 25
             return null !== $page->getVariable('redirect')
26 26
                 && $page->getVariable('layout') != 'redirect';
27 27
         });
Please login to merge, or discard this patch.
src/Generator/ExternalBody.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      */
23 23
     public function generate(): void
24 24
     {
25
-        $filteredPages = $this->pagesCollection->filter(function (Page $page) {
25
+        $filteredPages = $this->pagesCollection->filter(function(Page $page) {
26 26
             return null !== $page->getVariable('external');
27 27
         });
28 28
 
Please login to merge, or discard this patch.
src/Generator/Homepage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
      */
22 22
     public function generate(): void
23 23
     {
24
-        $subPages = $this->pagesCollection->filter(function (Page $page) {
24
+        $subPages = $this->pagesCollection->filter(function(Page $page) {
25 25
             return $page->getType() == TYPE::PAGE
26 26
                 && $page->getId() != 'index'; // exclude homepage
27 27
         });
Please login to merge, or discard this patch.
src/Renderer/Layout.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,8 +113,8 @@
 block discarded – undo
113 113
             case PageType::TERM:
114 114
                 $layouts = [
115 115
                     // "taxonomy/$term.$format.twig", // ie: taxonomy/velo.html.twig
116
-                    "_default/term.$format.twig",     // ie: _default/term.html.twig
117
-                    "_default/list.$format.twig",     // ie: _default/list.html.twig
116
+                    "_default/term.$format.twig", // ie: _default/term.html.twig
117
+                    "_default/list.$format.twig", // ie: _default/list.html.twig
118 118
                 ];
119 119
                 if ($page->getVariable('term')) {
120 120
                     $layouts = array_merge(
Please login to merge, or discard this patch.
src/Collection/Collection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      */
67 67
     protected function searchItem(string $id): ?array
68 68
     {
69
-        return array_filter($this->items, function (ItemInterface $item) use ($id) {
69
+        return array_filter($this->items, function(ItemInterface $item) use ($id) {
70 70
             return $item->getId() == $id;
71 71
         });
72 72
     }
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
      */
241 241
     public function usort(\Closure $callback = null): CollectionInterface
242 242
     {
243
-        $callback ? usort($this->items, $callback) : usort($this->items, function ($a, $b) {
243
+        $callback ? usort($this->items, $callback) : usort($this->items, function($a, $b) {
244 244
             if ($a == $b) {
245 245
                 return 0;
246 246
             }
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
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
         $count = 0;
107 107
 
108 108
         $filteredPages = $this->builder->getPages()
109
-            ->filter(function (Page $page) {
109
+            ->filter(function(Page $page) {
110 110
                 if ($page->getVariable('menu')) {
111 111
                     return true;
112 112
                 }
Please login to merge, or discard this patch.