mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-18 15:39:50 +00:00
Various code cleanup.
This commit is contained in:
@@ -51,6 +51,7 @@ class ClearNotes implements ActionInterface
|
||||
* @param TransactionJournal $journal
|
||||
*
|
||||
* @return bool
|
||||
*
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function act(TransactionJournal $journal): bool
|
||||
|
||||
@@ -67,6 +67,7 @@ class RemoveTag implements ActionInterface
|
||||
Log::debug(sprintf('RuleAction RemoveTag removed tag #%d ("%s") from journal #%d.', $tag->id, $tag->tag, $journal->id));
|
||||
$journal->tags()->detach([$tag->id]);
|
||||
$journal->touch();
|
||||
|
||||
return true;
|
||||
}
|
||||
Log::debug(sprintf('RuleAction RemoveTag tried to remove tag "%s" from journal #%d but no such tag exists.', $name, $journal->id));
|
||||
|
||||
@@ -89,6 +89,7 @@ class SetBudget implements ActionInterface
|
||||
|
||||
$journal->budgets()->sync([$budget->id]);
|
||||
$journal->touch();
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,7 +35,6 @@ class SetDescription implements ActionInterface
|
||||
private $action;
|
||||
|
||||
/**
|
||||
*
|
||||
* TriggerInterface constructor.
|
||||
*
|
||||
* @param RuleAction $action
|
||||
|
||||
@@ -59,6 +59,7 @@ class SetDestinationAccount implements ActionInterface
|
||||
|
||||
/**
|
||||
* Set destination account to X
|
||||
*
|
||||
* @param TransactionJournal $journal
|
||||
*
|
||||
* @return bool
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace FireflyIII\TransactionRules\Actions;
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace FireflyIII\TransactionRules\Actions;
|
||||
@@ -42,7 +41,7 @@ class SetSourceAccount implements ActionInterface
|
||||
/** @var TransactionJournal The journal */
|
||||
private $journal;
|
||||
|
||||
/** @var Account The new source account*/
|
||||
/** @var Account The new source account */
|
||||
private $newSourceAccount;
|
||||
|
||||
/** @var AccountRepositoryInterface Account repository */
|
||||
|
||||
Reference in New Issue
Block a user