Passed
Pull Request — master (#20)
by Alessandro
02:42
created
src/Model/Table/CurrencyratesTable.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,12 +44,12 @@
 block discarded – undo
44 44
             ->maxLength('from', 5)
45 45
             ->notEmpty('from');
46 46
 
47
-    	$validator
47
+        $validator
48 48
             ->scalar('to')
49 49
             ->maxLength('to', 5)
50 50
             ->notEmpty('to');
51 51
 
52
-    	$validator
52
+        $validator
53 53
             ->scalar('rate')
54 54
             ->maxLength('rate', 10)
55 55
             ->notEmpty('rate');
Please login to merge, or discard this patch.
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   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@
 block discarded – undo
159 159
             $fraction = ($number - $n);
160 160
             if ($fraction != 0) {
161 161
                 $step = 1 / $this->round;
162
-                $decimal = (((int)($fraction / $step) + 1) * $step);
162
+                $decimal = (((int) ($fraction / $step) + 1) * $step);
163 163
                 $number = $n + $decimal;
164 164
             }
165 165
         }
Please login to merge, or discard this patch.