mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Code cleanup. [skip ci]
This commit is contained in:
@@ -21,12 +21,10 @@ use Log;
|
||||
*/
|
||||
class ToAccountContains implements TriggerInterface
|
||||
{
|
||||
/** @var RuleTrigger */
|
||||
protected $trigger;
|
||||
|
||||
/** @var TransactionJournal */
|
||||
protected $journal;
|
||||
|
||||
/** @var RuleTrigger */
|
||||
protected $trigger;
|
||||
|
||||
/**
|
||||
* TriggerInterface constructor.
|
||||
@@ -40,6 +38,18 @@ class ToAccountContains implements TriggerInterface
|
||||
$this->journal = $journal;
|
||||
}
|
||||
|
||||
/**
|
||||
* @{inheritdoc}
|
||||
*
|
||||
* @see TriggerInterface::matchesAnything
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function matchesAnything()
|
||||
{
|
||||
return $this->trigger->trigger_value === "";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
@@ -63,17 +73,4 @@ class ToAccountContains implements TriggerInterface
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @{inheritdoc}
|
||||
*
|
||||
* @see TriggerInterface::matchesAnything
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function matchesAnything()
|
||||
{
|
||||
return $this->trigger->trigger_value === "";
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user