Conditions | 4 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
27 | public function decorateSniffsWithCustomRules(array $sniffs, array $ruleset) |
||
|
|||
28 | { |
||
29 | dump($ruleset); |
||
30 | die; |
||
31 | // todo: put to SniffDispatcher on sniff loading? |
||
32 | // $ruleset = $this->rulesetBuilder->getRuleset(); |
||
33 | |||
34 | foreach ($sniffs as $sniffCode => $sniffObject) { |
||
35 | if (!isset($ruleset[$sniffCode]['properties'])) { |
||
36 | continue; |
||
37 | } |
||
38 | |||
39 | foreach ($ruleset[$sniffCode]['properties'] as $name => $value) { |
||
40 | $this->setSniffProperty($sniffCode, $name, $value); |
||
41 | } |
||
42 | } |
||
43 | } |
||
44 | |||
71 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.