Code cleaning stuff.

This commit is contained in:
James Cole committed 2019-02-13 17:38:41 +01:00
1 parent 9a461fc7b7
commit 71fb9d8fa5
141 files changed
+495 -482

No files matched your search

+2 -1
View File
@@ -38,6 +38,7 @@ class TransactionCurrencyFactory
{
/**
* TransactionCurrencyFactory constructor.
*
* @codeCoverageIgnore
*/
public function __construct()
@@ -100,7 +101,7 @@ class TransactionCurrencyFactory
Log::warning(sprintf('Currency ID is %d but found nothing!', $currencyId));
}
// then by code:
if (\strlen($currencyCode) > 0) {
if ('' !== $currencyCode) {
$currency = TransactionCurrency::whereCode($currencyCode)->first();
if (null !== $currency) {
return $currency;