Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | protected function collectMethods($instance, $filter = ReflectionMethod::IS_PUBLIC) |
||
17 | { |
||
18 | static $methodsCache = null; |
||
19 | |||
20 | if (null === $methodsCache) { |
||
21 | $methodsCache = $instance |
||
22 | ? (new ReflectionClass($instance))->getMethods($filter) |
||
23 | : []; |
||
24 | } |
||
25 | |||
26 | return $methodsCache; |
||
27 | } |
||
29 |