| 1 | <?php |
||
| 8 | class AuthService extends SkautisService |
||
| 9 | { |
||
| 10 | |||
| 11 | /** |
||
| 12 | * Gets login url |
||
| 13 | * |
||
| 14 | * @param string $backlink |
||
| 15 | * @return string |
||
| 16 | */ |
||
| 17 | public function getLoginUrl($backlink) |
||
| 21 | |||
| 22 | |||
| 23 | /** |
||
| 24 | * Sets initial data after login to SkautIS |
||
| 25 | * |
||
| 26 | * @param array $arr |
||
| 27 | * @return void |
||
| 28 | */ |
||
| 29 | public function setInit(array $arr) |
||
| 34 | |||
| 35 | |||
| 36 | /** |
||
| 37 | * Return url for log out |
||
| 38 | * |
||
| 39 | * @param void |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | public function getLogoutUrl() |
||
| 46 | |||
| 47 | } |
||
| 48 |
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.