Conditions | 3 |
Paths | 2 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
35 | public function throwExceptionOnInvalidParameter($rRule, $ruleKey) |
||
36 | { |
||
37 | 1 | if ((preg_match(sprintf('/%s=([\d\w]+)/', $ruleKey), $rRule, $matches) === 1)) { |
|
38 | 1 | throw new InvalidRruleException($ruleKey, ((count($matches) > 0)? implode(', ', array_slice($matches, 1)) : '')); |
|
39 | } |
||
40 | 1 | } |
|
41 | } |
||
42 |