mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Some code cleanup.
This commit is contained in:
@@ -111,9 +111,9 @@ class Amount
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $symbol
|
||||
* @param float $amount
|
||||
* @param bool $coloured
|
||||
* @param string $symbol
|
||||
* @param float|string $amount
|
||||
* @param bool $coloured
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
@@ -323,6 +323,7 @@ class TestData
|
||||
}
|
||||
|
||||
/**
|
||||
* @param User $user
|
||||
* @param Carbon $date
|
||||
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||
*/
|
||||
@@ -651,9 +652,10 @@ class TestData
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $description
|
||||
* @param User $user
|
||||
* @param string $description
|
||||
* @param Carbon $date
|
||||
* @param $amount
|
||||
* @param string $amount
|
||||
*
|
||||
* @return TransactionJournal
|
||||
*/
|
||||
@@ -848,6 +850,7 @@ class TestData
|
||||
}
|
||||
|
||||
/**
|
||||
* @param User $user
|
||||
* @param Carbon $date
|
||||
*
|
||||
* @return TransactionJournal
|
||||
@@ -985,7 +988,7 @@ class TestData
|
||||
* @param Carbon $date
|
||||
* @param string $amount
|
||||
*
|
||||
* @return static
|
||||
* @return TransactionJournal|static
|
||||
*/
|
||||
public static function createWater(User $user, string $description, Carbon $date, string $amount): TransactionJournal
|
||||
{
|
||||
|
@@ -184,7 +184,7 @@ class Steam
|
||||
|
||||
if (!(strpos($string, 'm') === false)) {
|
||||
// has a M in it, remove the M and multiply by 1048576.
|
||||
$bytes = bcmul(rtrim($string, 'm'),'1048576');
|
||||
$bytes = bcmul(rtrim($string, 'm'), '1048576');
|
||||
|
||||
return intval($bytes);
|
||||
}
|
||||
|
Reference in New Issue
Block a user