@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | {
|
| 154 | 154 | $max = null; |
| 155 | 155 | $args = func_get_args(); |
| 156 | - if(is_array($args[0])) $args = $args[0]; |
|
| 156 | + if (is_array($args[0])) $args = $args[0]; |
|
| 157 | 157 | foreach ($args as $value) {
|
| 158 | 158 | if (null === $max) {
|
| 159 | 159 | $max = $value; |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | {
|
| 176 | 176 | $min = null; |
| 177 | 177 | $args = func_get_args(); |
| 178 | - if(is_array($args[0])) $args = $args[0]; |
|
| 178 | + if (is_array($args[0])) $args = $args[0]; |
|
| 179 | 179 | foreach ($args as $value) {
|
| 180 | 180 | if (null === $min) {
|
| 181 | 181 | $min = $value; |
@@ -198,8 +198,7 @@ discard block |
||
| 198 | 198 | {
|
| 199 | 199 | $mult = bcpow(10, abs($places)); |
| 200 | 200 | return $places < 0 ? |
| 201 | - bcmul(BC::floor(bcdiv($value, $mult)), $mult) : |
|
| 202 | - bcdiv(BC::floor(bcmul($value, $mult)), $mult); |
|
| 201 | + bcmul(BC::floor(bcdiv($value, $mult)), $mult) : bcdiv(BC::floor(bcmul($value, $mult)), $mult); |
|
| 203 | 202 | } |
| 204 | 203 | |
| 205 | 204 | /** |
@@ -211,8 +210,7 @@ discard block |
||
| 211 | 210 | {
|
| 212 | 211 | $mult = bcpow(10, abs($places)); |
| 213 | 212 | return $places < 0 ? |
| 214 | - bcmul(BC::ceil(bcdiv($value, $mult)), $mult) : |
|
| 215 | - bcdiv(BC::ceil(bcmul($value, $mult)), $mult); |
|
| 213 | + bcmul(BC::ceil(bcdiv($value, $mult)), $mult) : bcdiv(BC::ceil(bcmul($value, $mult)), $mult); |
|
| 216 | 214 | } |
| 217 | 215 | |
| 218 | 216 | } |
@@ -153,7 +153,9 @@ discard block |
||
| 153 | 153 | {
|
| 154 | 154 | $max = null; |
| 155 | 155 | $args = func_get_args(); |
| 156 | - if(is_array($args[0])) $args = $args[0]; |
|
| 156 | + if(is_array($args[0])) {
|
|
| 157 | + $args = $args[0]; |
|
| 158 | + } |
|
| 157 | 159 | foreach ($args as $value) {
|
| 158 | 160 | if (null === $max) {
|
| 159 | 161 | $max = $value; |
@@ -175,7 +177,9 @@ discard block |
||
| 175 | 177 | {
|
| 176 | 178 | $min = null; |
| 177 | 179 | $args = func_get_args(); |
| 178 | - if(is_array($args[0])) $args = $args[0]; |
|
| 180 | + if(is_array($args[0])) {
|
|
| 181 | + $args = $args[0]; |
|
| 182 | + } |
|
| 179 | 183 | foreach ($args as $value) {
|
| 180 | 184 | if (null === $min) {
|
| 181 | 185 | $min = $value; |