Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
22 | 2 | public function apply(AbstractNode $node) |
|
23 | { |
||
24 | 2 | $meaninglessNames = $this->getStringProperty('meaninglessNames'); |
|
25 | 2 | $delimiter = $this->getStringProperty('delimiter'); |
|
26 | 2 | $methodName = $node->getImage(); |
|
27 | |||
28 | 2 | if (in_array(strtolower($methodName), explode($delimiter, strtolower($meaninglessNames)))) { |
|
29 | 1 | $this->addViolation($node, [$methodName, $meaninglessNames]); |
|
30 | 1 | } |
|
31 | 2 | } |
|
32 | } |
||
33 |