Various code cleanup.

This commit is contained in:
James Cole
2017-12-22 18:32:43 +01:00
parent f13a93348f
commit 8bd76d1ff0
188 changed files with 383 additions and 396 deletions

View File

@@ -51,6 +51,7 @@ class ClearNotes implements ActionInterface
* @param TransactionJournal $journal
*
* @return bool
*
* @throws \Exception
*/
public function act(TransactionJournal $journal): bool

View File

@@ -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));

View File

@@ -89,6 +89,7 @@ class SetBudget implements ActionInterface
$journal->budgets()->sync([$budget->id]);
$journal->touch();
return true;
}
}

View File

@@ -35,7 +35,6 @@ class SetDescription implements ActionInterface
private $action;
/**
*
* TriggerInterface constructor.
*
* @param RuleAction $action

View File

@@ -59,6 +59,7 @@ class SetDestinationAccount implements ActionInterface
/**
* Set destination account to X
*
* @param TransactionJournal $journal
*
* @return bool

View File

@@ -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;

View File

@@ -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 */