Conditions | 2 |
Paths | 2 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | 1 | public function verify(array $patternConfig, array $counterConfig): void |
|
|
|||
22 | { |
||
23 | // verify number tag |
||
24 | 1 | preg_match_all(Tag::REG_EXPS[Tag::NUMBER], $patternConfig['pattern'], $matches); |
|
25 | 1 | if (empty($matches[0])) { |
|
26 | 1 | throw new NumberingGeneratorException(sprintf('No {%s} tag in pattern', Tag::NUMBER)); |
|
27 | } |
||
34 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.