Passed
Push — master ( 1a484d...7017e3 )
by Anthony
03:02
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.
modules/bataille/app/controller/PermissionsFaction.php 3 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 			
78 78
 			if ($this->getTestChefFaction($id_identite, $id_faction) === true) {
79 79
 				$permissions = [];
80
-				for ($i=1 ; $i<=$nb_permissions ; $i++) {
80
+				for ($i = 1; $i <= $nb_permissions; $i++) {
81 81
 					$permissions[$i] = "checked";
82 82
 				}
83 83
 				
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 			
87 87
 			
88 88
 			$permissions = [];
89
-			for ($i=1 ; $i<=$nb_permissions ; $i++) {
89
+			for ($i = 1; $i <= $nb_permissions; $i++) {
90 90
 				$query = $dbc->select()->from("_bataille_faction_permission_player")
91 91
 					->where("ID_faction", "=", $id_faction, "AND")
92 92
 					->where("ID_identite", "=", $id_identite, "AND")
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 	
4 4
 	
5 5
 	use core\App;
6
-	use core\functions\ChaineCaractere;
7 6
 	use core\HTML\flashmessage\FlashMessage;
8 7
 	
9 8
 	class PermissionsFaction {
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
 		
68 68
 		/**
69 69
 		 * @param $id_identite
70
-		 * @param $id_faction
70
+		 * @param string $id_faction
71 71
 		 * @return array|string
72 72
 		 * permet de récupérer les permissions d'un membre de la faction
73 73
 		 */
Please login to merge, or discard this patch.
modules/bataille/app/controller/Faction.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 		
17 17
 		//-------------------------- GETTER ----------------------------------------------------------------------------//
18 18
 		public function getIdFaction(){
19
-		    return $this->id_faction;
19
+			return $this->id_faction;
20 20
 		}
21 21
 		
22 22
 		/**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 		
16 16
 		
17 17
 		//-------------------------- GETTER ----------------------------------------------------------------------------//
18
-		public function getIdFaction(){
18
+		public function getIdFaction() {
19 19
 		    return $this->id_faction;
20 20
 		}
21 21
 		
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 		
16 16
 		
17 17
 		//-------------------------- GETTER ----------------------------------------------------------------------------//
18
-		public function getIdFaction(){
18
+		public function getIdFaction() {
19 19
 		    return $this->id_faction;
20 20
 		}
21 21
 		
Please login to merge, or discard this patch.
modules/bataille/app/controller/RelationFaction.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
 		/**
61 61
 		 * @param $nom_faction
62 62
 		 * @param $relation
63
-		 * @return bool
63
+		 * @return false|null
64 64
 		 * fonction qui permet d'ajouter une relation
65 65
 		 */
66 66
 		public function setAjouterRelation($nom_faction, $relation) {
Please login to merge, or discard this patch.
modules/bataille/app/controller/Profil.php 4 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 		
31 31
 		//-------------------------- GETTER ----------------------------------------------------------------------------//
32 32
 		public function getVacances(){
33
-		    return $this->vacances;
33
+			return $this->vacances;
34 34
 		}
35 35
 		
36 36
 		/**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 		
30 30
 		
31 31
 		//-------------------------- GETTER ----------------------------------------------------------------------------//
32
-		public function getVacances(){
32
+		public function getVacances() {
33 33
 		    return $this->vacances;
34 34
 		}
35 35
 		
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 		
30 30
 		
31 31
 		//-------------------------- GETTER ----------------------------------------------------------------------------//
32
-		public function getVacances(){
32
+		public function getVacances() {
33 33
 		    return $this->vacances;
34 34
 		}
35 35
 		
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 		}
35 35
 		
36 36
 		/**
37
-		 * @return string
37
+		 * @return integer
38 38
 		 * fonction qui test si le compte est en mode vacances ou pas
39 39
 		 */
40 40
 		public function getTestModeVacances($id_identite = null) {
@@ -114,6 +114,7 @@  discard block
 block discarded – undo
114 114
 		}
115 115
 		
116 116
 		/**
117
+		 * @param string $table
117 118
 		 * @return bool
118 119
 		 * fonction qui récupère toutes les recherches, recrutement, missions et offre de marché en cours de la base
119 120
 		 */
Please login to merge, or discard this patch.