mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Consistency for #2477
This commit is contained in:
parent
aa1b9fa5a5
commit
e16adca336
@ -58,6 +58,7 @@ class RuleTransformer extends AbstractTransformer
|
||||
* @param Rule $rule
|
||||
*
|
||||
* @return array
|
||||
* @throws FireflyException
|
||||
*/
|
||||
public function transform(Rule $rule): array
|
||||
{
|
||||
@ -74,7 +75,7 @@ class RuleTransformer extends AbstractTransformer
|
||||
'active' => $rule->active,
|
||||
'strict' => $rule->strict,
|
||||
'stop_processing' => $rule->stop_processing,
|
||||
'moment' => $this->getRuleMoment($rule),
|
||||
'trigger' => $this->getRuleTrigger($rule),
|
||||
'triggers' => $this->triggers($rule),
|
||||
'actions' => $this->actions($rule),
|
||||
'links' => [
|
||||
@ -120,7 +121,7 @@ class RuleTransformer extends AbstractTransformer
|
||||
* @return string
|
||||
* @throws FireflyException
|
||||
*/
|
||||
private function getRuleMoment(Rule $rule): string
|
||||
private function getRuleTrigger(Rule $rule): string
|
||||
{
|
||||
$moment = null;
|
||||
$triggers = $this->ruleRepository->getRuleTriggers($rule);
|
||||
|
Loading…
Reference in New Issue
Block a user