Passed
Push — master ( 1741ab...1a0a81 )
by Anthony
02:32
created
modules/messagerie/app/controller/message/envoyer.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,8 +7,7 @@
 block discarded – undo
7 7
 
8 8
 	if ($validator->getErrors() !== null) {
9 9
 		\core\HTML\flashmessage\FlashMessage::setFlash($validator->getErrors());
10
-	}
11
-	else {
10
+	} else {
12 11
 		$type = $_POST["type"];
13 12
 		$objet = $_POST['objet']." de la part de ".$_SERVER['HTTP_HOST'];
14 13
 		$demande = $_POST['demande'];
Please login to merge, or discard this patch.
modules/bataille/app/controller/Aide.php 2 patches
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.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,8 +43,7 @@  discard block
 block discarded – undo
43 43
 								$pour_construire[] = unserialize($obj->pour_construire);
44 44
 
45 45
 								$pour_construire = $this->getPourConstruire($pour_construire);
46
-							}
47
-							else {
46
+							} else {
48 47
 								$pour_construire = [];
49 48
 							}
50 49
 
@@ -97,8 +96,7 @@  discard block
 block discarded – undo
97 96
 							"niveau_batiment" => $pour_construire[$i][$j][2]
98 97
 						];
99 98
 					}
100
-				}
101
-				else {
99
+				} else {
102 100
 					$batiment[] =  [
103 101
 						"nom_batiment" => $pour_construire[$i][0][0],
104 102
 						"niveau_batiment" => $pour_construire[$i][0][2]
Please login to merge, or discard this patch.