Conditions | 4 |
Paths | 4 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 4.0312 |
Changes | 0 |
1 | <?php |
||
41 | 6 | private function isController(AbstractNode $node) |
|
42 | { |
||
43 | 6 | if (false === $node instanceof ClassNode) { |
|
44 | return false; |
||
45 | } |
||
46 | |||
47 | 6 | if (true === $node->isAbstract()) { |
|
48 | 1 | return false; |
|
49 | } |
||
50 | |||
51 | 5 | if ('Controller' === substr($node->getImage(), -10, 10)) { |
|
52 | 2 | return true; |
|
53 | } |
||
54 | |||
55 | 3 | return false; |
|
56 | } |
||
57 | } |
||
58 |