mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-02 20:25:28 +00:00
Added PHP7 return type statements.
This commit is contained in:
@@ -24,7 +24,7 @@ class Amount
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function format(string $amount, bool $coloured = true)
|
||||
public function format(string $amount, bool $coloured = true): string
|
||||
{
|
||||
return $this->formatAnything($this->getDefaultCurrency(), $amount, $coloured);
|
||||
}
|
||||
@@ -39,7 +39,7 @@ class Amount
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function formatAnything(TransactionCurrency $format, string $amount, bool $coloured = true)
|
||||
public function formatAnything(TransactionCurrency $format, string $amount, bool $coloured = true): string
|
||||
{
|
||||
$locale = setlocale(LC_MONETARY, 0);
|
||||
$float = floatval($amount);
|
||||
|
||||
Reference in New Issue
Block a user