Completed
Push — rss-section ( 5d29a4 )
by Arnaud
02:31
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->builder->getMessageCb(), ['SAVE', 'Saving pages']);
47 47
 
48 48
         /* @var $page Page */
49
-        $filteredPages = $this->builder->getPages()->filter(function (Page $page) {
49
+        $filteredPages = $this->builder->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/CopyStatic.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
         $staticDir = $this->builder->getConfig()->getStaticPath();
62 62
         if (Util::getFS()->exists($staticDir)) {
63 63
             $finder = new Finder();
64
-            $finder->files()->filter(function (\SplFileInfo $file) {
64
+            $finder->files()->filter(function(\SplFileInfo $file) {
65 65
                 return !(is_array($this->builder->getConfig()->get('static.exclude'))
66 66
                     && in_array($file->getBasename(), $this->builder->getConfig()->get('static.exclude')));
67 67
             })->in($staticDir);
Please login to merge, or discard this patch.
src/Renderer/Twig/Extension.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
      */
114 114
     public function filterBy($pages, $variable, $value)
115 115
     {
116
-        $filteredPages = $pages->filter(function (Page $page) use ($variable, $value) {
116
+        $filteredPages = $pages->filter(function(Page $page) use ($variable, $value) {
117 117
             // dedicated getter?
118 118
             $method = 'get'.ucfirst($variable);
119 119
             if (method_exists($page, $method) && $page->$method() == $value) {
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
      */
156 156
     public function sortByWeight($array)
157 157
     {
158
-        $callback = function ($a, $b) {
158
+        $callback = function($a, $b) {
159 159
             if (!isset($a['weight'])) {
160 160
                 return 1;
161 161
             }
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
      */
189 189
     public function sortByDate($array)
190 190
     {
191
-        $callback = function ($a, $b) {
191
+        $callback = function($a, $b) {
192 192
             if (!isset($a['date'])) {
193 193
                 return -1;
194 194
             }
Please login to merge, or discard this patch.