Completed
Push — master ( bc462e...3c2183 )
by Daniel
07:13
created
lib/Metadata/ColumnMetadata.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Psi\Component\Grid\Metadata;
6 6
 
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     ) {
23 23
         $this->name = $name;
24 24
         $this->type = $type;
25
-        $this->groups = $groups ?: [ Grid::DEFAULT_GROUP ];
25
+        $this->groups = $groups ?: [Grid::DEFAULT_GROUP];
26 26
         $this->options = $options;
27 27
         $this->tags = $tags;
28 28
     }
Please login to merge, or discard this patch.
lib/Metadata/GridMetadata.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Psi\Component\Grid\Metadata;
6 6
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
     public function getColumnsForGroups(array $groups): array
40 40
     {
41
-        return array_filter($this->columns, function (ColumnMetadata $column) use ($groups) {
41
+        return array_filter($this->columns, function(ColumnMetadata $column) use ($groups) {
42 42
             return 0 === count(array_diff($groups, $column->getGroups()));
43 43
         });
44 44
     }
Please login to merge, or discard this patch.
lib/GridContext.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Psi\Component\Grid;
6 6
 
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
         $defaults = [
25 25
             'page_size' => 50,
26 26
             'page' => 1,
27
-            'groups' => [ Grid::DEFAULT_GROUP ],
27
+            'groups' => [Grid::DEFAULT_GROUP],
28 28
             'orderings' => [],
29 29
             'filter' => [],
30 30
             'variant' => Grid::DEFAULT_VARIANT,
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         $options = array_merge($defaults, $options);
43 43
 
44 44
         // normalize the orderings
45
-        $options['orderings'] = array_map(function ($order) {
45
+        $options['orderings'] = array_map(function($order) {
46 46
             $order = strtolower($order);
47 47
 
48 48
             if (false === in_array($order, ['asc', 'desc'])) {
Please login to merge, or discard this patch.