Passed
Push — analysis-gOJY56 ( 47b5eb )
by Arnaud
07:46 queued 02:27
created
src/Generator/Homepage.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
     public function generate(): void
25 25
     {
26
-        $subPages = $this->builder->getPages()->filter(function (Page $page) {
26
+        $subPages = $this->builder->getPages()->filter(function(Page $page) {
27 27
             return $page->getType() == TYPE::PAGE
28 28
                 && $page->getId() != 'index' // excludes homepage
29 29
                 && $page->isVirtual() === false // excludes virtual pages
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
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      */
25 25
     public function all(): self
26 26
     {
27
-        $filteredPages = $this->filter(function (Page $page) {
27
+        $filteredPages = $this->filter(function(Page $page) {
28 28
             if ($page->isVirtual() === false && $page->getVariable('exclude') !== true) {
29 29
                 return true;
30 30
             }
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public function sortByDate(): self
42 42
     {
43
-        return $this->usort(function ($a, $b) {
43
+        return $this->usort(function($a, $b) {
44 44
             if ($a['date'] == $b['date']) {
45 45
                 return 0;
46 46
             }
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     public function sortByTitle(): self
58 58
     {
59
-        return $this->usort(function ($a, $b) {
59
+        return $this->usort(function($a, $b) {
60 60
             return strnatcmp($a['title'], $b['title']);
61 61
         });
62 62
     }
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      */
69 69
     public function sortByWeight(): self
70 70
     {
71
-        return $this->usort(function ($a, $b) {
71
+        return $this->usort(function($a, $b) {
72 72
             if ($a['weight'] == $b['weight']) {
73 73
                 return 0;
74 74
             }
Please login to merge, or discard this patch.