1 | <?php |
||
21 | class CSV_Util extends \eoxia\Singleton_Util { |
||
22 | /** |
||
23 | * Le constructeur obligatoirement pour utiliser la classe \eoxia\Singleton_Util |
||
24 | * |
||
25 | * @return void nothing |
||
26 | */ |
||
27 | protected function construct() {} |
||
28 | |||
29 | /** |
||
30 | * Lit un fichier CSV et forme un tableau 2D selon $list_index |
||
31 | * |
||
32 | * @param string $csv_path Le chemin vers le fichier .csv. |
||
33 | * @param array $list_index Les index personnalisés. |
||
34 | * @return array Le tableau 2D avec les données du csv |
||
35 | */ |
||
36 | public function read_and_set_index( $csv_path, $list_index = array() ) { |
||
58 | } |
||
59 | } // End if(). |
||
|
|||
60 |
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.