@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | * @return int |
| 73 | 73 | * renvoi les points totaux d'un joueur |
| 74 | 74 | */ |
| 75 | - public static function getPointsJoueur($id_identite=null) { |
|
| 75 | + public static function getPointsJoueur($id_identite = null) { |
|
| 76 | 76 | $dbc = App::getDb(); |
| 77 | 77 | |
| 78 | 78 | if ($id_identite === null) { |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | * fonction qui ajoute des points à la base en fonction du type |
| 110 | 110 | * le type peut etre : batiment, attaque, defense, troupe |
| 111 | 111 | */ |
| 112 | - public static function setAjouterPoints($id_base, $type=null, $points=null) { |
|
| 112 | + public static function setAjouterPoints($id_base, $type = null, $points = null) { |
|
| 113 | 113 | $dbc = App::getDb(); |
| 114 | 114 | |
| 115 | 115 | if ($type == "batiment") { |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | if (count($query) > 0) { |
| 163 | 163 | foreach ($query as $obj) { |
| 164 | 164 | $point_joueur = Points::getPointsJoueur(); |
| 165 | - $calc = $obj->points_faction - $point_joueur; |
|
| 165 | + $calc = $obj->points_faction-$point_joueur; |
|
| 166 | 166 | |
| 167 | 167 | if ($del === null) { |
| 168 | 168 | $calc = $point_joueur+$obj->points_faction; |