1 | <?php |
||
6 | class GETFile extends GET { |
||
7 | |||
8 | /** |
||
9 | * File to dump response |
||
10 | * @var resource |
||
11 | */ |
||
12 | protected $filePath; |
||
13 | |||
14 | /** |
||
15 | * File Handle used by Curl |
||
16 | * @var |
||
17 | */ |
||
18 | protected $fileHandle; |
||
19 | |||
20 | /** |
||
21 | * @inheritdoc |
||
22 | */ |
||
23 | protected static $_DEFAULT_HEADERS = array(); |
||
24 | |||
25 | /** |
||
26 | * Set Temp File for File Response |
||
27 | * @inheritdoc |
||
28 | */ |
||
29 | public function send(){ |
||
33 | |||
34 | public function setFile($filePath){ |
||
40 | |||
41 | protected function initFile(){ |
||
49 | |||
50 | protected function closeFile(){ |
||
55 | |||
56 | public function getFile(){ |
||
59 | |||
60 | public function close(){ |
||
64 | |||
65 | } |
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.