@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | return $this->walkComposite($expr); |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | - throw new \RuntimeException('Unknown Expression: ' . get_class($expr)); |
|
| 48 | + throw new \RuntimeException('Unknown Expression: '.get_class($expr)); |
|
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | public function getParameters() |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | return $this->expressionFactory->isNotNull($field, $this->registerParameter($field, $value)); |
| 100 | 100 | } |
| 101 | 101 | |
| 102 | - throw new \RuntimeException('Unknown comparator: ' . $comparison->getComparator()); |
|
| 102 | + throw new \RuntimeException('Unknown comparator: '.$comparison->getComparator()); |
|
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | /** |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | $ormExpressions[] = $this->dispatch($childExpression); |
| 115 | 115 | } |
| 116 | 116 | |
| 117 | - $method = $expression->getType() == Composite::AND ? 'andX' : 'orX'; |
|
| 117 | + $method = $expression->getType() == Composite::AND? 'andX' : 'orX'; |
|
| 118 | 118 | |
| 119 | 119 | return call_user_func_array([$this->expressionFactory, $method], $ormExpressions); |
| 120 | 120 | } |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | */ |
| 127 | 127 | private function getField($field): string |
| 128 | 128 | { |
| 129 | - return $this->sourceAlias . '.' . $field; |
|
| 129 | + return $this->sourceAlias.'.'.$field; |
|
| 130 | 130 | } |
| 131 | 131 | |
| 132 | 132 | /** |
@@ -149,6 +149,6 @@ discard block |
||
| 149 | 149 | { |
| 150 | 150 | $this->parameters[$name] = $value; |
| 151 | 151 | |
| 152 | - return ':' . $name; |
|
| 152 | + return ':'.$name; |
|
| 153 | 153 | } |
| 154 | 154 | } |
@@ -94,21 +94,21 @@ discard block |
||
| 94 | 94 | [ |
| 95 | 95 | 'null', |
| 96 | 96 | null, |
| 97 | - function ($expr) { |
|
| 97 | + function($expr) { |
|
| 98 | 98 | $this->assertEquals('title IS NULL', $expr); |
| 99 | 99 | }, |
| 100 | 100 | ], |
| 101 | 101 | [ |
| 102 | 102 | 'not_null', |
| 103 | 103 | null, |
| 104 | - function ($expr) { |
|
| 104 | + function($expr) { |
|
| 105 | 105 | $this->assertEquals('title IS NOT NULL', $expr); |
| 106 | 106 | }, |
| 107 | 107 | ], |
| 108 | 108 | [ |
| 109 | 109 | 'in', |
| 110 | 110 | [1, 2, 3], |
| 111 | - function ($expr) { |
|
| 111 | + function($expr) { |
|
| 112 | 112 | $this->assertInstanceOf(Func::class, $expr); |
| 113 | 113 | $this->assertEquals('title IN', $expr->getName()); |
| 114 | 114 | }, |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | [ |
| 117 | 117 | 'nin', |
| 118 | 118 | [1, 2, 3], |
| 119 | - function ($expr) { |
|
| 119 | + function($expr) { |
|
| 120 | 120 | $this->assertInstanceOf(Func::class, $expr); |
| 121 | 121 | $this->assertEquals('title NOT IN', $expr->getName()); |
| 122 | 122 | }, |