Test Setup Failed
Pull Request — master (#4)
by Alex
06:07
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   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -121,8 +121,8 @@  discard block
 block discarded – undo
121 121
             ->method('expr')
122 122
             ->willReturn($expr);
123 123
 
124
-        $fromParam = $alias . 'abc123';
125
-        $toParam = $alias . 'zyx999';
124
+        $fromParam = $alias.'abc123';
125
+        $toParam = $alias.'zyx999';
126 126
 
127 127
         $filter->expects($this->exactly(2))
128 128
             ->method('createParamName')
@@ -134,13 +134,13 @@  discard block
 block discarded – undo
134 134
                 $toParam
135 135
             );
136 136
 
137
-        $isBetween = $alias . '.' . $fieldName . ' BETWEEN ' . $fromParam . ' AND ' . $toParam;
137
+        $isBetween = $alias.'.'.$fieldName.' BETWEEN '.$fromParam.' AND '.$toParam;
138 138
         $expr->expects($this->once())
139 139
             ->method('between')
140 140
             ->with(
141
-                $alias . '.' . $fieldName,
142
-                ':' . $fromParam,
143
-                ':' . $toParam
141
+                $alias.'.'.$fieldName,
142
+                ':'.$fromParam,
143
+                ':'.$toParam
144 144
             )->willReturn(
145 145
                 $isBetween
146 146
             );
@@ -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/IsNotIn.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->notIn($alias . '.' . $fieldName, ':' . $parameterName);
25
+        return (string) $expr->notIn($alias.'.'.$fieldName, ':'.$parameterName);
26 26
     }
27 27
 }
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/IsIn.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->in($alias . '.' . $fieldName, ':' . $parameterName);
25
+        return (string) $expr->in($alias.'.'.$fieldName, ':'.$parameterName);
26 26
     }
27 27
 }
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/AbstractJoin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         if (is_string($conditions)) {
60 60
             $condition = $conditions;
61 61
         } elseif (is_object($condition)) {
62
-            $condition = (string)$conditions;
62
+            $condition = (string) $conditions;
63 63
         } elseif (is_array($conditions) && !empty($conditions)) {
64 64
             $tempQueryBuilder = $queryBuilder->createQueryBuilder();
65 65
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
         $parentAlias = $criteria['parent_alias'] ?? 'entity';
76 76
         $this->applyJoin(
77 77
             $queryBuilder,
78
-            $parentAlias . '.' . $fieldName,
78
+            $parentAlias.'.'.$fieldName,
79 79
             $queryAlias,
80 80
             $condition,
81 81
             $criteria['join_type'] ?? Join::WITH,
Please login to merge, or discard this patch.