Completed
Branch master (f418e9)
by Anthony
04:38
created
core/admin/droitsacces/DroitAcces.class.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -80,8 +80,8 @@  discard block
 block discarded – undo
80 80
 		/**
81 81
 		 * pour savoir si en fonction des droits d'accès de l'utilisateur il peu ou non accéder à cete page
82 82
 		 * on passe outre les test si on est super admin
83
-		 * @param $page
84
-		 * @param null $id_page
83
+		 * @param string $page
84
+		 * @param string $page
85 85
 		 * @return bool
86 86
 		 */
87 87
 		public function getDroitAccesPage($page) {
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 		 * si on est super admin on passe outre tous les tests
144 144
 		 * @param $droit
145 145
 		 * @param $id_page
146
-		 * @return bool
146
+		 * @return boolean|null
147 147
 		 */
148 148
 		public function getDroitAccesContenu($droit, $id_page) {
149 149
 			$dbc = \core\App::getDb();
Please login to merge, or discard this patch.
core/auth/Encrypt.class.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,6 +13,10 @@  discard block
 block discarded – undo
13 13
 		
14 14
 		
15 15
 		//-------------------------- GETTER ----------------------------------------------------------------------------//
16
+
17
+		/**
18
+		 * @return string
19
+		 */
16 20
 		public static function getParams($id_identite=null) {
17 21
 			if ($id_identite != null) {
18 22
 				$dbc = App::getDb();
@@ -101,7 +105,7 @@  discard block
 block discarded – undo
101 105
 
102 106
 		/**
103 107
 		 * sauvegarde les parametres pour retrouver le mot de passe dans la bdd
104
-		 * @param $params
108
+		 * @param string $params
105 109
 		 * @param $id_identite
106 110
 		 */
107 111
 		public static function setSaveParams($params, $id_identite) {
Please login to merge, or discard this patch.
core/auth/Inscription.class.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -55,6 +55,9 @@
 block discarded – undo
55 55
 			}
56 56
 		}
57 57
 
58
+		/**
59
+		 * @param integer $longeur
60
+		 */
58 61
 		protected function getTestLongueur($value, $longeur) {
59 62
 			if (strlen($value) > $longeur) {
60 63
 				return true;
Please login to merge, or discard this patch.
core/auth/Membre.class.php 1 patch
Doc Comments   +6 added lines, -1 removed lines patch added patch discarded remove patch
@@ -136,6 +136,11 @@  discard block
 block discarded – undo
136 136
 			}
137 137
 		}
138 138
 		
139
+		/**
140
+		 * @param string $old_mdp
141
+		 * @param string $new_mdp
142
+		 * @param string $verif_new_mdp
143
+		 */
139 144
 		public function setMdp($old_mdp, $new_mdp, $verif_new_mdp) {
140 145
 			$dbc = \core\App::getDb();
141 146
 
@@ -271,7 +276,7 @@  discard block
 block discarded – undo
271 276
 		/**
272 277
 		 * Fonction  qui permet de verifier la securite d'un mdp
273 278
 		 * @param string $mdp
274
-		 * @return float
279
+		 * @return integer
275 280
 		 */
276 281
 		function testpassword($mdp)	{
277 282
 			$longueur = strlen($mdp);
Please login to merge, or discard this patch.
core/Cache.class.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 		
54 54
 		//-------------------------- GETTER ----------------------------------------------------------------------------//
55 55
 		/**
56
-		 * @return bool
56
+		 * @return boolean|null
57 57
 		 * fonction verifie en bdd si on a déjà enregistrer le fichier en cache
58 58
 		 * si il ne l'est pas on le met, et si il y est et que reload cache == 0 on prend le fichier qui est en cache
59 59
 		 * sinon soit on update la bdd et on refait un cache soit on crée tout
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 		}
133 133
 
134 134
 		/**
135
-		 * @param $contenu_fichier
135
+		 * @param string $contenu_fichier
136 136
 		 * fonction qui met en cache le contenu du fichier enregistrer dans le ob
137 137
 		 */
138 138
 		private function setCache($contenu_fichier) {
Please login to merge, or discard this patch.
core/Configuration.class.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -59,6 +59,10 @@
 block discarded – undo
59 59
         public function getNomSite(){
60 60
             return $this->nom_site;
61 61
         }
62
+
63
+        /**
64
+         * @return string|null
65
+         */
62 66
         public function getMailSite(){
63 67
             return $this->mail_site;
64 68
         }
Please login to merge, or discard this patch.
core/Database.class.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
 		 * @param $table
96 96
 		 * @param $champ
97 97
 		 * @param $value
98
-		 * @return bool
98
+		 * @return boolean|null
99 99
 		 */
100 100
 		public function rechercherEgalite($table, $champ, $value, $id_table=null, $id=null) {
101 101
 			if ($id == null) {
Please login to merge, or discard this patch.
core/functions/DateHeure.class.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 		 * Fonction pour passer du format H:m en seconde
21 21
 		 * @param int $heure recoit l'heure a passer en minute
22 22
 		 * @param int $minute recoit les minutes a passer en minute
23
-		 * @return int
23
+		 * @return double|null
24 24
 		 **/
25 25
 		public static function Heureenseconde($heure, $minute) {
26 26
 			if ((is_numeric($heure)) && (is_numeric($minute))) {
@@ -38,7 +38,6 @@  discard block
 block discarded – undo
38 38
 
39 39
 		/**
40 40
 		 * passe des secondes au format H:m
41
-		 * @param int $temps correspond aux format seconde à repasser en H:m
42 41
 		 * @return string
43 42
 		 */
44 43
 		public static function Secondeenheure($seconde) {
@@ -77,7 +76,7 @@  discard block
 block discarded – undo
77 76
 
78 77
 		/**
79 78
 		 * affiche la date du jour au format jeudi 12 janvier
80
-		 * @param string $date si NULL on prend la date du jour sinon on prend la date qui est mise
79
+		 * @param integer $date si NULL on prend la date du jour sinon on prend la date qui est mise
81 80
 		 * @param int $abreger si NOT NULL, on abrege la date, on enleve la semaine et on coupe le mois à 3 lettres
82 81
 		 * @return string
83 82
 		 */
Please login to merge, or discard this patch.
core/images/Images.class.php 1 patch
Doc Comments   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 		 * @param $old_image_req
75 75
 		 * @param int $autorize_empty
76 76
 		 * @param int $delete_old_img
77
-		 * @return bool|string -> renvoi false si err sinon renvoi le chemin vers l'img
77
+		 * @return null|boolean -> renvoi false si err sinon renvoi le chemin vers l'img
78 78
 		 */
79 79
 		public function setEnvoyerImage($name, $old_image_req=null, $autorize_empty=1, $delete_old_img=1) {
80 80
 			$dbc = \core\App::getDb();
@@ -178,9 +178,7 @@  discard block
 block discarded – undo
178 178
 
179 179
 		/**
180 180
 		 * fonction qui permet de supprimer une image en fonction d'une requete ou de la variable old_image
181
-		 * @param null $chemin_img
182
-		 * @param null $req_image
183
-		 * @return bool
181
+		 * @return boolean|null
184 182
 		 */
185 183
 		public function setDeleteImage($nom_image=null) {
186 184
 			//si pas de requete et qu'on a une old_img on la supprime
Please login to merge, or discard this patch.