1 | <?php |
||
6 | class InitialiseClass { |
||
7 | protected static $ressource; |
||
8 | protected static $base; |
||
9 | protected static $batiment; |
||
10 | protected static $unite; |
||
11 | protected static $groupe_unite; |
||
12 | protected static $centre_recherche; |
||
13 | protected static $missions_aleatoire; |
||
14 | protected static $relation_faction; |
||
15 | protected static $database; |
||
16 | |||
17 | |||
18 | |||
19 | //-------------------------- GETTER ----------------------------------------------------------------------------// |
||
20 | |||
21 | //initilisation of all classes of battle |
||
22 | //initialisation of Ressource class |
||
23 | public static function getRessource() { |
||
30 | |||
31 | //initialisation of Base class |
||
32 | public static function getBase() { |
||
39 | |||
40 | //initialisation of Batiment class |
||
41 | public static function getBatiment() { |
||
48 | |||
49 | //initialisation of Unite class |
||
50 | public static function getUnite() { |
||
57 | |||
58 | //initialisation of GroupeUnite class |
||
59 | public static function getGoupeUnite() { |
||
66 | |||
67 | //initialisation of CentreRecherche class |
||
68 | public static function getCentreRecherche() { |
||
75 | |||
76 | //initialisation of MissionsAleatoire class |
||
77 | public static function getMissionsAleatoire() { |
||
84 | |||
85 | //initialisation of Faction class |
||
86 | public static function getRelationFaction() { |
||
93 | |||
94 | //initialisation of Database Core connexion |
||
95 | public static function getDb() { |
||
103 | //-------------------------- END GETTER ----------------------------------------------------------------------------// |
||
104 | |||
105 | |||
106 | //-------------------------- SETTER ----------------------------------------------------------------------------// |
||
107 | //-------------------------- END SETTER ----------------------------------------------------------------------------// |
||
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.