1 | <?php |
||
21 | class Module extends \Icybee\Module |
||
22 | { |
||
23 | const OPERATION_LOGIN = 'login'; |
||
24 | const OPERATION_LOGOUT = 'logout'; |
||
25 | const OPERATION_ACTIVATE = 'activate'; |
||
26 | const OPERATION_DEACTIVATE = 'deactivate'; |
||
27 | const OPERATION_IS_UNIQUE = 'is_unique'; |
||
28 | |||
29 | static public $config_default = [ |
||
30 | |||
31 | 'notifies' => [ |
||
32 | |||
33 | /* |
||
|
|||
34 | 'password' => [ |
||
35 | |||
36 | 'subject' => 'Vos paramètres de connexion à Icybee', |
||
37 | 'from' => '[email protected]', |
||
38 | 'template' => 'Bonjour, |
||
39 | |||
40 | Voici vos paramètres de connexion au système de gestion de contenu Icybee : |
||
41 | |||
42 | Identifiant : "#{@username}" ou "#{@email}" |
||
43 | Mot de passe : "#{@password}" |
||
44 | |||
45 | Une fois connecté vous pourrez modifier votre mot de passe. Pour cela cliquez sur votre nom dans la barre de titre et éditez votre profil. |
||
46 | |||
47 | Cordialement' |
||
48 | ] |
||
49 | */ |
||
50 | |||
51 | ] |
||
52 | |||
53 | ]; |
||
54 | |||
55 | protected function resolve_primary_model_tags($tags) |
||
63 | |||
64 | protected function block_connect() |
||
70 | |||
71 | protected function block_logout() |
||
90 | |||
91 | protected function block_profile() |
||
107 | } |
||
108 |
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.