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