@@ -31,11 +31,13 @@ discard block |
||
31 | 31 | */ |
32 | 32 | public function write($source, SpecificationInterface $specification, Compiler $compiler) |
33 | 33 | { |
34 | - if (!$this->targetAcceptable($source)) { |
|
34 | + if (!$this->targetAcceptable($source)) |
|
35 | + { |
|
35 | 36 | return null; |
36 | 37 | } |
37 | 38 | |
38 | - if ($specification instanceof Specification\Filter\Postgres\ILike) { |
|
39 | + if ($specification instanceof Specification\Filter\Postgres\ILike) |
|
40 | + { |
|
39 | 41 | return $source->where( |
40 | 42 | $specification->getExpression(), |
41 | 43 | 'ILIKE', |
@@ -79,7 +81,8 @@ discard block |
||
79 | 81 | */ |
80 | 82 | protected function fetchValue($value) |
81 | 83 | { |
82 | - if ($value instanceof Specification\ValueInterface) { |
|
84 | + if ($value instanceof Specification\ValueInterface) |
|
85 | + { |
|
83 | 86 | throw new CompilerException('Value expects user input, none given'); |
84 | 87 | } |
85 | 88 |