Passed
Branch master (adced5)
by Nicolas
02:52 queued 58s
created
src/Conditions/Statement.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,14 +19,14 @@
 block discarded – undo
19 19
 
20 20
     public function toString(Escaper $escaper): string
21 21
     {
22
-        if($this->isEmpty())
22
+        if ($this->isEmpty())
23 23
         {
24 24
             return '';
25 25
         }
26 26
 
27 27
         $statement = $this->statement;
28 28
 
29
-        if($this->statement instanceof Query)
29
+        if ($this->statement instanceof Query)
30 30
         {
31 31
             $this->statement->setEscaper($escaper);
32 32
 
Please login to merge, or discard this patch.
src/Conditions/AbstractNullComparisonCondition.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 
15 15
     public function __construct($column)
16 16
     {
17
-        if($column instanceof Type)
17
+        if ($column instanceof Type)
18 18
         {
19 19
             $column = $column->getName();
20 20
         }
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 
25 25
     public function toString(Escaper $escaper): string
26 26
     {
27
-        if(empty($this->column))
27
+        if (empty($this->column))
28 28
         {
29 29
             return '';
30 30
         }
Please login to merge, or discard this patch.
src/Conditions/AbstractCondition.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,11 +22,11 @@
 block discarded – undo
22 22
 
23 23
     public function __call(string $methodName, $arguments): Condition
24 24
     {
25
-        $method = '_' . $methodName;
25
+        $method = '_'.$methodName;
26 26
 
27
-        if(method_exists($this, $method))
27
+        if (method_exists($this, $method))
28 28
         {
29
-            if(array_key_exists(0, $arguments))
29
+            if (array_key_exists(0, $arguments))
30 30
             {
31 31
                 return $this->$method($arguments[0]);
32 32
             }
Please login to merge, or discard this patch.
src/Conditions/Binaries/AbstractCompositeCondition.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,12 +23,12 @@  discard block
 block discarded – undo
23 23
 
24 24
     public function toString(Escaper $escaper): string
25 25
     {
26
-        if($this->leftCondition->isEmpty())
26
+        if ($this->leftCondition->isEmpty())
27 27
         {
28 28
             return $this->rightCondition->toString($escaper);
29 29
         }
30 30
 
31
-        if($this->rightCondition->isEmpty())
31
+        if ($this->rightCondition->isEmpty())
32 32
         {
33 33
             return $this->leftCondition->toString($escaper);
34 34
         }
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     {
46 46
         $partCondition = $condition->toString($escaper);
47 47
 
48
-        if($condition instanceof CompositeCondition)
48
+        if ($condition instanceof CompositeCondition)
49 49
         {
50 50
             $partCondition = sprintf('(%s)', $partCondition);
51 51
         }
Please login to merge, or discard this patch.
src/Conditions/AbstractComparisonOperatorCondition.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 
22 22
     public function toString(Escaper $escaper): string
23 23
     {
24
-        if($this->isEmpty())
24
+        if ($this->isEmpty())
25 25
         {
26 26
             return '';
27 27
         }
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
     private function generateRightOperand(Escaper $escaper)
43 43
     {
44
-        if($this->rightOperand instanceof Type)
44
+        if ($this->rightOperand instanceof Type)
45 45
         {
46 46
             return $this->generateFieldOperand($this->rightOperand);
47 47
         }
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     {
63 63
         $value = $this->leftOperand->format($value);
64 64
 
65
-        if($this->leftOperand->isEscapeRequired())
65
+        if ($this->leftOperand->isEscapeRequired())
66 66
         {
67 67
             $value = $escaper->escape($value);
68 68
         }
Please login to merge, or discard this patch.