Passed
Push — dependabot/composer/twig/intl-... ( 91c711 )
by
unknown
05:12
created
src/Collection/Page/Collection.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      *   desc_title: false|true
56 56
      *   reverse: false|true
57 57
      */
58
-    public function sortBy(array|string|null $options): self
58
+    public function sortBy(array | string | null $options): self
59 59
     {
60 60
         $sortBy = \is_string($options) ? $options : $options['variable'] ?? 'date';
61 61
         $sortMethod = \sprintf('sortBy%s', ucfirst(str_replace('updated', 'date', $sortBy)));
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     /**
70 70
      * Sorts pages by date (or 'updated'): the most recent first.
71 71
      */
72
-    public function sortByDate(array|string|null $options = null): self
72
+    public function sortByDate(array | string | null $options = null): self
73 73
     {
74 74
         $opt = [];
75 75
         // backward compatibility (i.e. $options = 'updated')
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     /**
104 104
      * Sorts pages by title (natural sort).
105 105
      */
106
-    public function sortByTitle(array|string|null $options = null): self
106
+    public function sortByTitle(array | string | null $options = null): self
107 107
     {
108 108
         $opt = [];
109 109
         // options
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
     /**
118 118
      * Sorts by weight (the heaviest first).
119 119
      */
120
-    public function sortByWeight(array|string|null $options = null): self
120
+    public function sortByWeight(array | string | null $options = null): self
121 121
     {
122 122
         $opt = [];
123 123
         // options
Please login to merge, or discard this patch.