Conditions | 3 |
Paths | 2 |
Total Lines | 4 |
Code Lines | 2 |
Lines | 0 |
Ratio | 0 % |
Tests | 2 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
29 | public function throwExceptionOnInvalidParameter(string $rRule, string $ruleKey): void |
||
30 | { |
||
31 | 1 | if ((preg_match(sprintf('/%s=([\d\w]+)/', $ruleKey), $rRule, $matches) === 1)) { |
|
32 | 1 | throw new InvalidRruleException($ruleKey, ((count($matches) > 0) ? implode(', ', array_slice($matches, 1)) : '')); |
|
33 | } |
||
36 |