Completed
Push — master ( 610136...82575c )
by De Cramer
06:15 queued 03:00
created
src/Oliverde8/Component/RuleEngine/Rules/Condition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         $valueToCmp = $this->applyRules($rowData, $transformedData, $options['if'], $options);
23 23
         $value = $this->applyRules($rowData, $transformedData, $options['value'], $options);
24 24
 
25
-        $result = $this->compare($valueToCmp, $value, $options['operation'])? $options['then'] : $options['else'];
25
+        $result = $this->compare($valueToCmp, $value, $options['operation']) ? $options['then'] : $options['else'];
26 26
 
27 27
         return $this->applyRules($rowData, $transformedData, $result, $options);
28 28
     }
Please login to merge, or discard this patch.
src/Oliverde8/Component/RuleEngine/Tests/Rules/ConditionTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -78,9 +78,9 @@
 block discarded – undo
78 78
     public function constraintsAndResults()
79 79
     {
80 80
         return [
81
-            [['if' => 1, 'value' => 2,      'operation' => 'eq', ], 'false'],
82
-            [['if' => 1, 'value' => 1,      'operation' => 'eq', ], 'true'],
83
-            [['if' => 1, 'value' => 1,      'operation' => 'neq',], 'false'],
81
+            [['if' => 1, 'value' => 2, 'operation' => 'eq', ], 'false'],
82
+            [['if' => 1, 'value' => 1, 'operation' => 'eq', ], 'true'],
83
+            [['if' => 1, 'value' => 1, 'operation' => 'neq', ], 'false'],
84 84
             [['if' => 1, 'value' => [1, 2], 'operation' => 'in', ], 'true'],
85 85
             [['if' => 3, 'value' => [1, 2], 'operation' => 'in', ], 'false'],
86 86
         ];
Please login to merge, or discard this patch.