diff --git a/app/Import/Converter/Amount.php b/app/Import/Converter/Amount.php index 274f9b5457..3b8db1f12f 100644 --- a/app/Import/Converter/Amount.php +++ b/app/Import/Converter/Amount.php @@ -56,6 +56,8 @@ class Amount extends BasicConverter implements ConverterInterface $value = str_replace($search, '', $value); } + $this->setCertainty(90); + return round(floatval($value), 4); diff --git a/app/Import/Converter/AssetAccountIban.php b/app/Import/Converter/AssetAccountIban.php index acc1389335..3cbe47bc91 100644 --- a/app/Import/Converter/AssetAccountIban.php +++ b/app/Import/Converter/AssetAccountIban.php @@ -35,6 +35,8 @@ class AssetAccountIban extends BasicConverter implements ConverterInterface Log::debug('Going to convert ', ['value' => $value]); if (strlen($value) === 0) { + $this->setCertainty(0); + return new Account; } @@ -46,6 +48,7 @@ class AssetAccountIban extends BasicConverter implements ConverterInterface Log::debug('Found account in mapping. Should exist.', ['value' => $value, 'map' => $this->mapping[$value]]); $account = $repository->find(intval($this->mapping[$value])); if (!is_null($account->id)) { + $this->setCertainty(100); Log::debug('Found account by ID', ['id' => $account->id]); return $account; @@ -56,6 +59,7 @@ class AssetAccountIban extends BasicConverter implements ConverterInterface $account = $repository->findByIban($value, [AccountType::ASSET]); if (!is_null($account->id)) { Log::debug('Found account by IBAN', ['id' => $account->id]); + $this->setCertainty(50); return $account; } @@ -65,6 +69,7 @@ class AssetAccountIban extends BasicConverter implements ConverterInterface ['name' => 'Account with IBAN ' . $value, 'iban' => $value, 'user' => $this->user->id, 'accountType' => 'asset', 'virtualBalance' => 0, 'active' => true] ); + $this->setCertainty(100); return $account; } diff --git a/app/Import/Converter/AssetAccountName.php b/app/Import/Converter/AssetAccountName.php index e1b10b222a..5b309c7702 100644 --- a/app/Import/Converter/AssetAccountName.php +++ b/app/Import/Converter/AssetAccountName.php @@ -35,6 +35,7 @@ class AssetAccountName extends BasicConverter implements ConverterInterface Log::debug('Going to convert using AssetAccountName', ['value' => $value]); if (strlen($value) === 0) { + $this->setCertainty(0); return new Account; } @@ -47,7 +48,7 @@ class AssetAccountName extends BasicConverter implements ConverterInterface $account = $repository->find(intval($this->mapping[$value])); if (!is_null($account->id)) { Log::debug('Found account by ID', ['id' => $account->id]); - + $this->setCertainty(100); return $account; } } @@ -65,6 +66,7 @@ class AssetAccountName extends BasicConverter implements ConverterInterface ['name' => $value, 'iban' => null, 'openingBalance' => 0, 'user' => $this->user->id, 'accountType' => 'asset', 'virtualBalance' => 0, 'active' => true] ); + $this->setCertainty(100); return $account; diff --git a/app/Import/Converter/AssetAccountNumber.php b/app/Import/Converter/AssetAccountNumber.php index d2373e23c5..aacef8ae7a 100644 --- a/app/Import/Converter/AssetAccountNumber.php +++ b/app/Import/Converter/AssetAccountNumber.php @@ -57,7 +57,7 @@ class AssetAccountNumber extends BasicConverter implements ConverterInterface $account = $repository->findByAccountNumber($value, [AccountType::ASSET]); if (!is_null($account->id)) { Log::debug('Found account by name', ['id' => $account->id]); - + $this->setCertainty(50); return $account; } @@ -66,6 +66,7 @@ class AssetAccountNumber extends BasicConverter implements ConverterInterface ['name' => 'Account with number ' . $value, 'openingBalance' => 0, 'iban' => null, 'user' => $this->user->id, 'accountType' => 'asset', 'virtualBalance' => 0, 'active' => true] ); + $this->setCertainty(100); return $account; diff --git a/app/Import/Converter/BillId.php b/app/Import/Converter/BillId.php index 00fa42d0ef..3d6a4cc67e 100644 --- a/app/Import/Converter/BillId.php +++ b/app/Import/Converter/BillId.php @@ -11,7 +11,6 @@ declare(strict_types = 1); namespace FireflyIII\Import\Converter; -use FireflyIII\Exceptions\FireflyException; use FireflyIII\Models\Bill; use FireflyIII\Repositories\Bill\BillRepositoryInterface; use Log; @@ -35,6 +34,8 @@ class BillId extends BasicConverter implements ConverterInterface Log::debug('Going to convert using BillId', ['value' => $value]); if ($value === 0) { + $this->setCertainty(0); + return new Bill; } @@ -46,6 +47,7 @@ class BillId extends BasicConverter implements ConverterInterface $bill = $repository->find(intval($this->mapping[$value])); if (!is_null($bill->id)) { Log::debug('Found bill by ID', ['id' => $bill->id]); + $this->setCertainty(100); return $bill; } @@ -55,11 +57,15 @@ class BillId extends BasicConverter implements ConverterInterface $bill = $repository->find($value); if (!is_null($bill->id)) { Log::debug('Found bill by ID ', ['id' => $bill->id]); + $this->setCertainty(100); return $bill; } // should not really happen. If the ID does not match FF, what is FF supposed to do? + + $this->setCertainty(0); + return new Bill; } diff --git a/app/Import/Converter/BillName.php b/app/Import/Converter/BillName.php index 7dd8241e3c..6cb443c367 100644 --- a/app/Import/Converter/BillName.php +++ b/app/Import/Converter/BillName.php @@ -35,6 +35,7 @@ class BillName extends BasicConverter implements ConverterInterface Log::debug('Going to convert using BillName', ['value' => $value]); if (strlen($value) === 0) { + $this->setCertainty(0); return new Bill; } @@ -46,7 +47,7 @@ class BillName extends BasicConverter implements ConverterInterface $bill = $repository->find(intval($this->mapping[$value])); if (!is_null($bill->id)) { Log::debug('Found bill by ID', ['id' => $bill->id]); - + $this->setCertainty(100); return $bill; } } @@ -55,7 +56,7 @@ class BillName extends BasicConverter implements ConverterInterface $bill = $repository->findByName($value); if (!is_null($bill->id)) { Log::debug('Found bill by name ', ['id' => $bill->id]); - + $this->setCertainty(100); return $bill; } @@ -75,6 +76,7 @@ class BillName extends BasicConverter implements ConverterInterface ] ); + $this->setCertainty(100); return $bill; diff --git a/app/Import/Converter/BudgetId.php b/app/Import/Converter/BudgetId.php index 71178f3a67..6e50fb0e20 100644 --- a/app/Import/Converter/BudgetId.php +++ b/app/Import/Converter/BudgetId.php @@ -35,6 +35,7 @@ class BudgetId extends BasicConverter implements ConverterInterface Log::debug('Going to convert using BudgetId', ['value' => $value]); if ($value === 0) { + $this->setCertainty(0); return new Budget; } @@ -46,6 +47,7 @@ class BudgetId extends BasicConverter implements ConverterInterface $budget = $repository->find(intval($this->mapping[$value])); if (!is_null($budget->id)) { Log::debug('Found budget by ID', ['id' => $budget->id]); + $this->setCertainty(100); return $budget; } @@ -55,11 +57,12 @@ class BudgetId extends BasicConverter implements ConverterInterface $budget = $repository->find($value); if (!is_null($budget->id)) { Log::debug('Found budget by ID ', ['id' => $budget->id]); - + $this->setCertainty(100); return $budget; } // should not really happen. If the ID does not match FF, what is FF supposed to do? + $this->setCertainty(0); return new Budget; } diff --git a/app/Import/Converter/BudgetName.php b/app/Import/Converter/BudgetName.php index 8aeab92dbf..59bcaf8bbb 100644 --- a/app/Import/Converter/BudgetName.php +++ b/app/Import/Converter/BudgetName.php @@ -35,6 +35,7 @@ class BudgetName extends BasicConverter implements ConverterInterface Log::debug('Going to convert using BudgetName', ['value' => $value]); if (strlen($value) === 0) { + $this->setCertainty(0); return new Budget; } @@ -46,7 +47,7 @@ class BudgetName extends BasicConverter implements ConverterInterface $budget = $repository->find(intval($this->mapping[$value])); if (!is_null($budget->id)) { Log::debug('Found budget by ID', ['id' => $budget->id]); - + $this->setCertainty(100); return $budget; } } @@ -55,7 +56,7 @@ class BudgetName extends BasicConverter implements ConverterInterface $budget = $repository->findByName($value); if (!is_null($budget->id)) { Log::debug('Found budget by name ', ['id' => $budget->id]); - + $this->setCertainty(100); return $budget; } @@ -66,6 +67,7 @@ class BudgetName extends BasicConverter implements ConverterInterface 'user_id' => $this->user->id, ] ); + $this->setCertainty(100); return $budget; diff --git a/app/Import/Converter/CategoryId.php b/app/Import/Converter/CategoryId.php index 4704a81f43..03fefa2cd5 100644 --- a/app/Import/Converter/CategoryId.php +++ b/app/Import/Converter/CategoryId.php @@ -35,6 +35,7 @@ class CategoryId extends BasicConverter implements ConverterInterface Log::debug('Going to convert using CategoryId', ['value' => $value]); if ($value === 0) { + $this->setCertainty(0); return new Category; } @@ -46,7 +47,7 @@ class CategoryId extends BasicConverter implements ConverterInterface $category = $repository->find(intval($this->mapping[$value])); if (!is_null($category->id)) { Log::debug('Found category by ID', ['id' => $category->id]); - + $this->setCertainty(100); return $category; } } @@ -55,11 +56,12 @@ class CategoryId extends BasicConverter implements ConverterInterface $category = $repository->find($value); if (!is_null($category->id)) { Log::debug('Found category by ID ', ['id' => $category->id]); - + $this->setCertainty(100); return $category; } // should not really happen. If the ID does not match FF, what is FF supposed to do? + $this->setCertainty(0); return new Category; } diff --git a/app/Import/Converter/CategoryName.php b/app/Import/Converter/CategoryName.php index bfcefeb75b..ac4f5ce720 100644 --- a/app/Import/Converter/CategoryName.php +++ b/app/Import/Converter/CategoryName.php @@ -35,6 +35,7 @@ class CategoryName extends BasicConverter implements ConverterInterface Log::debug('Going to convert using CategoryName', ['value' => $value]); if (strlen($value) === 0) { + $this->setCertainty(0); return new Category; } @@ -46,7 +47,7 @@ class CategoryName extends BasicConverter implements ConverterInterface $category = $repository->find(intval($this->mapping[$value])); if (!is_null($category->id)) { Log::debug('Found category by ID', ['id' => $category->id]); - + $this->setCertainty(100); return $category; } } @@ -55,7 +56,7 @@ class CategoryName extends BasicConverter implements ConverterInterface $category = $repository->findByName($value); if (!is_null($category->id)) { Log::debug('Found category by name ', ['id' => $category->id]); - + $this->setCertainty(100); return $category; } @@ -66,6 +67,7 @@ class CategoryName extends BasicConverter implements ConverterInterface 'user_id' => $this->user->id, ] ); + $this->setCertainty(100); return $category; diff --git a/app/Import/Converter/CurrencyCode.php b/app/Import/Converter/CurrencyCode.php index 3ac41ce074..9a448eacf5 100644 --- a/app/Import/Converter/CurrencyCode.php +++ b/app/Import/Converter/CurrencyCode.php @@ -40,7 +40,7 @@ class CurrencyCode extends BasicConverter implements ConverterInterface $currency = $repository->find(intval($this->mapping[$value])); if (!is_null($currency->id)) { Log::debug('Found currency by ID', ['id' => $currency->id]); - + $this->setCertainty(100); return $currency; } } @@ -49,7 +49,7 @@ class CurrencyCode extends BasicConverter implements ConverterInterface $currency = $repository->findByCode($value); if (!is_null($currency->id)) { Log::debug('Found currency by code', ['id' => $currency->id]); - + $this->setCertainty(100); return $currency; } $currency = $repository->store( @@ -59,6 +59,7 @@ class CurrencyCode extends BasicConverter implements ConverterInterface 'symbol' => $value, ] ); + $this->setCertainty(100); return $currency; } diff --git a/app/Import/Converter/CurrencyId.php b/app/Import/Converter/CurrencyId.php index 1bc4314ac5..08b8b43775 100644 --- a/app/Import/Converter/CurrencyId.php +++ b/app/Import/Converter/CurrencyId.php @@ -35,6 +35,7 @@ class CurrencyId extends BasicConverter implements ConverterInterface Log::debug('Going to convert using CurrencyId', ['value' => $value]); if ($value === 0) { + $this->setCertainty(0); return new TransactionCurrency; } @@ -46,7 +47,7 @@ class CurrencyId extends BasicConverter implements ConverterInterface $currency = $repository->find(intval($this->mapping[$value])); if (!is_null($currency->id)) { Log::debug('Found currency by ID', ['id' => $currency->id]); - + $this->setCertainty(100); return $currency; } } @@ -55,10 +56,10 @@ class CurrencyId extends BasicConverter implements ConverterInterface $currency = $repository->find($value); if (!is_null($currency->id)) { Log::debug('Found currency by ID ', ['id' => $currency->id]); - + $this->setCertainty(100); return $currency; } - + $this->setCertainty(0); // should not really happen. If the ID does not match FF, what is FF supposed to do? return new TransactionCurrency; diff --git a/app/Import/Converter/CurrencyName.php b/app/Import/Converter/CurrencyName.php index f28194d018..f91c2aa377 100644 --- a/app/Import/Converter/CurrencyName.php +++ b/app/Import/Converter/CurrencyName.php @@ -34,6 +34,7 @@ class CurrencyName extends BasicConverter implements ConverterInterface Log::debug('Going to convert using CurrencyName', ['value' => $value]); if ($value === 0) { + $this->setCertainty(0); return new TransactionCurrency; } @@ -45,7 +46,7 @@ class CurrencyName extends BasicConverter implements ConverterInterface $currency = $repository->find(intval($this->mapping[$value])); if (!is_null($currency->id)) { Log::debug('Found currency by ID', ['id' => $currency->id]); - + $this->setCertainty(100); return $currency; } } @@ -54,7 +55,7 @@ class CurrencyName extends BasicConverter implements ConverterInterface $currency = $repository->findByName($value); if (!is_null($currency->id)) { Log::debug('Found currency by name ', ['id' => $currency->id]); - + $this->setCertainty(100); return $currency; } @@ -66,6 +67,7 @@ class CurrencyName extends BasicConverter implements ConverterInterface 'symbol' => strtoupper(substr($value, 0, 1)), ] ); + $this->setCertainty(100); return $currency; diff --git a/app/Import/Converter/CurrencySymbol.php b/app/Import/Converter/CurrencySymbol.php index 2f829d26d0..00977f3349 100644 --- a/app/Import/Converter/CurrencySymbol.php +++ b/app/Import/Converter/CurrencySymbol.php @@ -34,6 +34,7 @@ class CurrencySymbol extends BasicConverter implements ConverterInterface Log::debug('Going to convert using CurrencySymbol', ['value' => $value]); if ($value === 0) { + $this->setCertainty(0); return new TransactionCurrency; } @@ -45,7 +46,7 @@ class CurrencySymbol extends BasicConverter implements ConverterInterface $currency = $repository->find(intval($this->mapping[$value])); if (!is_null($currency->id)) { Log::debug('Found currency by ID', ['id' => $currency->id]); - + $this->setCertainty(100); return $currency; } } @@ -54,7 +55,7 @@ class CurrencySymbol extends BasicConverter implements ConverterInterface $currency = $repository->findBySymbol($value); if (!is_null($currency->id)) { Log::debug('Found currency by symbol ', ['id' => $currency->id]); - + $this->setCertainty(100); return $currency; } @@ -66,6 +67,7 @@ class CurrencySymbol extends BasicConverter implements ConverterInterface 'symbol' => $value, ] ); + $this->setCertainty(100); return $currency; diff --git a/app/Import/Converter/Date.php b/app/Import/Converter/Date.php index c9e9676b6f..d9619631a2 100644 --- a/app/Import/Converter/Date.php +++ b/app/Import/Converter/Date.php @@ -42,7 +42,7 @@ class Date extends BasicConverter implements ConverterInterface throw new FireflyException(sprintf('Cannot convert "%s" to a valid date using format "%s".', $value, $this->config['date-format'])); } Log::debug('Converted date', ['converted' => $date->toAtomString()]); - + $this->setCertainty(100); return $date; } } \ No newline at end of file diff --git a/app/Import/Converter/Description.php b/app/Import/Converter/Description.php index 18b90ee92e..a8ce132873 100644 --- a/app/Import/Converter/Description.php +++ b/app/Import/Converter/Description.php @@ -29,6 +29,7 @@ class Description extends BasicConverter implements ConverterInterface // this should replace all control characters // but leave utf8 intact: $value = preg_replace('/[\x00-\x1F\x80-\x9F]/u', '', $value); + $this->setCertainty(100); return strval($value); diff --git a/app/Import/Converter/INGDebetCredit.php b/app/Import/Converter/INGDebetCredit.php index cede9dba3a..a6c4da9d69 100644 --- a/app/Import/Converter/INGDebetCredit.php +++ b/app/Import/Converter/INGDebetCredit.php @@ -33,9 +33,11 @@ class INGDebetCredit extends BasicConverter implements ConverterInterface if ($value === 'Af') { Log::debug('Return -1'); + $this->setCertainty(100); return -1; } + $this->setCertainty(100); Log::debug('Return 1'); return 1; diff --git a/app/Import/Converter/OpposingAccountIban.php b/app/Import/Converter/OpposingAccountIban.php index c59f4ffb3c..674134c43b 100644 --- a/app/Import/Converter/OpposingAccountIban.php +++ b/app/Import/Converter/OpposingAccountIban.php @@ -34,6 +34,7 @@ class OpposingAccountIban extends BasicConverter implements ConverterInterface Log::debug('Going to convert ', ['value' => $value]); if (strlen($value) === 0) { + $this->setCertainty(0); return new Account; } @@ -46,7 +47,7 @@ class OpposingAccountIban extends BasicConverter implements ConverterInterface $account = $repository->find(intval($this->mapping[$value])); if (!is_null($account->id)) { Log::debug('Found account by ID', ['id' => $account->id]); - + $this->setCertainty(100); return $account; } } @@ -59,6 +60,7 @@ class OpposingAccountIban extends BasicConverter implements ConverterInterface 'The match between IBAN and account is uncertain because the type of transactions may not have been determined.', ['id' => $account->id, 'iban' => $value] ); + $this->setCertainty(50); return $account; } @@ -67,6 +69,7 @@ class OpposingAccountIban extends BasicConverter implements ConverterInterface ['name' => $value, 'iban' => $value, 'user' => $this->user->id, 'accountType' => 'import', 'virtualBalance' => 0, 'active' => true, 'openingBalance' => 0] ); + $this->setCertainty(100); return $account; } diff --git a/app/Import/Converter/OpposingAccountName.php b/app/Import/Converter/OpposingAccountName.php index a5bb8138f2..9d8b4d8623 100644 --- a/app/Import/Converter/OpposingAccountName.php +++ b/app/Import/Converter/OpposingAccountName.php @@ -46,7 +46,7 @@ class OpposingAccountName extends BasicConverter implements ConverterInterface $account = $repository->find(intval($this->mapping[$value])); if (!is_null($account->id)) { Log::debug('Found account by ID', ['id' => $account->id]); - + $this->setCertainty(100); return $account; } } @@ -59,7 +59,7 @@ class OpposingAccountName extends BasicConverter implements ConverterInterface 'The match between name and account is uncertain because the type of transactions may not have been determined.', ['id' => $account->id, 'name' => $value] ); - + $this->setCertainty(50); return $account; } @@ -68,6 +68,7 @@ class OpposingAccountName extends BasicConverter implements ConverterInterface 'openingBalance' => 0, ] ); + $this->setCertainty(100); return $account; } diff --git a/app/Import/Converter/OpposingAccountNumber.php b/app/Import/Converter/OpposingAccountNumber.php index 545baa22c1..e47e596a38 100644 --- a/app/Import/Converter/OpposingAccountNumber.php +++ b/app/Import/Converter/OpposingAccountNumber.php @@ -35,6 +35,7 @@ class OpposingAccountNumber extends BasicConverter implements ConverterInterface Log::debug('Going to convert using OpposingAccountNumber', ['value' => $value]); if (strlen($value) === 0) { + $this->setCertainty(0); return new Account; } @@ -47,7 +48,7 @@ class OpposingAccountNumber extends BasicConverter implements ConverterInterface $account = $repository->find(intval($this->mapping[$value])); if (!is_null($account->id)) { Log::debug('Found account by ID', ['id' => $account->id]); - + $this->setCertainty(100); return $account; } } @@ -55,8 +56,8 @@ class OpposingAccountNumber extends BasicConverter implements ConverterInterface // not mapped? Still try to find it first: $account = $repository->findByAccountNumber($value, []); if (!is_null($account->id)) { - Log::debug('Found account by name', ['id' => $account->id]); - + Log::debug('Found account by number', ['id' => $account->id]); + $this->setCertainty(50); return $account; } @@ -65,6 +66,7 @@ class OpposingAccountNumber extends BasicConverter implements ConverterInterface ['name' => 'Account with number ' . $value, 'openingBalance' => 0, 'iban' => null, 'user' => $this->user->id, 'accountType' => 'asset', 'virtualBalance' => 0, 'active' => true] ); + $this->setCertainty(100); return $account; diff --git a/app/Import/Converter/RabobankDebetCredit.php b/app/Import/Converter/RabobankDebetCredit.php index 01feb80c59..3908b3a062 100644 --- a/app/Import/Converter/RabobankDebetCredit.php +++ b/app/Import/Converter/RabobankDebetCredit.php @@ -32,11 +32,13 @@ class RabobankDebetCredit extends BasicConverter implements ConverterInterface if ($value === 'D') { Log::debug('Return -1'); + $this->setCertainty(100); return -1; } Log::debug('Return 1'); + $this->setCertainty(100); return 1; } diff --git a/app/Import/Converter/TagsComma.php b/app/Import/Converter/TagsComma.php index 7b02e7972b..63c8e3e85c 100644 --- a/app/Import/Converter/TagsComma.php +++ b/app/Import/Converter/TagsComma.php @@ -34,6 +34,7 @@ class TagsComma extends BasicConverter implements ConverterInterface Log::debug('Going to convert using TagsComma', ['value' => $value]); if (strlen($value) === 0) { + $this->setCertainty(0); return new Collection; } $parts = array_unique(explode(',', $value)); @@ -79,6 +80,8 @@ class TagsComma extends BasicConverter implements ConverterInterface Log::debug('Created new tag', ['name' => $part, 'id' => $tag->id]); $set->push($tag); } + $this->setCertainty(100); + return $set; } } \ No newline at end of file diff --git a/app/Import/Converter/TagsSpace.php b/app/Import/Converter/TagsSpace.php index 211e85c0d3..c5c5f9a505 100644 --- a/app/Import/Converter/TagsSpace.php +++ b/app/Import/Converter/TagsSpace.php @@ -34,6 +34,7 @@ class TagsSpace extends BasicConverter implements ConverterInterface Log::debug('Going to convert using TagsSpace', ['value' => $value]); if (strlen($value) === 0) { + $this->setCertainty(0); return new Collection; } $parts = array_unique(explode(' ', $value)); @@ -79,6 +80,7 @@ class TagsSpace extends BasicConverter implements ConverterInterface Log::debug('Created new tag', ['name' => $part, 'id' => $tag->id]); $set->push($tag); } + $this->setCertainty(100); return $set; diff --git a/public/result.html b/public/result.html new file mode 100644 index 0000000000..d28b8ce89d --- /dev/null +++ b/public/result.html @@ -0,0 +1,932 @@ +PHPMD +

