mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-06 14:12:15 +00:00
Some cleaning up.
This commit is contained in:
@@ -219,7 +219,7 @@ class Piggybank
|
||||
*/
|
||||
public function validateRepeatedExpenses()
|
||||
{
|
||||
if(!\Auth::check()) {
|
||||
if (!\Auth::check()) {
|
||||
return;
|
||||
}
|
||||
/** @var \FireflyIII\Database\PiggyBank\RepeatedExpense $repository */
|
||||
|
||||
@@ -19,6 +19,9 @@ class Transaction
|
||||
{
|
||||
\Cache::forget('account.' . $transaction->account_id . '.latestBalance');
|
||||
\Cache::forget('account.' . $transaction->account_id . '.lastActivityDate');
|
||||
|
||||
// delete transaction:
|
||||
$transaction->delete();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -14,7 +14,6 @@ class TransactionJournal
|
||||
|
||||
/**
|
||||
* @param \TransactionJournal $journal
|
||||
* @param int $id
|
||||
*/
|
||||
public function store(\TransactionJournal $journal)
|
||||
{
|
||||
|
||||
@@ -130,7 +130,7 @@ class Date
|
||||
case 'half-year':
|
||||
$month = intval($theCurrentEnd->format('m'));
|
||||
$currentEnd->endOfYear();
|
||||
if($month <= 6) {
|
||||
if ($month <= 6) {
|
||||
$currentEnd->subMonths(6);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user