Code clean up.

This commit is contained in:
James Cole
2017-11-15 10:52:29 +01:00
parent aee17221eb
commit 649dca77f5
305 changed files with 1200 additions and 1600 deletions

View File

@@ -141,7 +141,6 @@ class Amount
}
if ($coloured === true) {
if ($amount > 0) {
return sprintf('<span class="text-success">%s</span>', $result);
}
@@ -150,8 +149,6 @@ class Amount
}
return sprintf('<span style="color:#999">%s</span>', $result);
}
return $result;
@@ -170,7 +167,6 @@ class Amount
*/
public function getCurrencyCode(): string
{
$cache = new CacheProperties;
$cache->addProperty('getCurrencyCode');
if ($cache->has()) {
@@ -180,7 +176,6 @@ class Amount
$currency = TransactionCurrency::where('code', $currencyPreference->data)->first();
if ($currency) {
$cache->store($currency->code);
return $currency->code;
@@ -263,5 +258,4 @@ class Amount
'zero' => $positive,
];
}
}