Completed
Push — master ( 1e60c5...8c1e01 )
by Valentin
18s queued 16s
created
src/Bridge/DataGrid/src/Writer/PostgresQueryWriter.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,11 +31,13 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.