forked from LiveCarta/PayPal-PHP-SDK
[PSR] Fixed library source
- Using `php-cs-fixer` tool.
This commit is contained in:
@@ -53,7 +53,7 @@ class FormatConverter
|
||||
throw new \InvalidArgumentException("value cannot have decimals for $currency currency");
|
||||
}
|
||||
$decimals = $currencyDecimals[$currency];
|
||||
} else if (strpos($value, ".") === false) {
|
||||
} elseif (strpos($value, ".") === false) {
|
||||
// Check if value has decimal values. If not no need to assign 2 decimals with .00 at the end
|
||||
$decimals = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user