1 | <?php |
||
21 | class Date_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 | * Renvoie la date au format SQL |
||
31 | * |
||
32 | * @param string $date La date à formater. |
||
33 | * @return string La date formatée au format SQL |
||
34 | */ |
||
35 | public function formatte_date( $date ) { |
||
44 | |||
45 | public function mysqldate2wordpress( $date, $with_time = true ) { |
||
53 | } |
||
54 | } // End if(). |
||
|
|||
55 |
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.