Passed
Push — master ( e2f2cb...b7284a )
by Anthony
02:38
created
modules/bataille/app/controller/MissionsAleatoire.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -228,7 +228,7 @@
 block discarded – undo
228 228
 		 * @param $nom_unite
229 229
 		 * @param $type_unite
230 230
 		 * @param null $id_groupe
231
-		 * @return bool
231
+		 * @return false|null
232 232
 		 * fonction sert a lancer une mission
233 233
 		 */
234 234
 		public function setCommencerMission($id_mission, $nombre_unite, $nom_unite, $type_unite, $id_groupe = null) {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
 			
151 151
 			if ((is_array($query)) && (count($query) > 0)) {
152 152
 				foreach ($query as $obj) {
153
-					$missions[] =[
153
+					$missions[] = [
154 154
 						"id_missions_cours" => $obj->ID_missions_cours,
155 155
 						"date_fin" => $obj->date_fin-Bataille::getToday(),
156 156
 						"infos" => $this->getInfosMission($obj->ID_mission)
@@ -249,13 +249,13 @@  discard block
 block discarded – undo
249 249
 			
250 250
 			$count = count($nombre_unite);
251 251
 			
252
-			for ($i=0 ; $i<$count ; $i++) {
252
+			for ($i = 0; $i < $count; $i++) {
253 253
 				Bataille::getUnite()->setCommencerExpedition($nombre_unite[$i], $nom_unite[$i], $type_unite[$i], $id_missions_cours);
254 254
 			}
255 255
 			
256 256
 			$count = count($id_groupe);
257 257
 			
258
-			for ($i=0 ; $i<$count ; $i++) {
258
+			for ($i = 0; $i < $count; $i++) {
259 259
 				Bataille::getGoupeUnite()->setCommencerExpedition($id_groupe[$i], $id_missions_cours);
260 260
 			}
261 261
 			
Please login to merge, or discard this patch.
modules/bataille/app/controller/GroupeUnite.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
 			
113 113
 			$count = count($nombre_unite);
114 114
 			
115
-			for ($i=0 ; $i<$count ; $i++) {
115
+			for ($i = 0; $i < $count; $i++) {
116 116
 				$this->setAjouterUniteGroupe($nombre_unite[$i], $nom_unite[$i], $type_unite[$i], $id_groupe);
117 117
 			}
118 118
 			
Please login to merge, or discard this patch.