@@ -49,7 +49,7 @@ |
||
| 49 | 49 | //-------------------------- SETTER ----------------------------------------------------------------------------// |
| 50 | 50 | /** |
| 51 | 51 | * @param $id_base |
| 52 | - * @param $type |
|
| 52 | + * @param string $type |
|
| 53 | 53 | * fonction qui ajoute des points à la base en fonction du type |
| 54 | 54 | * le type peut etre : batiment, attaque, defense, troupe |
| 55 | 55 | */ |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | $dbc = App::getDb(); |
| 58 | 58 | |
| 59 | 59 | if ($type == "batiment") { |
| 60 | - $req = $dbc->update("points", self::getPointsBase($id_base)+self::getPointAjoutBatiment()); |
|
| 60 | + $req = $dbc->update("points", self::getPointsBase($id_base) + self::getPointAjoutBatiment()); |
|
| 61 | 61 | |
| 62 | 62 | } |
| 63 | 63 | |
@@ -41,7 +41,9 @@ |
||
| 41 | 41 | |
| 42 | 42 | $query = $dbc->select("points_batiment")->from("configuration")->where("ID_configuration", "=", 1)->get(); |
| 43 | 43 | |
| 44 | - foreach ($query as $obj) return $obj->points_batiment; |
|
| 44 | + foreach ($query as $obj) { |
|
| 45 | + return $obj->points_batiment; |
|
| 46 | + } |
|
| 45 | 47 | } |
| 46 | 48 | //-------------------------- END GETTER ----------------------------------------------------------------------------// |
| 47 | 49 | |