mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-02 20:25:28 +00:00
Various code cleanup.
This commit is contained in:
@@ -70,7 +70,7 @@ class Amount implements ConverterInterface
|
||||
if (is_null($decimal)) {
|
||||
Log::debug('Decimal is still NULL, probably number with >2 decimals. Search for a dot.');
|
||||
$res = strrpos($value, '.');
|
||||
if (!($res === false)) {
|
||||
if (!(false === $res)) {
|
||||
// blandly assume this is the one.
|
||||
Log::debug(sprintf('Searched from the left for "." in amount "%s", assume this is the decimal sign.', $value));
|
||||
$decimal = '.';
|
||||
|
||||
Reference in New Issue
Block a user