Passed
Push — sortby ( 7da4fa...5ee34d )
by Arnaud
04:55
created
src/Collection/Page/Collection.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     /**
50 50
      * Sorts pages by.
51 51
      */
52
-    public function sortBy(array|string|null $options): self
52
+    public function sortBy(array | string | null $options): self
53 53
     {
54 54
         /*
55 55
          * $options: date|updated|title|weight
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     /**
71 71
      * Sorts pages by date (or 'updated'): the most recent first.
72 72
      */
73
-    public function sortByDate(array|string|null $options = null): self
73
+    public function sortByDate(array | string | null $options = null): self
74 74
     {
75 75
         $opt = [];
76 76
         // backward compatibility (i.e. $options = 'updated')
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     /**
105 105
      * Sorts pages by title (natural sort).
106 106
      */
107
-    public function sortByTitle(array|string|null $options = null): self
107
+    public function sortByTitle(array | string | null $options = null): self
108 108
     {
109 109
         $opt = [];
110 110
         // options
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     /**
119 119
      * Sorts by weight (the heaviest first).
120 120
      */
121
-    public function sortByWeight(array|string|null $options = null): self
121
+    public function sortByWeight(array | string | null $options = null): self
122 122
     {
123 123
         $opt = [];
124 124
         // options
Please login to merge, or discard this patch.