@@ -189,7 +189,7 @@ |
||
189 | 189 | */ |
190 | 190 | public function removeWhiteSpaces() |
191 | 191 | { |
192 | - $this->iterateChildren(function ($child) { |
|
192 | + $this->iterateChildren(function($child) { |
|
193 | 193 | if ($child->containContent()) { |
194 | 194 | $child->setForMeasurement(true); |
195 | 195 |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | { |
67 | 67 | if (!isset($numbers[2])) { |
68 | 68 | // % is not fully supported, so if % appears here for some reason, it is removed. |
69 | - if(!is_numeric($numbers[0])) { |
|
69 | + if (!is_numeric($numbers[0])) { |
|
70 | 70 | $numbers[0] = (string) (float) $numbers[0]; |
71 | 71 | } |
72 | 72 | return bcadd($numbers[0], $numbers[1], static::$scale); |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | return bcsub($numbers[0], $numbers[1], static::$scale); |
94 | 94 | } |
95 | 95 | $result = $numbers[0]; |
96 | - for ($i = 1,$len = \count($numbers); $i < $len; ++$i) { |
|
96 | + for ($i = 1, $len = \count($numbers); $i < $len; ++$i) { |
|
97 | 97 | $result = bcsub($result, $numbers[$i], static::$scale); |
98 | 98 | } |
99 | 99 | |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | return '0'; |
140 | 140 | } |
141 | 141 | $result = $numbers[0]; |
142 | - for ($i = 1,$len = \count($numbers); $i < $len; ++$i) { |
|
142 | + for ($i = 1, $len = \count($numbers); $i < $len; ++$i) { |
|
143 | 143 | if ((float) $numbers[$i] === (float) 0) { |
144 | 144 | return '0'; |
145 | 145 | } |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | public static function min(string ...$numbers) |
189 | 189 | { |
190 | 190 | $result = $numbers[0]; |
191 | - for ($i = 1,$len = \count($numbers); $i < $len; ++$i) { |
|
191 | + for ($i = 1, $len = \count($numbers); $i < $len; ++$i) { |
|
192 | 192 | $result = 1 === bccomp($result, $numbers[$i], static::$scale) ? $numbers[$i] : $result; |
193 | 193 | } |
194 | 194 |