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