1 | <?php |
||
12 | class LogController extends Controller |
||
13 | { |
||
14 | /** |
||
15 | * Gets a log file |
||
16 | * |
||
17 | * @param $id - the line of the cron in the cron table |
||
18 | * @param $type - the type of file, log or error |
||
19 | * |
||
20 | * @return Response |
||
21 | */ |
||
22 | public function fileAction($id, $type) |
||
36 | |||
37 | /** |
||
38 | * Adds a flash to the flash bag where flashes are array of messages |
||
39 | * |
||
40 | * @param $type |
||
41 | * @param $message |
||
42 | */ |
||
43 | protected function addFlash($type, $message) |
||
52 | } |
||
53 |
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.