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