Conditions | 4 |
Paths | 4 |
Total Lines | 18 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 4 |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
22 | 11 | protected function isEntity(ClassNode $node) |
|
23 | { |
||
24 | 11 | $docComment = $node->getDocComment(); |
|
25 | |||
26 | 11 | if (0 < preg_match($this->getStringProperty('classIsEntityRegex'), $docComment)) { |
|
27 | 2 | return true; |
|
28 | } |
||
29 | |||
30 | 9 | if (true === $node->isAbstract()) { |
|
31 | 1 | return false; |
|
32 | } |
||
33 | |||
34 | 8 | if (0 < preg_match($this->getStringProperty('entityRegex'), $docComment)) { |
|
35 | 6 | return true; |
|
36 | } |
||
37 | |||
38 | 2 | return false; |
|
39 | } |
||
40 | } |
||
41 |