Passed
Push — code ( 97b8ab )
by Arnaud
03:36
created
src/Collection/Page/Collection.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public function showable(): self
27 27
     {
28
-        return $this->filter(function (Page $page) {
28
+        return $this->filter(function(Page $page) {
29 29
             if ($page->getVariable('published') === true
30 30
                 && $page->isVirtual() === false
31 31
                 && $page->getVariable('redirect') === null
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public function sortByDate(): self
50 50
     {
51
-        return $this->usort(function ($a, $b) {
51
+        return $this->usort(function($a, $b) {
52 52
             if ($a['date'] == $b['date']) {
53 53
                 return 0;
54 54
             }
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      */
63 63
     public function sortByTitle(): self
64 64
     {
65
-        return $this->usort(function ($a, $b) {
65
+        return $this->usort(function($a, $b) {
66 66
             return strnatcmp($a['title'], $b['title']);
67 67
         });
68 68
     }
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      */
73 73
     public function sortByWeight(): self
74 74
     {
75
-        return $this->usort(function ($a, $b) {
75
+        return $this->usort(function($a, $b) {
76 76
             if ($a['weight'] == $b['weight']) {
77 77
                 return 0;
78 78
             }
Please login to merge, or discard this patch.