Conditions | 4 |
Paths | 2 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
19 | public function __construct(TokenStorageInterface $tokenStorage) |
||
20 | { |
||
21 | if ($tokenStorage->getToken() && is_object($tokenStorage->getToken()->getUser()) && $tokenStorage->getToken()->getUser()->getUser()) { |
||
22 | $this->user = $tokenStorage->getToken()->getUser()->getUser(); |
||
23 | } else { |
||
24 | $this->user = null; |
||
25 | } |
||
50 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.