PHPMD report

Problems found

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#FileLineProblem
1/sites/firefly-iii/app/Crud/Account/AccountCrud.php192The method update() has an NPath complexity of 210. The configured NPath complexity threshold is 200.
2/sites/firefly-iii/app/Crud/Account/AccountCrud.php192The method update() has a Cyclomatic Complexity of 7. The configured cyclomatic complexity threshold is 5.
3/sites/firefly-iii/app/Crud/Account/AccountCrud.php192The method update() has an NPath complexity of 210. The configured NPath complexity threshold is 128.
4/sites/firefly-iii/app/Crud/Account/AccountCrud.php192The method update() has 42 lines of code. Current threshold is set to 40. Avoid really long methods.
5/sites/firefly-iii/app/Helpers/Csv/Specifix/AbnAmroDescription.php41The method fix() has a Cyclomatic Complexity of 5. The configured cyclomatic complexity threshold is 5.
6/sites/firefly-iii/app/Helpers/Csv/Specifix/AbnAmroDescription.php119The method parseSepaDescription() has a Cyclomatic Complexity of 9. The configured cyclomatic complexity threshold is 5.
7/sites/firefly-iii/app/Helpers/Csv/Specifix/AbnAmroDescription.php119The method parseSepaDescription() has 49 lines of code. Current threshold is set to 40. Avoid really long methods.
8/sites/firefly-iii/app/Helpers/Csv/Specifix/AbnAmroDescription.php174The method parseTRTPDescription() has a Cyclomatic Complexity of 10. The configured cyclomatic complexity threshold is 10.
9/sites/firefly-iii/app/Helpers/Csv/Specifix/AbnAmroDescription.php174The method parseTRTPDescription() has a Cyclomatic Complexity of 10. The configured cyclomatic complexity threshold is 5.
10/sites/firefly-iii/app/Helpers/Csv/Specifix/AbnAmroDescription.php174The method parseTRTPDescription() has 51 lines of code. Current threshold is set to 40. Avoid really long methods.
11/sites/firefly-iii/app/Helpers/Report/BalanceReportHelper.php34The class BalanceReportHelper has a coupling between objects value of 14. Consider to reduce the number of dependencies under 13.
12/sites/firefly-iii/app/Helpers/Report/BalanceReportHelper.php268The method removeUnusedBudgets() has a Cyclomatic Complexity of 5. The configured cyclomatic complexity threshold is 5.
13/sites/firefly-iii/app/Helpers/Report/BudgetReportHelper.php50The method getBudgetReport() has a Cyclomatic Complexity of 5. The configured cyclomatic complexity threshold is 5.
14/sites/firefly-iii/app/Helpers/Report/BudgetReportHelper.php50The method getBudgetReport() has 57 lines of code. Current threshold is set to 40. Avoid really long methods.
15/sites/firefly-iii/app/Http/Controllers/Admin/UserController.php30The method index() has a Cyclomatic Complexity of 5. The configured cyclomatic complexity threshold is 5.
16/sites/firefly-iii/app/Http/Controllers/AttachmentController.php33The class AttachmentController has a coupling between objects value of 16. Consider to reduce the number of dependencies under 13.
17/sites/firefly-iii/app/Http/Controllers/Auth/AuthController.php36The class AuthController has a coupling between objects value of 15. Consider to reduce the number of dependencies under 13.
18/sites/firefly-iii/app/Http/Controllers/Auth/AuthController.php64The method login() has a Cyclomatic Complexity of 7. The configured cyclomatic complexity threshold is 5.
19/sites/firefly-iii/app/Http/Controllers/Auth/PasswordController.php60The method sendResetLinkEmail() has a Cyclomatic Complexity of 7. The configured cyclomatic complexity threshold is 5.
20/sites/firefly-iii/app/Http/Controllers/Auth/TwoFactorController.php75Avoid unused parameters such as '$request'.
21/sites/firefly-iii/app/Http/Controllers/CategoryController.php34The class CategoryController has 11 public methods. Consider refactoring CategoryController to keep number of public methods under 10.
22/sites/firefly-iii/app/Http/Controllers/CategoryController.php34The class CategoryController has a coupling between objects value of 16. Consider to reduce the number of dependencies under 13.
23/sites/firefly-iii/app/Http/Controllers/CategoryController.php164The method show() has 61 lines of code. Current threshold is set to 40. Avoid really long methods.
24/sites/firefly-iii/app/Http/Controllers/Chart/BudgetController.php32The class BudgetController has a coupling between objects value of 13. Consider to reduce the number of dependencies under 13.
25/sites/firefly-iii/app/Http/Controllers/Chart/BudgetController.php56The method budget() has 40 lines of code. Current threshold is set to 40. Avoid really long methods.
26/sites/firefly-iii/app/Http/Controllers/Chart/BudgetController.php144The method frontpage() has a Cyclomatic Complexity of 13. The configured cyclomatic complexity threshold is 10.
27/sites/firefly-iii/app/Http/Controllers/Chart/BudgetController.php144The method frontpage() has an NPath complexity of 8036. The configured NPath complexity threshold is 200.
28/sites/firefly-iii/app/Http/Controllers/Chart/BudgetController.php144The method frontpage() has a Cyclomatic Complexity of 13. The configured cyclomatic complexity threshold is 5.
29/sites/firefly-iii/app/Http/Controllers/Chart/BudgetController.php144The method frontpage() has an NPath complexity of 8036. The configured NPath complexity threshold is 128.
30/sites/firefly-iii/app/Http/Controllers/Chart/BudgetController.php144The method frontpage() has 66 lines of code. Current threshold is set to 40. Avoid really long methods.
31/sites/firefly-iii/app/Http/Controllers/Chart/BudgetController.php222The method multiYear() has a Cyclomatic Complexity of 8. The configured cyclomatic complexity threshold is 5.
32/sites/firefly-iii/app/Http/Controllers/Chart/BudgetController.php222The method multiYear() has 60 lines of code. Current threshold is set to 40. Avoid really long methods.
33/sites/firefly-iii/app/Http/Controllers/Chart/BudgetController.php222The method multiYear has 5 parameters. Consider to reduce parameter number under 5.
34/sites/firefly-iii/app/Http/Controllers/Chart/BudgetController.php292The method period() has a Cyclomatic Complexity of 5. The configured cyclomatic complexity threshold is 5.
35/sites/firefly-iii/app/Http/Controllers/Chart/BudgetController.php292The method period() has 47 lines of code. Current threshold is set to 40. Avoid really long methods.
36/sites/firefly-iii/app/Http/Controllers/Chart/BudgetController.php292The method period has 5 parameters. Consider to reduce parameter number under 5.
37/sites/firefly-iii/app/Http/Controllers/Chart/CategoryController.php158The method multiYear() has a Cyclomatic Complexity of 5. The configured cyclomatic complexity threshold is 5.
38/sites/firefly-iii/app/Http/Controllers/Chart/CategoryController.php158The method multiYear() has 63 lines of code. Current threshold is set to 40. Avoid really long methods.
39/sites/firefly-iii/app/Http/Controllers/Chart/ReportController.php101The method yearInOut() has 43 lines of code. Current threshold is set to 40. Avoid really long methods.
40/sites/firefly-iii/app/Http/Controllers/Chart/ReportController.php101The method yearInOut has 5 parameters. Consider to reduce parameter number under 5.
41/sites/firefly-iii/app/Http/Controllers/Chart/ReportController.php154The method yearInOutSummarized() has 42 lines of code. Current threshold is set to 40. Avoid really long methods.
42/sites/firefly-iii/app/Http/Controllers/Chart/ReportController.php154The method yearInOutSummarized has 5 parameters. Consider to reduce parameter number under 5.
43/sites/firefly-iii/app/Http/Controllers/Controller.php30The class Controller has 21 children. Consider to rebalance this class hierarchy to keep number of children under 15.
44/sites/firefly-iii/app/Http/Controllers/CurrencyController.php31The class CurrencyController has a coupling between objects value of 14. Consider to reduce the number of dependencies under 13.
45/sites/firefly-iii/app/Http/Controllers/RuleController.php36The class RuleController has 13 public methods. Consider refactoring RuleController to keep number of public methods under 10.
46/sites/firefly-iii/app/Http/Controllers/RuleController.php36The class RuleController has a coupling between objects value of 16. Consider to reduce the number of dependencies under 13.
47/sites/firefly-iii/app/Http/Controllers/RuleController.php326Avoid using short method names like RuleController::up(). The configured minimum method name length is 3.
48/sites/firefly-iii/app/Http/Controllers/TagController.php41The class TagController has a coupling between objects value of 14. Consider to reduce the number of dependencies under 13.
49/sites/firefly-iii/app/Http/Controllers/TagController.php181The method index() has a Cyclomatic Complexity of 6. The configured cyclomatic complexity threshold is 5.
50/sites/firefly-iii/app/Http/Controllers/TagController.php181The method index() has an NPath complexity of 131. The configured NPath complexity threshold is 128.
51/sites/firefly-iii/app/Http/Middleware/AuthenticateTwoFactor.php36The method handle() has a Cyclomatic Complexity of 7. The configured cyclomatic complexity threshold is 5.
52/sites/firefly-iii/app/Http/Middleware/IsConfirmed.php36The method handle() has a Cyclomatic Complexity of 5. The configured cyclomatic complexity threshold is 5.
53/sites/firefly-iii/app/Http/Middleware/IsNotConfirmed.php36The method handle() has a Cyclomatic Complexity of 5. The configured cyclomatic complexity threshold is 5.
54/sites/firefly-iii/app/Http/Middleware/Range.php61The method handle() has a Cyclomatic Complexity of 6. The configured cyclomatic complexity threshold is 5.
55/sites/firefly-iii/app/Http/Middleware/RedirectIfTwoFactorAuthenticated.php35The method handle() has a Cyclomatic Complexity of 5. The configured cyclomatic complexity threshold is 5.
56/sites/firefly-iii/app/Http/Requests/Request.php21The class Request has 18 children. Consider to rebalance this class hierarchy to keep number of children under 15.
57/sites/firefly-iii/app/Jobs/MailError.php67The method handle() has a Cyclomatic Complexity of 5. The configured cyclomatic complexity threshold is 5.
58/sites/firefly-iii/app/Models/Account.php91The method firstOrCreateEncrypted() has a Cyclomatic Complexity of 5. The configured cyclomatic complexity threshold is 5.
59/sites/firefly-iii/app/Models/TransactionJournal.php94The class TransactionJournal has 23 public methods. Consider refactoring TransactionJournal to keep number of public methods under 10.
60/sites/firefly-iii/app/Providers/AccountServiceProvider.php41The method register() has a Cyclomatic Complexity of 5. The configured cyclomatic complexity threshold is 5.
61/sites/firefly-iii/app/Providers/AttachmentServiceProvider.php41The method register() has a Cyclomatic Complexity of 5. The configured cyclomatic complexity threshold is 5.
62/sites/firefly-iii/app/Providers/BillServiceProvider.php41The method register() has a Cyclomatic Complexity of 5. The configured cyclomatic complexity threshold is 5.
63/sites/firefly-iii/app/Providers/BudgetServiceProvider.php41The method register() has a Cyclomatic Complexity of 5. The configured cyclomatic complexity threshold is 5.
64/sites/firefly-iii/app/Providers/CategoryServiceProvider.php41The method register() has a Cyclomatic Complexity of 5. The configured cyclomatic complexity threshold is 5.
65/sites/firefly-iii/app/Providers/CrudServiceProvider.php46The method registerAccount() has a Cyclomatic Complexity of 5. The configured cyclomatic complexity threshold is 5.
66/sites/firefly-iii/app/Providers/CrudServiceProvider.php64The method registerJournal() has a Cyclomatic Complexity of 5. The configured cyclomatic complexity threshold is 5.
67/sites/firefly-iii/app/Providers/ExportJobServiceProvider.php32The method boot() has a Cyclomatic Complexity of 5. The configured cyclomatic complexity threshold is 5.
68/sites/firefly-iii/app/Providers/FireflyServiceProvider.php36The class FireflyServiceProvider has a coupling between objects value of 15. Consider to reduce the number of dependencies under 13.
69/sites/firefly-iii/app/Providers/FireflyServiceProvider.php58The method register() has 53 lines of code. Current threshold is set to 40. Avoid really long methods.
70/sites/firefly-iii/app/Providers/JournalServiceProvider.php41The method register() has a Cyclomatic Complexity of 5. The configured cyclomatic complexity threshold is 5.
71/sites/firefly-iii/app/Providers/PiggyBankServiceProvider.php42The method register() has a Cyclomatic Complexity of 5. The configured cyclomatic complexity threshold is 5.
72/sites/firefly-iii/app/Providers/RuleGroupServiceProvider.php42The method register() has a Cyclomatic Complexity of 5. The configured cyclomatic complexity threshold is 5.
73/sites/firefly-iii/app/Providers/RuleServiceProvider.php41The method register() has a Cyclomatic Complexity of 5. The configured cyclomatic complexity threshold is 5.
74/sites/firefly-iii/app/Providers/TagServiceProvider.php41The method register() has a Cyclomatic Complexity of 5. The configured cyclomatic complexity threshold is 5.
75/sites/firefly-iii/app/Repositories/Account/AccountRepository.php35The class AccountRepository has 14 public methods. Consider refactoring AccountRepository to keep number of public methods under 10.
76/sites/firefly-iii/app/Repositories/Account/AccountRepository.php41Avoid unused private fields such as '$validFields'.
77/sites/firefly-iii/app/Repositories/Account/AccountRepository.php240The method getPiggyBankAccounts() has a Cyclomatic Complexity of 5. The configured cyclomatic complexity threshold is 5.
78/sites/firefly-iii/app/Repositories/Account/AccountRepository.php282The method getSavingsAccounts() has a Cyclomatic Complexity of 7. The configured cyclomatic complexity threshold is 5.
79/sites/firefly-iii/app/Repositories/Account/AccountRepository.php282The method getSavingsAccounts() has 44 lines of code. Current threshold is set to 40. Avoid really long methods.
80/sites/firefly-iii/app/Repositories/Budget/BudgetRepository.php32The class BudgetRepository has 11 public methods. Consider refactoring BudgetRepository to keep number of public methods under 10.
81/sites/firefly-iii/app/Repositories/Budget/BudgetRepository.php84The method firstUseDate() has a Cyclomatic Complexity of 5. The configured cyclomatic complexity threshold is 5.
82/sites/firefly-iii/app/Repositories/Budget/BudgetRepository.php184The method journalsInPeriod() has 60 lines of code. Current threshold is set to 40. Avoid really long methods.
83/sites/firefly-iii/app/Repositories/Budget/BudgetRepository.php252The method journalsInPeriodWithoutBudget() has a Cyclomatic Complexity of 5. The configured cyclomatic complexity threshold is 5.
84/sites/firefly-iii/app/Repositories/Budget/BudgetRepository.php252The method journalsInPeriodWithoutBudget() has 49 lines of code. Current threshold is set to 40. Avoid really long methods.
85/sites/firefly-iii/app/Repositories/Budget/BudgetRepository.php310The method spentInPeriod() has a Cyclomatic Complexity of 6. The configured cyclomatic complexity threshold is 5.
86/sites/firefly-iii/app/Repositories/Budget/BudgetRepository.php310The method spentInPeriod() has 51 lines of code. Current threshold is set to 40. Avoid really long methods.
87/sites/firefly-iii/app/Repositories/Budget/BudgetRepository.php446The method updateLimitAmount() has 43 lines of code. Current threshold is set to 40. Avoid really long methods.
88/sites/firefly-iii/app/Repositories/Budget/BudgetRepository.php446The method updateLimitAmount has 5 parameters. Consider to reduce parameter number under 5.
89/sites/firefly-iii/app/Repositories/Budget/BudgetRepositoryInterface.php138The method updateLimitAmount has 5 parameters. Consider to reduce parameter number under 5.
90/sites/firefly-iii/app/Repositories/Category/CategoryRepository.php28The class CategoryRepository has 13 public methods. Consider refactoring CategoryRepository to keep number of public methods under 10.
91/sites/firefly-iii/app/Repositories/Category/CategoryRepository.php28The class CategoryRepository has an overall complexity of 52 which is very high. The configured complexity threshold is 50.
92/sites/firefly-iii/app/Repositories/Category/CategoryRepository.php110The method firstUseDate() has a Cyclomatic Complexity of 9. The configured cyclomatic complexity threshold is 5.
93/sites/firefly-iii/app/Repositories/Category/CategoryRepository.php110The method firstUseDate() has 42 lines of code. Current threshold is set to 40. Avoid really long methods.
94/sites/firefly-iii/app/Repositories/Category/CategoryRepository.php132Avoid excessively long variable names like $firstTransactionQuery. Keep variable name length under 20.
95/sites/firefly-iii/app/Repositories/Category/CategoryRepository.php225The method journalsInPeriod() has a Cyclomatic Complexity of 8. The configured cyclomatic complexity threshold is 5.
96/sites/firefly-iii/app/Repositories/Category/CategoryRepository.php225The method journalsInPeriod() has an NPath complexity of 128. The configured NPath complexity threshold is 128.
97/sites/firefly-iii/app/Repositories/Category/CategoryRepository.php225The method journalsInPeriod() has 54 lines of code. Current threshold is set to 40. Avoid really long methods.
98/sites/firefly-iii/app/Repositories/Category/CategoryRepository.php225The method journalsInPeriod has 5 parameters. Consider to reduce parameter number under 5.
99/sites/firefly-iii/app/Repositories/Category/CategoryRepository.php288The method journalsInPeriodWithoutCategory() has a Cyclomatic Complexity of 5. The configured cyclomatic complexity threshold is 5.
100/sites/firefly-iii/app/Repositories/Category/CategoryRepository.php288The method journalsInPeriodWithoutCategory() has 53 lines of code. Current threshold is set to 40. Avoid really long methods.
101/sites/firefly-iii/app/Repositories/Category/CategoryRepository.php348The method lastUseDate() has a Cyclomatic Complexity of 9. The configured cyclomatic complexity threshold is 5.
102/sites/firefly-iii/app/Repositories/Category/CategoryRepository.php348The method lastUseDate() has 42 lines of code. Current threshold is set to 40. Avoid really long methods.
103/sites/firefly-iii/app/Repositories/Category/CategoryRepository.php464The method sumInPeriod() has a Cyclomatic Complexity of 7. The configured cyclomatic complexity threshold is 5.
104/sites/firefly-iii/app/Repositories/Category/CategoryRepository.php464The method sumInPeriod() has 58 lines of code. Current threshold is set to 40. Avoid really long methods.
105/sites/firefly-iii/app/Repositories/Category/CategoryRepository.php464The method sumInPeriod has 5 parameters. Consider to reduce parameter number under 5.
106/sites/firefly-iii/app/Repositories/Category/CategoryRepositoryInterface.php95The method journalsInPeriod has 5 parameters. Consider to reduce parameter number under 5.
107/sites/firefly-iii/app/Repositories/Journal/JournalRepository.php39The class JournalRepository has an overall complexity of 51 which is very high. The configured complexity threshold is 50.
108/sites/firefly-iii/app/Repositories/Journal/JournalRepository.php39The class JournalRepository has a coupling between objects value of 19. Consider to reduce the number of dependencies under 13.
109/sites/firefly-iii/app/Repositories/Journal/JournalRepository.php227The method getTransactions() has 57 lines of code. Current threshold is set to 40. Avoid really long methods.
110/sites/firefly-iii/app/Repositories/Journal/JournalRepository.php290The method store() has a Cyclomatic Complexity of 5. The configured cyclomatic complexity threshold is 5.
111/sites/firefly-iii/app/Repositories/Journal/JournalRepository.php290The method store() has 64 lines of code. Current threshold is set to 40. Avoid really long methods.
112/sites/firefly-iii/app/Repositories/Journal/JournalRepository.php392The method update() has a Cyclomatic Complexity of 8. The configured cyclomatic complexity threshold is 5.
113/sites/firefly-iii/app/Repositories/Journal/JournalRepository.php392The method update() has 55 lines of code. Current threshold is set to 40. Avoid really long methods.
114/sites/firefly-iii/app/Repositories/Journal/JournalRepository.php482The method storeAccounts() has a Cyclomatic Complexity of 6. The configured cyclomatic complexity threshold is 5.
115/sites/firefly-iii/app/Repositories/Journal/JournalRepository.php581The method updateTags() has a Cyclomatic Complexity of 6. The configured cyclomatic complexity threshold is 5.
116/sites/firefly-iii/app/Repositories/Rule/RuleRepository.php26The class RuleRepository has 12 public methods. Consider refactoring RuleRepository to keep number of public methods under 10.
117/sites/firefly-iii/app/Repositories/Tag/TagRepository.php49The method connect() has a Cyclomatic Complexity of 5. The configured cyclomatic complexity threshold is 5.
118/sites/firefly-iii/app/Repositories/Tag/TagRepository.php150The method connectAdvancePayment() has a Cyclomatic Complexity of 8. The configured cyclomatic complexity threshold is 5.
119/sites/firefly-iii/app/Repositories/Tag/TagRepository.php195The method connectBalancingAct() has a Cyclomatic Complexity of 5. The configured cyclomatic complexity threshold is 5.
120/sites/firefly-iii/app/Repositories/Tag/TagRepository.php235The method matchAll() has a Cyclomatic Complexity of 7. The configured cyclomatic complexity threshold is 5.
121/sites/firefly-iii/app/Rules/Processor.php179The method triggered() has a Cyclomatic Complexity of 5. The configured cyclomatic complexity threshold is 5.
122/sites/firefly-iii/app/Rules/TransactionMatcher.php57The method findMatchingTransactions() has a Cyclomatic Complexity of 5. The configured cyclomatic complexity threshold is 5.
123/sites/firefly-iii/app/Rules/TransactionMatcher.php57The method findMatchingTransactions() has 49 lines of code. Current threshold is set to 40. Avoid really long methods.
124/sites/firefly-iii/app/Support/Binder/Date.php36The method routeBinder() has a Cyclomatic Complexity of 8. The configured cyclomatic complexity threshold is 5.
125/sites/firefly-iii/app/Support/CacheProperties.php95The method md5() has a Cyclomatic Complexity of 6. The configured cyclomatic complexity threshold is 5.
126/sites/firefly-iii/app/Support/ExpandedForm.php29The class ExpandedForm has 18 public methods. Consider refactoring ExpandedForm to keep number of public methods under 10.
127/sites/firefly-iii/app/Support/ExpandedForm.php211The method makeSelectList() has a Cyclomatic Complexity of 5. The configured cyclomatic complexity threshold is 5.
128/sites/firefly-iii/app/Support/ExpandedForm.php236The method makeSelectListWithEmpty() has a Cyclomatic Complexity of 5. The configured cyclomatic complexity threshold is 5.
129/sites/firefly-iii/app/Support/ExpandedForm.php442The method fillFieldValue() has a Cyclomatic Complexity of 7. The configured cyclomatic complexity threshold is 5.
130/sites/firefly-iii/app/Support/Models/TagSupport.php31The method tagAllowAdvance() has a Cyclomatic Complexity of 8. The configured cyclomatic complexity threshold is 5.
131/sites/firefly-iii/app/Support/Navigation.php73The method endOfPeriod() has a Cyclomatic Complexity of 6. The configured cyclomatic complexity threshold is 5.
132/sites/firefly-iii/app/Support/Navigation.php73The method endOfPeriod() has 55 lines of code. Current threshold is set to 40. Avoid really long methods.
133/sites/firefly-iii/app/Support/Navigation.php213The method startOfPeriod() has a Cyclomatic Complexity of 6. The configured cyclomatic complexity threshold is 5.
134/sites/firefly-iii/app/Support/Navigation.php213The method startOfPeriod() has 42 lines of code. Current threshold is set to 40. Avoid really long methods.
135/sites/firefly-iii/app/Support/Navigation.php264The method subtractPeriod() has 52 lines of code. Current threshold is set to 40. Avoid really long methods.
136/sites/firefly-iii/app/Support/Twig/Journal.php37The method formatAccountPerspective() has a Cyclomatic Complexity of 7. The configured cyclomatic complexity threshold is 5.
137/sites/firefly-iii/app/Support/Twig/Journal.php37The method formatAccountPerspective() has 46 lines of code. Current threshold is set to 40. Avoid really long methods.
138/sites/firefly-iii/app/Support/Twig/Journal.php87The method formatBudgetPerspective() has a Cyclomatic Complexity of 6. The configured cyclomatic complexity threshold is 5.
139/sites/firefly-iii/app/Support/Twig/Journal.php239The method journalBudgets() has a Cyclomatic Complexity of 5. The configured cyclomatic complexity threshold is 5.
140/sites/firefly-iii/app/Support/Twig/Journal.php276The method journalCategories() has a Cyclomatic Complexity of 5. The configured cyclomatic complexity threshold is 5.
141/sites/firefly-iii/app/User.php58The class User has 16 public methods. Consider refactoring User to keep number of public methods under 10.
142/sites/firefly-iii/database/migrations/2016_02_04_144117_changes_for_v380.php29Avoid using short method names like ChangesForV380::up(). The configured minimum method name length is 3.
143/sites/firefly-iii/database/migrations/2016_02_04_144117_changes_for_v380.php29The method up() has 41 lines of code. Current threshold is set to 40. Avoid really long methods.
144/sites/firefly-iii/database/migrations/2016_02_24_172426_create_jobs_table.php18Avoid using short method names like CreateJobsTable::up(). The configured minimum method name length is 3.
145/sites/firefly-iii/database/migrations/2016_04_08_181054_changes_for_v383.php29Avoid using short method names like ChangesForV383::up(). The configured minimum method name length is 3.
146/sites/firefly-iii/database/migrations/2016_04_25_093451_changes_for_v390.php59Avoid using short method names like ChangesForV390::up(). The configured minimum method name length is 3.
147/sites/firefly-iii/database/migrations/2016_04_25_093451_changes_for_v390.php59The method up() has 75 lines of code. Current threshold is set to 40. Avoid really long methods.

