1 | <?php |
||
19 | class ClassExtractor implements ExtractorInterface { |
||
20 | |||
21 | /** |
||
22 | * @var Searcher |
||
23 | */ |
||
24 | private $searcher; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | private $namespace; |
||
30 | |||
31 | /** |
||
32 | * Constructor |
||
33 | * |
||
34 | * @param Searcher $searcher |
||
35 | */ |
||
36 | public function __construct(Searcher $searcher) |
||
40 | |||
41 | /** |
||
42 | * Extract class from position |
||
43 | * |
||
44 | * @param $n |
||
45 | * @param TokenCollection $tokens |
||
46 | * @return ReflectedClass |
||
47 | */ |
||
48 | public function extract(&$n, TokenCollection $tokens) |
||
67 | |||
68 | /** |
||
69 | * @param string $namespace |
||
70 | */ |
||
71 | public function setNamespace($namespace) |
||
75 | |||
76 | }; |
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()
can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.