@@ 813-818 (lines=6) @@ | ||
810 | $params = array_slice($rule, 2); |
|
811 | ||
812 | // check scenario |
|
813 | if (!empty($rule['on'])) { |
|
814 | $onScenarios = explode(',', $rule['on']); |
|
815 | if (!in_array($this->getScenario(), $onScenarios)) { |
|
816 | continue; |
|
817 | } |
|
818 | } |
|
819 | ||
820 | if (!empty($rule['except'])) { |
|
821 | $exceptScenarios = explode(',', $rule['except']); |
|
@@ 820-825 (lines=6) @@ | ||
817 | } |
|
818 | } |
|
819 | ||
820 | if (!empty($rule['except'])) { |
|
821 | $exceptScenarios = explode(',', $rule['except']); |
|
822 | if (in_array($this->getScenario(), $exceptScenarios)) { |
|
823 | continue; |
|
824 | } |
|
825 | } |
|
826 | ||
827 | if (method_exists($this, $ruleName)) { |
|
828 | // method |