Passed
Push — master ( ef436a...1feae4 )
by Anthony
02:41
created
modules/messagerie/app/controller/Messagerie.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -76,10 +76,10 @@  discard block
 block discarded – undo
76 76
 		public function getMessage() {
77 77
 			return $this->message;
78 78
 		}
79
-		public function getDateMessage(){
79
+		public function getDateMessage() {
80 80
 		    return $this->date_message;
81 81
 		}
82
-		public function getUrl(){
82
+		public function getUrl() {
83 83
 		    return $this->url;
84 84
 		}
85 85
 		public function getIdExpediteur() {
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 		public function getPseudoReceveur() {
95 95
 			return $this->pseudo_receveur;
96 96
 		}
97
-		public function getValues(){
97
+		public function getValues() {
98 98
 		    return ["messagerie" => $this->values];
99 99
 		}
100 100
 
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
 				$destinataires = explode(",", $destinataire);
292 292
 				$c = count($destinataires);
293 293
 
294
-				for ($i=0 ; $i<$c ; $i++) {
294
+				for ($i = 0; $i < $c; $i++) {
295 295
 					if ($this->getIdIdentiteExist($destinataires[$i]) !== false) {
296 296
 						$destinataires[] = $this->getIdIdentiteExist($destinataires[$i]);
297 297
 					}
Please login to merge, or discard this patch.
Braces   +6 added lines, -12 removed lines patch added patch discarded remove patch
@@ -33,11 +33,9 @@  discard block
 block discarded – undo
33 33
 			if ($type_boite !== null) {
34 34
 				if ($type_boite == "boite réception") {
35 35
 					$this->getBoiteReception();
36
-				}
37
-				else if ($type_boite == "messages envoyés") {
36
+				} else if ($type_boite == "messages envoyés") {
38 37
 					$this->getMessagesEnvoyes();
39
-				}
40
-				else if ($type_boite == "messages supprimés") {
38
+				} else if ($type_boite == "messages supprimés") {
41 39
 					$this->getMessageSupprimes();
42 40
 				}
43 41
 
@@ -240,8 +238,7 @@  discard block
 block discarded – undo
240 238
 						"supprimer" => $obj->supprimer
241 239
 					];
242 240
 				}
243
-			}
244
-			else {
241
+			} else {
245 242
 				return false;
246 243
 			}
247 244
 		}
@@ -294,17 +291,14 @@  discard block
 block discarded – undo
294 291
 				for ($i=0 ; $i<$c ; $i++) {
295 292
 					if ($this->getIdIdentiteExist($destinataires[$i]) !== false) {
296 293
 						$destinataires[] = $this->getIdIdentiteExist($destinataires[$i]);
297
-					}
298
-					else {
294
+					} else {
299 295
 						return false;
300 296
 					}
301 297
 				}
302
-			}
303
-			else {
298
+			} else {
304 299
 				if ($this->getIdIdentiteExist($destinataire) !== false) {
305 300
 					$destinataires[] = $this->getIdIdentiteExist($destinataire);
306
-				}
307
-				else {
301
+				} else {
308 302
 					return false;
309 303
 				}
310 304
 			}
Please login to merge, or discard this patch.
modules/messagerie/app/controller/message/envoyer.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 	if (isset($_POST['admin'])) {
6 6
 		\core\auth\Connexion::setLogin($pseudo, $mdp, WEBROOT."administrator/login", WEBROOT."administrator", 0);
7
-	}
8
-	else {
7
+	} else {
9 8
 		\core\auth\Connexion::setLogin($pseudo, $mdp, WEBROOT."login", WEBROOT."index.php", 0);
10 9
 	}
11 10
\ No newline at end of file
Please login to merge, or discard this patch.