Added PHP7 return type statements.

This commit is contained in:
James Cole
2016-02-06 10:17:41 +01:00
parent aa38b31015
commit d1a184e3f2
3 changed files with 17 additions and 17 deletions

View File

@@ -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);