1 | <?php |
||
9 | class DummyClass extends AbstractHttpChecker |
||
10 | { |
||
11 | /* |
||
12 | * The URL you want to request. |
||
13 | */ |
||
14 | protected $url = 'https://yourwebsite.com'; |
||
15 | |||
16 | /* |
||
17 | * The method you want to use. |
||
18 | */ |
||
19 | protected $method = 'GET'; |
||
20 | |||
21 | /* |
||
22 | * Here you can specify the Guzzle HTTP options. |
||
23 | * |
||
24 | * @return \Pbmedia\ApiHealth\Checkers\AbstractHttpChecker |
||
25 | */ |
||
26 | public static function create() |
||
36 | |||
37 | /** |
||
38 | * Defines the checker's schedule. |
||
39 | * |
||
40 | * @param \Illuminate\Console\Scheduling\Event $event |
||
41 | * @return null |
||
42 | */ |
||
43 | public function schedule(Event $event) |
||
50 | } |
||
51 |
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.