Passed
Pull Request — master (#9)
by Alex
12:47
created
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/QueryFilterManagerInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
      * @throws QueryFilterManagerException
22 22
      */
23 23
     public function filter(
24
-        DoctrineQueryBuilder|QueryBuilderInterface $queryBuilder,
24
+        DoctrineQueryBuilder | QueryBuilderInterface $queryBuilder,
25 25
         string $entityName,
26 26
         array $criteria
27 27
     ): DoctrineQueryBuilder;
Please login to merge, or discard this patch.
src/QueryFilterManager.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      * @throws QueryFilterManagerException
40 40
      */
41 41
     public function filter(
42
-        DoctrineQueryBuilder|QueryBuilderInterface $queryBuilder,
42
+        DoctrineQueryBuilder | QueryBuilderInterface $queryBuilder,
43 43
         string $entityName,
44 44
         array $criteria
45 45
     ): DoctrineQueryBuilder {
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     private function applyFilter(
68 68
         QueryBuilderInterface $queryBuilder,
69 69
         MetadataInterface $metadata,
70
-        array|FilterInterface $data
70
+        array | FilterInterface $data
71 71
     ): void {
72 72
         if ($data instanceof FilterInterface) {
73 73
             $filter = $data;
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
     private function applySort(
127 127
         QueryBuilderInterface $queryBuilder,
128 128
         MetadataInterface $metadata,
129
-        array|SortInterface $data
129
+        array | SortInterface $data
130 130
     ): void {
131 131
         if ($data instanceof SortInterface) {
132 132
             $sort = $data;
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
         }
171 171
     }
172 172
 
173
-    private function getQueryBuilder(QueryBuilderInterface|DoctrineQueryBuilder $queryBuilder): QueryBuilderInterface
173
+    private function getQueryBuilder(QueryBuilderInterface | DoctrineQueryBuilder $queryBuilder): QueryBuilderInterface
174 174
     {
175 175
         if ($queryBuilder instanceof DoctrineQueryBuilder) {
176 176
             $queryBuilder = new QueryBuilder($queryBuilder, $queryBuilder->getRootAliases()[0] ?? '');
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
@@ -10,6 +10,6 @@
 block discarded – undo
10 10
 {
11 11
     protected function createExpression(Expr $expr, string $fieldName, string $parameterName, string $alias): string
12 12
     {
13
-        return (string)$expr->in($alias . '.' . $fieldName, ':' . $parameterName);
13
+        return (string) $expr->in($alias . '.' . $fieldName, ':' . $parameterName);
14 14
     }
15 15
 }
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
@@ -10,6 +10,6 @@
 block discarded – undo
10 10
 {
11 11
     protected function createExpression(Expr $expr, string $fieldName, string $parameterName, string $alias): string
12 12
     {
13
-        return (string)$expr->notLike($alias . '.' . $fieldName, ':' . $parameterName);
13
+        return (string) $expr->notLike($alias . '.' . $fieldName, ':' . $parameterName);
14 14
     }
15 15
 }
Please login to merge, or discard this patch.
src/Filter/IsEqual.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,6 +10,6 @@
 block discarded – undo
10 10
 {
11 11
     protected function createExpression(Expr $expr, string $fieldName, string $parameterName, string $alias): string
12 12
     {
13
-        return (string)$expr->eq($alias . '.' . $fieldName, ':' . $parameterName);
13
+        return (string) $expr->eq($alias . '.' . $fieldName, ':' . $parameterName);
14 14
     }
15 15
 }
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
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
             $fieldName,
32 32
             $alias,
33 33
             $joinConditionType,
34
-            isset($condition) ? (string)$condition : null,
34
+            isset($condition) ? (string) $condition : null,
35 35
             $indexBy
36 36
         );
37 37
     }
Please login to merge, or discard this patch.