| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 56 | 2 | private function getRulesets() |
|
| 57 | { |
||
| 58 | 2 | if ($this->rulesets) { |
|
| 59 | 2 | return $this->rulesets; |
|
| 60 | } |
||
| 61 | |||
| 62 | 2 | foreach ($this->findRulesetFiles() as $rulesetFile) { |
|
| 63 | 2 | $rulesetXml = simplexml_load_file($rulesetFile); |
|
| 64 | |||
| 65 | 2 | $rulesetName = (string) $rulesetXml['name']; |
|
| 66 | 2 | $this->rulesets[$rulesetName] = $rulesetFile; |
|
| 67 | } |
||
| 68 | |||
| 69 | 2 | return $this->rulesets; |
|
| 70 | } |
||
| 71 | |||
| 92 |