Completed
Push — master ( 02db1d...96e327 )
by Daniel
02:23 queued 15s
created
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.