Completed
Pull Request — master (#84)
by Daniel
02:13
created
lib/Metadata/GridMetadata.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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
 
Please login to merge, or discard this patch.
lib/GridContext.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;
6 6
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
         $options = array_merge($defaults, $options);
33 33
 
34 34
         // normalize the orderings
35
-        $options['orderings'] = array_map(function ($order) {
35
+        $options['orderings'] = array_map(function($order) {
36 36
             $order = strtolower($order);
37 37
 
38 38
             if (false === in_array($order, ['asc', 'desc'])) {
Please login to merge, or discard this patch.
lib/Metadata/ClassMetadata.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\Metadata;
6 6
 
@@ -17,10 +17,10 @@  discard block
 block discarded – undo
17 17
     {
18 18
         parent::__construct($name);
19 19
 
20
-        array_map(function (GridMetadata $grid) {
20
+        array_map(function(GridMetadata $grid) {
21 21
             $grid->attachClassMetadata($this);
22 22
         }, $grids);
23
-        array_map(function (QueryMetadata $query) {
23
+        array_map(function(QueryMetadata $query) {
24 24
         }, $queries);
25 25
 
26 26
         $this->grids = $grids;
Please login to merge, or discard this patch.
lib/Filter/AbstractComparatorFilter.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\Filter;
6 6
 
@@ -33,11 +33,11 @@  discard block
 block discarded – undo
33 33
 
34 34
     private function getChoices(array $supportedComparators, array $enabledComparators)
35 35
     {
36
-        $supported = array_keys(array_filter($this->getComparatorMap(), function ($comparator) use ($supportedComparators) {
36
+        $supported = array_keys(array_filter($this->getComparatorMap(), function($comparator) use ($supportedComparators) {
37 37
             return in_array($comparator, $supportedComparators);
38 38
         }));
39 39
 
40
-        $supported = array_filter($supported, function ($comparator) use ($enabledComparators) {
40
+        $supported = array_filter($supported, function($comparator) use ($enabledComparators) {
41 41
             return in_array($comparator, $enabledComparators);
42 42
         });
43 43
 
Please login to merge, or discard this patch.
lib/Filter/StringFilter.php 1 patch
Spacing   +5 added lines, -5 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\Filter;
6 6
 
@@ -93,13 +93,13 @@  discard block
 block discarded – undo
93 93
             case self::TYPE_NOT_EMPTY:
94 94
                 return;
95 95
             case self::TYPE_CONTAINS:
96
-                return '%' . $value . '%';
96
+                return '%'.$value.'%';
97 97
             case self::TYPE_NOT_CONTAINS:
98
-                return '%' . $value . '%';
98
+                return '%'.$value.'%';
99 99
             case self::TYPE_STARTS_WITH:
100
-                return $value . '%';
100
+                return $value.'%';
101 101
             case self::TYPE_ENDS_WITH:
102
-                return '%' . $value;
102
+                return '%'.$value;
103 103
             case self::TYPE_IN:
104 104
                 return array_map('trim', explode(',', $value));
105 105
             case self::TYPE_NOT_IN:
Please login to merge, or discard this patch.
lib/GridViewFactory.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
 
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
                 }
51 51
 
52 52
                 throw new \InvalidArgumentException(sprintf(
53
-                    'Invalid filter form: ' . implode(', ', $message)
53
+                    'Invalid filter form: '.implode(', ', $message)
54 54
                 ));
55 55
             }
56 56
         }
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
                     $criteria['criteria'] = $query->getExpression();
73 73
                 } else {
74 74
                     // filter and user criterias need to be combined
75
-                    $criteria['criteria'] = new Composite(Composite::AND, [$query->getExpression(), $criteria['criteria']]);
75
+                    $criteria['criteria'] = new Composite(Composite:: AND , [$query->getExpression(), $criteria['criteria']]);
76 76
                 }
77 77
             }
78 78
         }
Please login to merge, or discard this patch.
lib/ActionResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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
 
Please login to merge, or discard this patch.
lib/Column/BooleanColumn.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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\Column;
6 6
 
Please login to merge, or discard this patch.
lib/Column/PropertyColumn.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\Column;
6 6
 
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
         // the user has not overridden the property and, if the context is an array,
30 30
         // access it as such.
31 31
         if ($options['column_name'] === $options['property'] && false === is_object($cell->getContext())) {
32
-            $property = '[' . $property . ']';
32
+            $property = '['.$property.']';
33 33
         }
34 34
 
35 35
         $cell->value = $this->accessor->getValue($cell->getContext(), $property);
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     {
40 40
         $options->setDefault('property', null);
41 41
         $options->setAllowedTypes('property', ['string', 'null']);
42
-        $options->setNormalizer('property', function (OptionsResolver $options, $value) {
42
+        $options->setNormalizer('property', function(OptionsResolver $options, $value) {
43 43
             if (null !== $value) {
44 44
                 return $value;
45 45
             }
Please login to merge, or discard this patch.