Passed
Push — master ( 14cd89...28f717 )
by Anthony
03:40
created
modules/bataille/app/controller/Faction.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 	
5 5
 	use core\App;
6 6
 	use core\HTML\flashmessage\FlashMessage;
7
-	use Intervention\Image\Point;
8 7
 	use modules\messagerie\app\controller\Messagerie;
9 8
 	
10 9
 	class Faction extends PermissionsFaction {
Please login to merge, or discard this patch.
modules/bataille/app/controller/Points.php 3 patches
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 		//-------------------------- SETTER ----------------------------------------------------------------------------//
104 104
 		/**
105 105
 		 * @param $id_base
106
-		 * @param null $type
106
+		 * @param string $type
107 107
 		 * @param null $points
108 108
 		 * @return int|null
109 109
 		 * fonction qui ajoute des points à la base en fonction du type
@@ -149,6 +149,7 @@  discard block
 block discarded – undo
149 149
 		
150 150
 		/**
151 151
 		 * fonction qui permet d'ajouter tous les points du joueur aux points de la faction
152
+		 * @param string $del
152 153
 		 */
153 154
 		public static function setRejoindreQuitterFaction($del = null) {
154 155
 			$dbc = App::getDb();
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 	namespace modules\bataille\app\controller;
3 3
 
4 4
 	use core\App;
5
-	use core\HTML\flashmessage\FlashMessage;
6 5
 	
7 6
 	
8 7
 	class Points {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.