Total Lines | 15 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | interface SocialProvider |
||
11 | { |
||
12 | /** |
||
13 | * Redirect the user to the authentication page for the provider. |
||
14 | * |
||
15 | * @return \Symfony\Component\HttpFoundation\RedirectResponse |
||
16 | */ |
||
17 | public function redirect(); |
||
18 | /** |
||
19 | * Get the User instance for the authenticated user. |
||
20 | * |
||
21 | * @return \Laravel\Socialite\Contracts\User |
||
22 | */ |
||
23 | // public function user(); |
||
|
|||
24 | } |
||
25 |
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.