Completed
Push — feature-exclude-page ( cdf655...405745 )
by Arnaud
13:05 queued 07:13
created
src/Step/PagesRender.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
         // collect published pages
57 57
         /* @var $page Page */
58
-        $filteredPages = $this->builder->getPages()->filter(function (Page $page) {
58
+        $filteredPages = $this->builder->getPages()->filter(function(Page $page) {
59 59
             return !empty($page->getVariable('published'));
60 60
         });
61 61
         $max = count($filteredPages);
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
         // https://regex101.com/r/dZ02zO/5
268 268
         $rendered = preg_replace_callback(
269 269
             '/href="([A-Za-z0-9_\.\-\/]+)\.md(\#[A-Za-z0-9\-]+)?"/is',
270
-            function ($matches) {
270
+            function($matches) {
271 271
                 return \sprintf('href="../%s%s/"', Page::slugify(PrefixSuffix::sub($matches[1])), $matches[2] ?? '');
272 272
             },
273 273
             $rendered
Please login to merge, or discard this patch.
src/Collection/Page/Collection.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
      */
21 21
     public function all(): self
22 22
     {
23
-        $filteredPages = $this->filter(function (Page $page) {
23
+        $filteredPages = $this->filter(function(Page $page) {
24 24
             if ($page->isVirtual() === false) {
25 25
                 return true;
26 26
             }
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      */
37 37
     public function sortByDate(): self
38 38
     {
39
-        return $this->usort(function ($a, $b) {
39
+        return $this->usort(function($a, $b) {
40 40
             if (!isset($a['date'])) {
41 41
                 return -1;
42 42
             }
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      */
59 59
     public function sortByTitle(): self
60 60
     {
61
-        return $this->usort(function ($a, $b) {
61
+        return $this->usort(function($a, $b) {
62 62
             return strnatcmp($a['title'], $b['title']);
63 63
         });
64 64
     }
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      */
71 71
     public function sortByWeight(): self
72 72
     {
73
-        return $this->usort(function ($a, $b) {
73
+        return $this->usort(function($a, $b) {
74 74
             if (!isset($a['weight'])) {
75 75
                 return 1;
76 76
             }
Please login to merge, or discard this patch.