Completed
Pull Request — master (#75)
by Daniel
04:02 queued 01:43
created
lib/Filter/NumberFilter.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\Cell;
6 6
 
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/Filter/DateFilter.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\Cell;
6 6
 
Please login to merge, or discard this patch.
lib/FilterData.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\Cell;
6 6
 
Please login to merge, or discard this patch.
lib/Filter/ChoiceFilter.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\Cell;
6 6
 
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
 
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
             if (false === $filterForm->isValid()) {
44 44
                 throw new \InvalidArgumentException(sprintf(
45
-                    'Form is invalid: ' . $filterForm->getErrorsAsString()
45
+                    'Form is invalid: '.$filterForm->getErrorsAsString()
46 46
                 ));
47 47
             }
48 48
         }
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
                     $criteria['criteria'] = $query->getExpression();
65 65
                 } else {
66 66
                     // filter and user criterias need to be combined
67
-                    $criteria['criteria'] = new Composite(Composite::AND, [$query->getExpression(), $criteria['criteria']]);
67
+                    $criteria['criteria'] = new Composite(Composite:: AND , [$query->getExpression(), $criteria['criteria']]);
68 68
                 }
69 69
             }
70 70
         }
Please login to merge, or discard this patch.