mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-25 13:10:35 +00:00
Various code cleanup.
This commit is contained in:
@@ -226,7 +226,6 @@ class ImportTransaction
|
||||
* Calculate the amount of this transaction.
|
||||
*
|
||||
* @return string
|
||||
* @throws FireflyException
|
||||
*/
|
||||
public function calculateAmount(): string
|
||||
{
|
||||
@@ -258,7 +257,7 @@ class ImportTransaction
|
||||
if ($conversion === -1) {
|
||||
$result = app('steam')->negative($result);
|
||||
}
|
||||
if ($conversion === 1) {
|
||||
if (1 === $conversion) {
|
||||
$result = app('steam')->positive($result);
|
||||
}
|
||||
Log::debug(sprintf('convertedAmount after conversion is %s', $result));
|
||||
@@ -301,7 +300,7 @@ class ImportTransaction
|
||||
if ($conversion === -1) {
|
||||
$result = app('steam')->negative($result);
|
||||
}
|
||||
if ($conversion === 1) {
|
||||
if (1 === $conversion) {
|
||||
$result = app('steam')->positive($result);
|
||||
}
|
||||
Log::debug(sprintf('Foreign amount after conversion is %s', $result));
|
||||
|
||||
Reference in New Issue
Block a user