Passed
Pull Request — 2.1 (#71)
by Vincent
14:21 queued 08:17
created
src/Query/Closure/Parser/BooleanExpressionParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
         try {
72 72
             return new AndFilter($this->parseUnaryBooleanExpression($expr));
73 73
         } catch (Exception $e) {
74
-            throw new RuntimeException('Unsupported expression ' . $expr->getType() . ' in filters. Supported expressions are: binary operations, function calls getter for a boolean, and not expression.');
74
+            throw new RuntimeException('Unsupported expression '.$expr->getType().' in filters. Supported expressions are: binary operations, function calls getter for a boolean, and not expression.');
75 75
         }
76 76
     }
77 77
 
Please login to merge, or discard this patch.
src/Query/Closure/Parser/FunctionCallParser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,14 +55,14 @@
 block discarded – undo
55 55
         $function = $expr->name->toString();
56 56
 
57 57
         if (!isset($this->functions[$function])) {
58
-            throw new RuntimeException('Unsupported function call ' . $function . ' in filters. Supported functions are: ' . implode(', ', array_keys($this->functions)) . '.');
58
+            throw new RuntimeException('Unsupported function call '.$function.' in filters. Supported functions are: '.implode(', ', array_keys($this->functions)).'.');
59 59
         }
60 60
 
61 61
         $args = $expr->args;
62 62
 
63 63
         foreach ($args as $arg) {
64 64
             if ($arg instanceof VariadicPlaceholder || $arg->unpack) {
65
-                throw new RuntimeException('Unsupported unpacking in function call ' . $function . ' in filters.');
65
+                throw new RuntimeException('Unsupported unpacking in function call '.$function.' in filters.');
66 66
             }
67 67
         }
68 68
 
Please login to merge, or discard this patch.
src/Query/Closure/Parser/ValueParser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
             return $this->parseGetter($expr);
82 82
         }
83 83
 
84
-        throw new RuntimeException('Invalid comparison value ' . $expr->getType() . '. Only scalar values, constants, and arrays can be used in filters.');
84
+        throw new RuntimeException('Invalid comparison value '.$expr->getType().'. Only scalar values, constants, and arrays can be used in filters.');
85 85
     }
86 86
 
87 87
     private function parseArray(Expr\Array_ $array): ArrayValue
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         }
112 112
 
113 113
         $className = $this->resolver->resolve($expr->class);
114
-        return new ConstantValue(constant($className . '::' . $expr->name->toString()));
114
+        return new ConstantValue(constant($className.'::'.$expr->name->toString()));
115 115
     }
116 116
 
117 117
     private function parsePropertyFetch(Expr\PropertyFetch $expr): PropertyValue
Please login to merge, or discard this patch.
src/Query/Closure/Parser/EntityAccessorParser.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
                 return $this->parseGetterCall($expr);
46 46
 
47 47
             default:
48
-                throw new RuntimeException('Invalid entity accessor ' . $expr->getType() . '. Only properties and getters can be used in filters.');
48
+                throw new RuntimeException('Invalid entity accessor '.$expr->getType().'. Only properties and getters can be used in filters.');
49 49
         }
50 50
     }
51 51
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
             return $name;
64 64
         }
65 65
 
66
-        return $this->parse($propertyFetch->var) . '.' . $name;
66
+        return $this->parse($propertyFetch->var).'.'.$name;
67 67
     }
68 68
 
69 69
     private function parseGetterCall(Expr\MethodCall $expr): string
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
             return $name;
89 89
         }
90 90
 
91
-        return $this->parse($expr->var) . '.' . $name;
91
+        return $this->parse($expr->var).'.'.$name;
92 92
     }
93 93
 
94 94
     private function checkLeftOperandVariable(Expr\Variable $variable): void
Please login to merge, or discard this patch.