@@ 106-110 (lines=5) @@ | ||
103 | } |
|
104 | $class = new \ReflectionClass($dependency['class']); |
|
105 | $constructor = $class->getConstructor(); |
|
106 | if ($constructor && $constructor->getParameters()) { |
|
107 | $temp['has_constructor'] = true; |
|
108 | } else { |
|
109 | $temp['has_constructor'] = false; |
|
110 | } |
|
111 | } else { |
|
112 | $temp['class'] = ''; |
|
113 | } |
|
@@ 236-240 (lines=5) @@ | ||
233 | if ($class) { |
|
234 | $this->addClassToUses($class); |
|
235 | $constructor = $class->getConstructor(); |
|
236 | if ($constructor && $constructor->getParameters()) { |
|
237 | $temp['has_constructor'] = true; |
|
238 | } else { |
|
239 | $temp['has_constructor'] = false; |
|
240 | } |
|
241 | } |
|
242 | $fullClassName = $class ? $class->getName() : 'non_object'; |
|
243 | if (strpos($fullClassName, '\\')) { |