Passed
Push — master ( 992b1f...14cd89 )
by Anthony
07:16
created
modules/bataille/app/controller/Faction.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 		}
25 25
 		
26 26
 		/**
27
-		 * @param $id_faction
27
+		 * @param string|null $id_faction
28 28
 		 * @return bool
29 29
 		 * permet de tester si le joueur est dans la faction affichée
30 30
 		 */
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 		}
51 51
 		
52 52
 		/**
53
-		 * @return mixed
53
+		 * @return boolean
54 54
 		 * fonction qui renvoi l'ID de la faction du joueur
55 55
 		 */
56 56
 		public function getFactionPlayer($id_identite = null) {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 		
20 20
 		
21 21
 		//-------------------------- GETTER ----------------------------------------------------------------------------//
22
-		public function getIdFaction(){
22
+		public function getIdFaction() {
23 23
 		    return $this->id_faction;
24 24
 		}
25 25
 		
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
 			
216 216
 			if ($permissions_membre == "chef" || in_array("INVITER_MEMBRE", $permissions_membre)) {
217 217
 				$id_identite = Bataille::getPlayerExist($pseudo);
218
-				if ($id_identite== false) {
218
+				if ($id_identite == false) {
219 219
 					FlashMessage::setFlash("Ce joueur n'existe pas");
220 220
 					return false;
221 221
 				}
Please login to merge, or discard this patch.