This commit is contained in:
James Cole
2017-09-25 09:28:16 +02:00
parent c917d2b1c4
commit ea1d543795
8 changed files with 59 additions and 10 deletions

View File

@@ -40,7 +40,7 @@ final class Processor
public $rule;
/** @var Collection */
public $triggers;
/** @var int */
protected $foundTriggers = 0;
/**
@@ -170,9 +170,14 @@ final class Processor
// get all triggers:
$triggered = $this->triggered();
if ($triggered) {
Log::debug('Rule is triggered, go to actions.');
if ($this->actions->count() > 0) {
Log::debug('Has more than zero actions.');
$this->actions();
}
if ($this->actions->count() === 0) {
Log::info('Rule has no actions!');
}
return true;
}