Passed
Pull Request — master (#10)
by Alex
13:26
created
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.
test/unit/Filter/IsMemberOfTest.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/AndXTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      *
47 47
      * @throws FilterException
48 48
      */
49
-    public function testFilterWillApplyTheProvidedConditions(WhereType|string|null $whereType): void
49
+    public function testFilterWillApplyTheProvidedConditions(WhereType | string | null $whereType): void
50 50
     {
51 51
         $criteria = [
52 52
             'conditions' => [
@@ -143,8 +143,8 @@  discard block
 block discarded – undo
143 143
     {
144 144
         return [
145 145
             [null],
146
-            [WhereType::AND],
147
-            [WhereType::AND->value],
146
+            [WhereType:: AND ],
147
+            [WhereType:: AND ->value],
148 148
         ];
149 149
     }
150 150
 }
Please login to merge, or discard this patch.
test/unit/Sort/FieldTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
      */
110 110
     public function testSortWillApplySortCriteria(
111 111
         string $field,
112
-        OrderByDirection|string|null $direction,
112
+        OrderByDirection | string | null $direction,
113 113
         ?string $alias = null
114 114
     ): void {
115 115
         $sort = new Field();
Please login to merge, or discard this patch.
test/unit/QueryBuilderTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
      * @dataProvider getOrderByWillProxyToInternalQueryBuilderData
352 352
      */
353 353
     public function testOrderByWillProxyToInternalQueryBuilder(
354
-        Expr\OrderBy|string $sort,
354
+        Expr\OrderBy | string $sort,
355 355
         ?OrderByDirection $direction = null
356 356
     ): void {
357 357
         $queryBuilder = new QueryBuilder($this->doctrineQueryBuilder);
@@ -368,7 +368,7 @@  discard block
 block discarded – undo
368 368
      * @dataProvider getOrderByWillProxyToInternalQueryBuilderData
369 369
      */
370 370
     public function testAddOrderByWillProxyToInternalQueryBuilder(
371
-        Expr\OrderBy|string $sort,
371
+        Expr\OrderBy | string $sort,
372 372
         ?OrderByDirection $direction = null
373 373
     ): void {
374 374
         $queryBuilder = new QueryBuilder($this->doctrineQueryBuilder);
Please login to merge, or discard this patch.
src/Filter/AbstractComposite.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         $compositeExpr = $this->createComposite($queryBuilder);
43 43
         $compositeExpr->addMultiple($parts['where']->getParts());
44 44
 
45
-        if ($this->getWhereType($criteria) === WhereType::AND) {
45
+        if ($this->getWhereType($criteria) === WhereType:: AND ) {
46 46
             $queryBuilder->andWhere($compositeExpr);
47 47
         } else {
48 48
             $queryBuilder->orWhere($compositeExpr);
Please login to merge, or discard this patch.
src/Filter/AbstractExpression.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 
38 38
         $expression = $this->createExpression($queryBuilder->expr(), $fieldName, $paramName, $queryAlias);
39 39
 
40
-        if ($this->getWhereType($criteria) === WhereType::AND) {
40
+        if ($this->getWhereType($criteria) === WhereType:: AND ) {
41 41
             $queryBuilder->andWhere($expression);
42 42
         } else {
43 43
             $queryBuilder->orWhere($expression);
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
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
             ':' . $toParamName
47 47
         );
48 48
 
49
-        if ($this->getWhereType($criteria) === WhereType::AND) {
49
+        if ($this->getWhereType($criteria) === WhereType:: AND ) {
50 50
             $queryBuilder->andWhere($expression);
51 51
         } else {
52 52
             $queryBuilder->orWhere($expression);
Please login to merge, or discard this patch.