Processing errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FileProblem
/sites/firefly-iii/app/Console/Commands/UpgradeFireflyInstructions.phpUnexpected token: ??, line: 56, col: 38, file: /sites/firefly-iii/app/Console/Commands/UpgradeFireflyInstructions.php.
/sites/firefly-iii/app/Helpers/Collection/Balance.phpUnexpected token: ??, line: 51, col: 37, file: /sites/firefly-iii/app/Helpers/Collection/Balance.php.
/sites/firefly-iii/app/Helpers/Collection/BalanceLine.phpUnexpected token: ??, line: 82, col: 30, file: /sites/firefly-iii/app/Helpers/Collection/BalanceLine.php.
/sites/firefly-iii/app/Helpers/Collection/BillLine.phpUnexpected token: ??, line: 45, col: 30, file: /sites/firefly-iii/app/Helpers/Collection/BillLine.php.
/sites/firefly-iii/app/Helpers/Collection/BudgetLine.phpUnexpected token: ??, line: 43, col: 30, file: /sites/firefly-iii/app/Helpers/Collection/BudgetLine.php.
/sites/firefly-iii/app/Helpers/Csv/Converter/AssetAccountIban.phpUnexpected token: DEFAULT, line: 59, col: 55, file: /sites/firefly-iii/app/Helpers/Csv/Converter/AssetAccountIban.php.
/sites/firefly-iii/app/Helpers/Csv/Converter/AssetAccountName.phpUnexpected token: DEFAULT, line: 39, col: 55, file: /sites/firefly-iii/app/Helpers/Csv/Converter/AssetAccountName.php.
/sites/firefly-iii/app/Helpers/Csv/Converter/AssetAccountNumber.phpUnexpected token: ??, line: 40, col: 31, file: /sites/firefly-iii/app/Helpers/Csv/Converter/AssetAccountNumber.php.
/sites/firefly-iii/app/Helpers/Csv/Converter/Description.phpUnexpected token: ??, line: 27, col: 51, file: /sites/firefly-iii/app/Helpers/Csv/Converter/Description.php.
/sites/firefly-iii/app/Helpers/Csv/Data.phpUnexpected token: ??, line: 70, col: 38, file: /sites/firefly-iii/app/Helpers/Csv/Data.php.
/sites/firefly-iii/app/Helpers/Csv/Importer.phpUnexpected token: ??, line: 185, col: 54, file: /sites/firefly-iii/app/Helpers/Csv/Importer.php.
/sites/firefly-iii/app/Helpers/Csv/Mapper/AssetAccount.phpUnexpected token: ??, line: 41, col: 36, file: /sites/firefly-iii/app/Helpers/Csv/Mapper/AssetAccount.php.
/sites/firefly-iii/app/Helpers/Csv/PostProcessing/Amount.phpUnexpected token: ??, line: 30, col: 55, file: /sites/firefly-iii/app/Helpers/Csv/PostProcessing/Amount.php.
/sites/firefly-iii/app/Helpers/Csv/PostProcessing/AssetAccount.phpUnexpected token: ??, line: 74, col: 62, file: /sites/firefly-iii/app/Helpers/Csv/PostProcessing/AssetAccount.php.
/sites/firefly-iii/app/Helpers/Csv/PostProcessing/Description.phpUnexpected token: ??, line: 29, col: 65, file: /sites/firefly-iii/app/Helpers/Csv/PostProcessing/Description.php.
/sites/firefly-iii/app/Helpers/Report/ReportHelper.phpUnexpected token: ??, line: 273, col: 59, file: /sites/firefly-iii/app/Helpers/Report/ReportHelper.php.
/sites/firefly-iii/app/Http/Controllers/AccountController.phpUnexpected token: ??, line: 169, col: 23, file: /sites/firefly-iii/app/Http/Controllers/AccountController.php.
/sites/firefly-iii/app/Http/Controllers/BudgetController.phpUnexpected token: DEFAULT, line: 187, col: 69, file: /sites/firefly-iii/app/Http/Controllers/BudgetController.php.
/sites/firefly-iii/app/Http/Controllers/Chart/AccountController.phpUnexpected token: ??, line: 80, col: 60, file: /sites/firefly-iii/app/Http/Controllers/Chart/AccountController.php.
/sites/firefly-iii/app/Http/Controllers/CsvController.phpUnexpected token: DEFAULT, line: 202, col: 109, file: /sites/firefly-iii/app/Http/Controllers/CsvController.php.
/sites/firefly-iii/app/Http/Controllers/ExportController.phpUnexpected token: DEFAULT, line: 107, col: 65, file: /sites/firefly-iii/app/Http/Controllers/ExportController.php.
/sites/firefly-iii/app/Http/Controllers/HomeController.phpUnexpected token: DEFAULT, line: 127, col: 73, file: /sites/firefly-iii/app/Http/Controllers/HomeController.php.
/sites/firefly-iii/app/Http/Controllers/JsonController.phpUnexpected token: DEFAULT, line: 116, col: 60, file: /sites/firefly-iii/app/Http/Controllers/JsonController.php.
/sites/firefly-iii/app/Http/Controllers/PiggyBankController.phpUnexpected token: DEFAULT, line: 78, col: 93, file: /sites/firefly-iii/app/Http/Controllers/PiggyBankController.php.
/sites/firefly-iii/app/Http/Controllers/Popup/ReportController.phpUnexpected token: ??, line: 246, col: 59, file: /sites/firefly-iii/app/Http/Controllers/Popup/ReportController.php.
/sites/firefly-iii/app/Http/Controllers/PreferencesController.phpUnexpected token: DEFAULT, line: 77, col: 71, file: /sites/firefly-iii/app/Http/Controllers/PreferencesController.php.
/sites/firefly-iii/app/Http/Controllers/ReportController.phpUnexpected token: DEFAULT, line: 83, col: 60, file: /sites/firefly-iii/app/Http/Controllers/ReportController.php.
/sites/firefly-iii/app/Http/Controllers/RuleGroupController.phpUnexpected token: DEFAULT, line: 189, col: 67, file: /sites/firefly-iii/app/Http/Controllers/RuleGroupController.php.
/sites/firefly-iii/app/Http/Controllers/Transaction/MassController.phpUnexpected token: DEFAULT, line: 111, col: 92, file: /sites/firefly-iii/app/Http/Controllers/Transaction/MassController.php.
/sites/firefly-iii/app/Http/Controllers/Transaction/SplitController.phpUnexpected token: ??, line: 68, col: 67, file: /sites/firefly-iii/app/Http/Controllers/Transaction/SplitController.php.
/sites/firefly-iii/app/Http/Controllers/TransactionController.phpUnexpected token: ??, line: 95, col: 64, file: /sites/firefly-iii/app/Http/Controllers/TransactionController.php.
/sites/firefly-iii/app/Http/Requests/JournalFormRequest.phpUnexpected token: ??, line: 43, col: 36, file: /sites/firefly-iii/app/Http/Requests/JournalFormRequest.php.
/sites/firefly-iii/app/Http/Requests/SplitJournalFormRequest.phpUnexpected token: ??, line: 40, col: 68, file: /sites/firefly-iii/app/Http/Requests/SplitJournalFormRequest.php.
/sites/firefly-iii/app/Http/Requests/TagFormRequest.phpUnexpected token: ??, line: 49, col: 36, file: /sites/firefly-iii/app/Http/Requests/TagFormRequest.php.
/sites/firefly-iii/app/Http/breadcrumbs.phpUnexpected token: ??, line: 594, col: 56, file: /sites/firefly-iii/app/Http/breadcrumbs.php.
/sites/firefly-iii/app/Models/AccountType.phpUnexpected token: DEFAULT, line: 35, col: 11, file: /sites/firefly-iii/app/Models/AccountType.php.
/sites/firefly-iii/app/Models/Tag.phpUnexpected token: ??, line: 81, col: 57, file: /sites/firefly-iii/app/Models/Tag.php.
/sites/firefly-iii/app/Repositories/Bill/BillRepository.phpUnexpected token: ??, line: 212, col: 48, file: /sites/firefly-iii/app/Repositories/Bill/BillRepository.php.
/sites/firefly-iii/app/Rules/Triggers/AmountExactly.phpUnexpected token: ??, line: 57, col: 49, file: /sites/firefly-iii/app/Rules/Triggers/AmountExactly.php.
/sites/firefly-iii/app/Rules/Triggers/AmountLess.phpUnexpected token: ??, line: 57, col: 49, file: /sites/firefly-iii/app/Rules/Triggers/AmountLess.php.
/sites/firefly-iii/app/Rules/Triggers/AmountMore.phpUnexpected token: ??, line: 57, col: 49, file: /sites/firefly-iii/app/Rules/Triggers/AmountMore.php.
/sites/firefly-iii/app/Support/Amount.phpUnexpected token: ??, line: 87, col: 61, file: /sites/firefly-iii/app/Support/Amount.php.
/sites/firefly-iii/app/Support/Migration/TestData.phpUnexpected token: ??, line: 267, col: 77, file: /sites/firefly-iii/app/Support/Migration/TestData.php.
/sites/firefly-iii/app/Support/Models/TransactionJournalSupport.phpUnexpected token: ??, line: 286, col: 52, file: /sites/firefly-iii/app/Support/Models/TransactionJournalSupport.php.
/sites/firefly-iii/app/Support/Twig/General.phpUnexpected token: ??, line: 112, col: 44, file: /sites/firefly-iii/app/Support/Twig/General.php.
/sites/firefly-iii/app/Validation/FireflyValidator.phpUnexpected token: ??, line: 84, col: 33, file: /sites/firefly-iii/app/Validation/FireflyValidator.php.
\ No newline at end of file