Passed
Push — master ( 515b37...de0f46 )
by Alex
01:35 queued 12s
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   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
             ->method('__toString')
101 101
             ->willReturn($expressionString);
102 102
 
103
-        $methodName = (!isset($criteria['where']) || WhereType::AND === $criteria['where'])
103
+        $methodName = (!isset($criteria['where']) || WhereType:: AND === $criteria['where'])
104 104
             ? 'andWhere'
105 105
             : 'orWhere';
106 106
 
Please login to merge, or discard this patch.
test/unit/Filter/IsBetweenTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
                 $isBetween
146 146
             );
147 147
 
148
-        if (empty($criteria['where']) || WhereType::AND === $criteria['where']) {
148
+        if (empty($criteria['where']) || WhereType:: AND === $criteria['where']) {
149 149
             $this->queryBuilder->expects($this->once())
150 150
                 ->method('andWhere')
151 151
                 ->with($isBetween);
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
                 [
193 193
                     'to'    => '2021-01-01 00:00:00',
194 194
                     'from'  => '2021-02-01 00:00:00',
195
-                    'where' => WhereType::AND,
195
+                    'where' => WhereType:: AND ,
196 196
                 ],
197 197
             ],
198 198
 
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
                 [
201 201
                     'to'    => '2021-01-01 00:00:00',
202 202
                     'from'  => '2021-02-01 00:00:00',
203
-                    'where' => WhereType::OR,
203
+                    'where' => WhereType:: OR ,
204 204
                 ],
205 205
             ],
206 206
 
Please login to merge, or discard this patch.
src/Filter/AbstractJoin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
         if (is_string($conditions)) {
60 60
             $condition = $conditions;
61 61
         } elseif (is_object($conditions)) {
62
-            $condition = (string)$conditions;
62
+            $condition = (string) $conditions;
63 63
         } elseif (is_array($conditions) && !empty($conditions)) {
64 64
             $tempQueryBuilder = $queryBuilder->createQueryBuilder();
65 65
 
Please login to merge, or discard this patch.
src/Filter/IsNotLike.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,6 +22,6 @@
 block discarded – undo
22 22
      */
23 23
     protected function createExpression(Expr $expr, string $fieldName, string $parameterName, string $alias): string
24 24
     {
25
-        return (string)$expr->notLike($alias . '.' . $fieldName, ':' . $parameterName);
25
+        return (string) $expr->notLike($alias . '.' . $fieldName, ':' . $parameterName);
26 26
     }
27 27
 }
Please login to merge, or discard this patch.
src/Filter/LeftJoin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
             $fieldName,
36 36
             $alias,
37 37
             $joinType,
38
-            isset($condition) ? (string)$condition : null,
38
+            isset($condition) ? (string) $condition : null,
39 39
             $indexBy
40 40
         );
41 41
     }
Please login to merge, or discard this patch.
src/Filter/IsLike.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,6 +22,6 @@
 block discarded – undo
22 22
      */
23 23
     protected function createExpression(Expr $expr, string $fieldName, string $parameterName, string $alias): string
24 24
     {
25
-        return (string)$expr->like($alias . '.' . $fieldName, ':' . $parameterName);
25
+        return (string) $expr->like($alias . '.' . $fieldName, ':' . $parameterName);
26 26
     }
27 27
 }
Please login to merge, or discard this patch.
src/Filter/Typecaster.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -57,14 +57,14 @@
 block discarded – undo
57 57
         switch ($type) {
58 58
             case 'integer':
59 59
             case 'smallint':
60
-                return (int)$value;
60
+                return (int) $value;
61 61
             case 'boolean':
62
-                return (bool)$value;
62
+                return (bool) $value;
63 63
             case 'decimal':
64 64
             case 'float':
65
-                return (float)$value;
65
+                return (float) $value;
66 66
             case 'string':
67
-                return (string)$value;
67
+                return (string) $value;
68 68
         }
69 69
 
70 70
         $castDates = !isset($options['cast_dates']) || $options['cast_dates'];
Please login to merge, or discard this patch.
src/Filter/IsBetween.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
             ':' . $toParamName
51 51
         );
52 52
 
53
-        if (!isset($criteria['where']) || WhereType::AND === $criteria['where']) {
53
+        if (!isset($criteria['where']) || WhereType:: AND === $criteria['where']) {
54 54
             $queryBuilder->andWhere($expression);
55 55
         } else {
56 56
             $queryBuilder->orWhere($expression);
Please login to merge, or discard this patch.