Passed
Push — master ( ff2fa9...185692 )
by Anthony
02:37
created
modules/bataille/app/controller/Aide.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -87,19 +87,19 @@
 block discarded – undo
87 87
 		 * renvoi le ou les batiments nécéssaires pour la construction du batiment spécifié
88 88
 		 */
89 89
 		private function getPourConstruire($pour_construire) {
90
-			for ($i=0 ; $i<count($pour_construire) ; $i++) {
90
+			for ($i = 0; $i < count($pour_construire); $i++) {
91 91
 				//si plusieur batiment pour construire le batiment en question
92 92
 				$count = count($pour_construire[$i]);
93 93
 				if ($count > 1) {
94
-					for ($j=0 ; $j<$count ; $j++) {
95
-						$batiment[] =  [
94
+					for ($j = 0; $j < $count; $j++) {
95
+						$batiment[] = [
96 96
 							"nom_batiment" => $pour_construire[$i][$j][0],
97 97
 							"niveau_batiment" => $pour_construire[$i][$j][2]
98 98
 						];
99 99
 					}
100 100
 				}
101 101
 				else {
102
-					$batiment[] =  [
102
+					$batiment[] = [
103 103
 						"nom_batiment" => $pour_construire[$i][0][0],
104 104
 						"niveau_batiment" => $pour_construire[$i][0][2]
105 105
 					];
Please login to merge, or discard this patch.