Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Did some cleanup [skip ci]
James Cole2738ac5a5ce8
diff --git a/app/Http/breadcrumbs.php b/app/Http/breadcrumbs.phpindex 8f575043e4..549c4396d6 100644--- a/app/Http/breadcrumbs.php+++ b/app/Http/breadcrumbs.php@@ -114,7 +114,7 @@ Breadcrumbs::register($breadcrumbs->push(e($budget->name), route('budgets.show', $budget->id));if (!is_null($repetition) && !is_null($repetition->id)) {$breadcrumbs->push(- Navigation::periodShow($repetition->startdate, $repetition->budgetlimit->repeat_freq), route('budgets.show', $budget->id, $repetition->id)+ Navigation::periodShow($repetition->startdate, $repetition->budgetLimit->repeat_freq), route('budgets.show', $budget->id, $repetition->id));}}diff --git a/app/Models/TransactionJournal.php b/app/Models/TransactionJournal.phpindex a6f868937e..51f7c48e98 100644--- a/app/Models/TransactionJournal.php+++ b/app/Models/TransactionJournal.php@@ -204,7 +204,6 @@ class TransactionJournal extends Modelswitch ($this->transactionType->type) {case 'Deposit':return $this->transactions()->where('amount', '>', 0)->first()->account;- break;case 'Withdrawal':return $this->transactions()->where('amount', '<', 0)->first()->account;@@ -275,7 +274,6 @@ class TransactionJournal extends Modelswitch ($this->transactionType->type) {case 'Deposit':return $this->transactions()->where('amount', '<', 0)->first()->account;- break;case 'Withdrawal':return $this->transactions()->where('amount', '>', 0)->first()->account;diff --git a/app/Repositories/Tag/TagRepository.php b/app/Repositories/Tag/TagRepository.phpindex 0c48669c7d..77b551cc54 100644--- a/app/Repositories/Tag/TagRepository.php+++ b/app/Repositories/Tag/TagRepository.php@@ -43,13 +43,10 @@ class TagRepository implements TagRepositoryInterface$journal->tags()->save($tag);return true;- break;case 'balancingAct':return $this->connectBalancingAct($journal, $tag);- break;case 'advancePayment':return $this->connectAdvancePayment($journal, $tag);- break;}return false;diff --git a/app/Support/Twig/Budget.php b/app/Support/Twig/Budget.phpindex 07efad3191..874ca15424 100644--- a/app/Support/Twig/Budget.php+++ b/app/Support/Twig/Budget.php@@ -19,6 +19,7 @@ class Budget extends Twig_Extension*/public function getFunctions(){+ $functions = [];$functions[] = new Twig_SimpleFunction('spentInRepetitionCorrected', function (LimitRepetition $repetition) {$sumdiff --git a/app/Support/Twig/Journal.php b/app/Support/Twig/Journal.phpindex c4c53cd915..ea4fb950f1 100644--- a/app/Support/Twig/Journal.php+++ b/app/Support/Twig/Journal.php@@ -32,19 +32,14 @@ class Journal extends Twig_Extensionswitch ($type) {case 'Withdrawal':return '<span class="glyphicon glyphicon-arrow-left" title="' . trans('firefly.withdrawal') . '"></span>';- break;case 'Deposit':return '<span class="glyphicon glyphicon-arrow-right" title="' . trans('firefly.deposit') . '"></span>';- break;case 'Transfer':return '<i class="fa fa-fw fa-exchange" title="' . trans('firefly.transfer') . '"></i>';- break;case 'Opening balance':return '<span class="glyphicon glyphicon-ban-circle" title="' . trans('firefly.openingBalance') . '"></span>';- break;default:return '';- break;}diff --git a/app/Validation/FireflyValidator.php b/app/Validation/FireflyValidator.phpindex 9ee4a7eaed..10b56e5b47 100644--- a/app/Validation/FireflyValidator.php+++ b/app/Validation/FireflyValidator.php@@ -133,6 +133,7 @@ class FireflyValidator extends Validatortry {$value = Crypt::decrypt($value);} catch (DecryptException $e) {+ // if it fails, probably not encrypted.}