@@ -228,7 +228,7 @@ |
||
| 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) { |
@@ -150,7 +150,7 @@ discard block |
||
| 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 |
||
| 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 | |
@@ -112,7 +112,7 @@ |
||
| 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 | |
@@ -77,7 +77,7 @@ discard block |
||
| 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 |
||
| 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") |
@@ -3,7 +3,6 @@ |
||
| 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 { |
@@ -67,7 +67,7 @@ |
||
| 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 | */ |
@@ -16,7 +16,7 @@ |
||
| 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 | /** |
@@ -15,7 +15,7 @@ |
||
| 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 | |
@@ -15,7 +15,7 @@ |
||
| 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 | |
@@ -60,7 +60,7 @@ |
||
| 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) { |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | |
| 31 | 31 | //-------------------------- GETTER ----------------------------------------------------------------------------// |
| 32 | 32 | public function getVacances(){ |
| 33 | - return $this->vacances; |
|
| 33 | + return $this->vacances; |
|
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | /** |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | |
| 30 | 30 | |
| 31 | 31 | //-------------------------- GETTER ----------------------------------------------------------------------------// |
| 32 | - public function getVacances(){ |
|
| 32 | + public function getVacances() { |
|
| 33 | 33 | return $this->vacances; |
| 34 | 34 | } |
| 35 | 35 | |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | |
| 30 | 30 | |
| 31 | 31 | //-------------------------- GETTER ----------------------------------------------------------------------------// |
| 32 | - public function getVacances(){ |
|
| 32 | + public function getVacances() { |
|
| 33 | 33 | return $this->vacances; |
| 34 | 34 | } |
| 35 | 35 | |
@@ -34,7 +34,7 @@ discard block |
||
| 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 |
||
| 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 | */ |