Passed
Pull Request — master (#16)
by
unknown
03:37
created
src/View/Helper/CurrencyConverterHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -157,8 +157,8 @@
 block discarded – undo
157 157
             $n = floor($number);
158 158
             $fraction = ($number - $n);
159 159
             if ($fraction != 0) {
160
-                $step = 1/$this->round;
161
-                $decimal = (((int)($fraction/$step) + 1) * $step);
160
+                $step = 1 / $this->round;
161
+                $decimal = (((int) ($fraction / $step) + 1) * $step);
162 162
                 $number = $n + $decimal;
163 163
             }
164 164
         }
Please login to merge, or discard this patch.
src/Controller/Component/CurrencyConverterComponent.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -157,8 +157,8 @@
 block discarded – undo
157 157
             $n = floor($number);
158 158
             $fraction = ($number - $n);
159 159
             if ($fraction != 0) {
160
-                $step = 1/$this->round;
161
-                $decimal = (((int)($fraction/$step) + 1) * $step);
160
+                $step = 1 / $this->round;
161
+                $decimal = (((int) ($fraction / $step) + 1) * $step);
162 162
                 $number = $n + $decimal;
163 163
             }
164 164
         }
Please login to merge, or discard this patch.