Passed
Pull Request — master (#4)
by Alex
03:40
created
test/unit/Filter/AndXTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@
 block discarded – undo
143 143
     {
144 144
         return [
145 145
             [null],
146
-            [WhereType::AND],
146
+            [WhereType:: AND ],
147 147
         ];
148 148
     }
149 149
 }
Please login to merge, or discard this patch.
test/unit/Filter/AbstractComparisonTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -87,21 +87,21 @@
 block discarded – undo
87 87
                 ->willReturn($alias);
88 88
         }
89 89
 
90
-        $expressionString = $alias . '.' . $fieldName . ' ' . $this->expressionSymbol;
90
+        $expressionString = $alias.'.'.$fieldName.' '.$this->expressionSymbol;
91 91
         if (array_key_exists('value', $criteria)) {
92
-            $expressionString .=  ' :param_name';
92
+            $expressionString .= ' :param_name';
93 93
         }
94 94
 
95 95
         $expr->expects($this->once())
96 96
             ->method($this->expressionMethodName)
97
-            ->with($alias . '.' . $fieldName)
97
+            ->with($alias.'.'.$fieldName)
98 98
             ->willReturn($comparisonExpr);
99 99
 
100 100
         $comparisonExpr->expects($this->once())
101 101
             ->method('__toString')
102 102
             ->willReturn($expressionString);
103 103
 
104
-        $methodName = (!isset($criteria['where']) || WhereType::AND === $criteria['where'])
104
+        $methodName = (!isset($criteria['where']) || WhereType:: AND === $criteria['where'])
105 105
             ? 'andWhere'
106 106
             : 'orWhere';
107 107
 
Please login to merge, or discard this patch.
src/Filter/Typecaster.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -56,17 +56,17 @@
 block discarded – undo
56 56
         switch ($type) {
57 57
             case 'integer':
58 58
             case 'smallint':
59
-                return (int)$value;
59
+                return (int) $value;
60 60
             case 'boolean':
61
-                return (bool)$value;
61
+                return (bool) $value;
62 62
             case 'decimal':
63 63
             case 'float':
64
-                return (float)$value;
64
+                return (float) $value;
65 65
             case 'string':
66
-                return (string)$value;
66
+                return (string) $value;
67 67
         }
68 68
 
69
-        $castDates = isset($options['cast_dates']) ? (bool)$options['cast_dates'] : true;
69
+        $castDates = isset($options['cast_dates']) ? (bool) $options['cast_dates'] : true;
70 70
         $dateTypes = [
71 71
             'date',
72 72
             'date_immutable',
Please login to merge, or discard this patch.
test/unit/Filter/IsBetweenTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -138,8 +138,8 @@  discard block
 block discarded – undo
138 138
             ->method('expr')
139 139
             ->willReturn($expr);
140 140
 
141
-        $fromParam = $alias . 'abc123';
142
-        $toParam = $alias . 'zyx999';
141
+        $fromParam = $alias.'abc123';
142
+        $toParam = $alias.'zyx999';
143 143
 
144 144
         $filter->expects($this->exactly(2))
145 145
             ->method('createParamName')
@@ -151,18 +151,18 @@  discard block
 block discarded – undo
151 151
                 $toParam
152 152
             );
153 153
 
154
-        $isBetween = $alias . '.' . $fieldName . ' BETWEEN ' . $fromParam . ' AND ' . $toParam;
154
+        $isBetween = $alias.'.'.$fieldName.' BETWEEN '.$fromParam.' AND '.$toParam;
155 155
         $expr->expects($this->once())
156 156
             ->method('between')
157 157
             ->with(
158
-                $alias . '.' . $fieldName,
159
-                ':' . $fromParam,
160
-                ':' . $toParam
158
+                $alias.'.'.$fieldName,
159
+                ':'.$fromParam,
160
+                ':'.$toParam
161 161
             )->willReturn(
162 162
                 $isBetween
163 163
             );
164 164
 
165
-        if (null === $whereType || WhereType::AND === $whereType) {
165
+        if (null === $whereType || WhereType:: AND === $whereType) {
166 166
             $this->queryBuilder->expects($this->once())
167 167
                 ->method('andWhere')
168 168
                 ->with($isBetween);
Please login to merge, or discard this patch.