Passed
Branch master (e30549)
by noitran
04:00
created
src/ExprQueue.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
      */
20 20
     public function enqueue($exprClass): ExprQueue
21 21
     {
22
-        if (! $exprClass instanceof ExprInterface) {
22
+        if (!$exprClass instanceof ExprInterface) {
23 23
             throw new ExpressionException(sprintf(
24 24
                 'The $exprClass variable is not an instance of %s.',
25 25
                 ExprInterface::class
Please login to merge, or discard this patch.
src/Processors/EloquentProcessor.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
                 return $this->applyComparison($exprClass);
81 81
             }
82 82
 
83
-            if (in_array($exprClass->getExpression(), ['$in', '$notIn', '$between'], true)) {
83
+            if (in_array($exprClass->getExpression(), [ '$in', '$notIn', '$between' ], true)) {
84 84
                 return $this->applyIfValueIsArray($exprClass);
85 85
             }
86 86
 
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      */
100 100
     protected function applyComparison(ExprInterface $exprClass): Builder
101 101
     {
102
-        $method = self::$methodMap[$exprClass->getExpression()];
102
+        $method = self::$methodMap[ $exprClass->getExpression() ];
103 103
 
104 104
         return $this->getBuilder()->{$method}(
105 105
             $exprClass->getColumn(),
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
      */
116 116
     protected function applyIfValueIsArray(ExprInterface $exprClass): Builder
117 117
     {
118
-        $method = self::$methodMap[$exprClass->getExpression()];
118
+        $method = self::$methodMap[ $exprClass->getExpression() ];
119 119
 
120 120
         return $this->getBuilder()->{$method}(
121 121
             $exprClass->getColumn(),
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
      */
131 131
     protected function applyOr(ExprInterface $exprClass): Builder
132 132
     {
133
-        return $this->getBuilder()->where(function (Builder $builder) use ($exprClass) {
133
+        return $this->getBuilder()->where(function(Builder $builder) use ($exprClass) {
134 134
             $values = $exprClass->getValue();
135 135
 
136 136
             foreach ($values as $value) {
Please login to merge, or discard this patch.