Completed
Push — include-lib ( fbd48a )
by Arnaud
02:41
created
src/Step/SavePages.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
         call_user_func_array($this->phpoole->getMessageCb(), ['SAVE', 'Saving pages']);
47 47
 
48 48
         /* @var $page Page */
49
-        $filteredPages = $this->phpoole->getPages()->filter(function (Page $page) {
49
+        $filteredPages = $this->phpoole->getPages()->filter(function(Page $page) {
50 50
             return !empty($page->getVariable('rendered'));
51 51
         });
52 52
         $max = count($filteredPages);
Please login to merge, or discard this patch.
src/Step/GeneratePages.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
         if ($this->process) {
34 34
             $generatorManager = new GeneratorManager();
35 35
             $generators = $this->phpoole->getConfig()->get('generators');
36
-            array_walk($generators, function ($generator, $priority) use ($generatorManager) {
36
+            array_walk($generators, function($generator, $priority) use ($generatorManager) {
37 37
                 if (!class_exists($generator)) {
38 38
                     $message = sprintf("Unable to load generator '%s'", $generator);
39 39
                     call_user_func_array($this->phpoole->getMessageCb(), ['GENERATE_ERROR', $message]);
Please login to merge, or discard this patch.
src/Step/RenderPages.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
         // collect published pages
54 54
         /* @var $page Page */
55
-        $filteredPages = $this->phpoole->getPages()->filter(function (Page $page) {
55
+        $filteredPages = $this->phpoole->getPages()->filter(function(Page $page) {
56 56
             return !empty($page->getVariable('published'));
57 57
         });
58 58
         $max = count($filteredPages);
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         $this->phpoole->getRenderer()->addGlobal('site', array_merge(
112 112
             $this->config->get('site'),
113 113
             ['menus' => $this->phpoole->getMenus()],
114
-            ['pages' => $this->phpoole->getPages()->filter(function (Page $page) {
114
+            ['pages' => $this->phpoole->getPages()->filter(function(Page $page) {
115 115
                 return $page->getVariable('published');
116 116
             })],
117 117
             ['time' => time()]
Please login to merge, or discard this patch.
src/Config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
142 142
         /**
143 143
          * Apply environment variables.
144 144
          */
145
-        $applyEnv = function ($array) use ($data) {
145
+        $applyEnv = function($array) use ($data) {
146 146
             $iterator = new \RecursiveIteratorIterator(
147 147
                 new \RecursiveArrayIterator($array),
148 148
                 \RecursiveIteratorIterator::SELF_FIRST
Please login to merge, or discard this patch.