Code cleanup

This commit is contained in:
James Cole
2018-04-02 15:10:40 +02:00
parent fa7ab45a40
commit a3c34e6b3c
151 changed files with 802 additions and 990 deletions

View File

@@ -73,12 +73,8 @@ class CurrencyRepository implements CurrencyRepositoryInterface
// is the default currency for the system
$defaultSystemCode = config('firefly.default_currency', 'EUR');
if ($currency->code === $defaultSystemCode) {
return false;
}
// can be deleted
return true;
return !($currency->code === $defaultSystemCode);
}
/**
@@ -232,10 +228,7 @@ class CurrencyRepository implements CurrencyRepositoryInterface
*/
public function findNull(int $currencyId): ?TransactionCurrency
{
/** @var TransactionCurrency $res */
$res = TransactionCurrency::find($currencyId);
return $res;
return TransactionCurrency::find($currencyId);
}
/**