Passed
Push — coverage ( 46da49...c64418 )
by Arnaud
03:07
created
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) {
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.
src/Collection/Taxonomy/Term.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
      */
53 53
     public function sortByDate(): self
54 54
     {
55
-        return $this->usort(function ($a, $b) {
55
+        return $this->usort(function($a, $b) {
56 56
             if ($a['date'] == $b['date']) {
57 57
                 return 0;
58 58
             }
Please login to merge, or discard this patch.
src/Renderer/Twig/Extension.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
      */
201 201
     public function filterBy(PagesCollection $pages, string $variable, string $value): CollectionInterface
202 202
     {
203
-        $filteredPages = $pages->filter(function (Page $page) use ($variable, $value) {
203
+        $filteredPages = $pages->filter(function(Page $page) use ($variable, $value) {
204 204
             $notVirtual = false;
205 205
             if (!$page->isVirtual()) {
206 206
                 $notVirtual = true;
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
      */
243 243
     public function sortByWeight(\Traversable $collection): array
244 244
     {
245
-        $callback = function ($a, $b) {
245
+        $callback = function($a, $b) {
246 246
             if (!isset($a['weight'])) {
247 247
                 $a['weight'] = 0;
248 248
             }
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
      */
272 272
     public function sortByDate(\Traversable $collection): array
273 273
     {
274
-        $callback = function ($a, $b) {
274
+        $callback = function($a, $b) {
275 275
             if ($a['date'] == $b['date']) {
276 276
                 return 0;
277 277
             }
Please login to merge, or discard this patch.