Completed
Pull Request — 4.1.0 (#195)
by Arnaud
07:24 queued 04:59
created
src/Command/ListContent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
             $this->wlAnnonce(sprintf('%s/', $this->contentDir));
31 31
             $pages = $this->getPagesTree();
32 32
             if ($this->getConsole()->isUtf8()) {
33
-                $unicodeTreePrefix = function (RecursiveTreeIterator $tree) {
33
+                $unicodeTreePrefix = function(RecursiveTreeIterator $tree) {
34 34
                     $prefixParts = [
35 35
                         RecursiveTreeIterator::PREFIX_LEFT         => ' ',
36 36
                         RecursiveTreeIterator::PREFIX_MID_HAS_NEXT => '│ ',
Please login to merge, or discard this patch.
src/Command/AbstractCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -209,7 +209,7 @@
 block discarded – undo
209 209
      */
210 210
     public function messageCallback()
211 211
     {
212
-        return function ($code, $message = '', $itemsCount = 0, $itemsMax = 0) {
212
+        return function($code, $message = '', $itemsCount = 0, $itemsMax = 0) {
213 213
             if ($this->quiet) {
214 214
                 return;
215 215
             } else {
Please login to merge, or discard this patch.
src/Builder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
     public function setMessageCallback($messageCallback = null)
230 230
     {
231 231
         if ($messageCallback === null) {
232
-            $messageCallback = function ($code, $message = '', $itemsCount = 0, $itemsMax = 0) {
232
+            $messageCallback = function($code, $message = '', $itemsCount = 0, $itemsMax = 0) {
233 233
                 switch ($code) {
234 234
                     case 'CONFIG':
235 235
                     case 'LOCATE':
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
     public function getLog($type = 0)
327 327
     {
328 328
         if (is_array($this->log)) {
329
-            return array_filter($this->log, function ($key) use ($type) {
329
+            return array_filter($this->log, function($key) use ($type) {
330 330
                 return $key['type'] <= $type;
331 331
             });
332 332
         }
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
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     {
25 25
         $generatedPages = new PageCollection();
26 26
 
27
-        $filteredPages = $pageCollection->filter(function (Page $page) {
27
+        $filteredPages = $pageCollection->filter(function(Page $page) {
28 28
             return null !== $page->getVariable('external');
29 29
         });
30 30
 
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
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     {
24 24
         $generatedPages = new PageCollection();
25 25
 
26
-        $filteredPages = $pageCollection->filter(function (Page $page) {
26
+        $filteredPages = $pageCollection->filter(function(Page $page) {
27 27
             return null !== $page->getTitle();
28 28
         });
29 29
 
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
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     {
24 24
         $generatedPages = new PageCollection();
25 25
 
26
-        $filteredPages = $pageCollection->filter(function (Page $page) {
26
+        $filteredPages = $pageCollection->filter(function(Page $page) {
27 27
             return null !== $page->getVariable('redirect');
28 28
         });
29 29
 
Please login to merge, or discard this patch.
src/Generator/Pagination.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     {
25 25
         $generatedPages = new PageCollection();
26 26
 
27
-        $filteredPages = $pageCollection->filter(function (Page $page) {
27
+        $filteredPages = $pageCollection->filter(function(Page $page) {
28 28
             return in_array($page->getNodeType(), [NodeType::HOMEPAGE, NodeType::SECTION]);
29 29
         });
30 30
 
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
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
         $generatedPages = new PageCollection();
26 26
 
27 27
         if (!$pageCollection->has('index')) {
28
-            $filteredPages = $pageCollection->filter(function (Page $page) {
28
+            $filteredPages = $pageCollection->filter(function(Page $page) {
29 29
                 return $page->getNodeType() === null
30 30
                 && $page->getSection() == $this->config->get('site.paginate.homepage.section')
31 31
                 && !empty($page->getBody());
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
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
     public function usort(\Closure $callback = null)
167 167
     {
168 168
         $items = $this->items;
169
-        $callback ? uasort($items, $callback) : uasort($items, function ($a, $b) {
169
+        $callback ? uasort($items, $callback) : uasort($items, function($a, $b) {
170 170
             if ($a == $b) {
171 171
                 return 0;
172 172
             }
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
      */
185 185
     public function sortByDate()
186 186
     {
187
-        return $this->usort(function ($a, $b) {
187
+        return $this->usort(function($a, $b) {
188 188
             if (!isset($a['date'])) {
189 189
                 return -1;
190 190
             }
Please login to merge, or discard this patch.