Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
17 | 24 | protected function isDataStructure(ClassNode $node) |
|
18 | { |
||
19 | 24 | if (!preg_match($this->getRegex('dataStructureNamespaceRegex'), $node->getNamespaceName())) { |
|
20 | 13 | return false; |
|
21 | } |
||
22 | |||
23 | 11 | if (!preg_match($this->getRegex('dataStructureClassNameRegex'), $node->getName())) { |
|
24 | 3 | return false; |
|
25 | } |
||
26 | |||
27 | 8 | return true; |
|
28 | } |
||
29 | |||
37 |