Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
38 | 4 | public function getRulesetPathForStandardName($standardName) |
|
39 | { |
||
40 | 4 | if (isset($this->getRulesets()[$standardName])) { |
|
41 | 3 | return $this->getRulesets()[$standardName]; |
|
|
|||
42 | } |
||
43 | |||
44 | 1 | throw new Exception( |
|
45 | sprintf( |
||
46 | 1 | 'Ruleset for standard "%s" was not found. Found standards are: %s.', |
|
47 | $standardName, |
||
48 | 1 | implode($this->getRulesetNames(), ', ') |
|
49 | ) |
||
50 | ); |
||
51 | } |
||
52 | |||
92 |