Passed
Push — master ( f99231...67efd0 )
by Anthony
02:51
created
modules/bataille/app/controller/Unite.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -44,14 +44,14 @@  discard block
 block discarded – undo
44 44
 					$base_carac = unserialize($obj->caracteristique);
45 45
 				}
46 46
 
47
-				$coef = $this->coef_unite*$niveau;
47
+				$coef = $this->coef_unite * $niveau;
48 48
 
49 49
 				if ($niveau == 1) $coef = 1;
50 50
 
51 51
 				return [
52
-					"attaque" => round($base_carac["attaque"]*$coef),
53
-					"defense" => round($base_carac["defense"]*$coef),
54
-					"resistance" => round($base_carac["resistance"]*$coef),
52
+					"attaque" => round($base_carac["attaque"] * $coef),
53
+					"defense" => round($base_carac["defense"] * $coef),
54
+					"resistance" => round($base_carac["resistance"] * $coef),
55 55
 					"vitesse" => $base_carac["vitesse"]
56 56
 				];
57 57
 			}
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 			$unites = Bataille::getCentreRecherche()->getAllRechercheType($type);
71 71
 
72 72
 			//recupérer les caractéristiques de l'unité en question
73
-			for ($i=0 ; $i<count($unites) ; $i++) {
73
+			for ($i = 0; $i < count($unites); $i++) {
74 74
 				$unites[$i]["caracteristique"] = $this->getCaracteristiqueUnite($unites[$i]["recherche"], $unites[$i]["niveau"], $type);
75 75
 			}
76 76
 
Please login to merge, or discard this patch.