Completed
Push — master ( 6d226f...cc9b98 )
by Louis
182:05 queued 126:54
created
back/src/KI/UserBundle/Helper/FacegameHelper.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,6 @@
 block discarded – undo
36 36
     /**
37 37
      *  On remplit la listUsers selon les paramètres rentrés
38 38
      *  Chaque array contient les noms proposés, une image et la position de la proposition correcte
39
-     *  @param  Facegame $game La partie à populer
40
-     *  @return bool Si la partie est possible ou non (assez d'élève dans la promo)
41 39
      */
42 40
     public function fillUserList(Facegame $facegame)
43 41
     {
Please login to merge, or discard this patch.
back/src/KI/CoreBundle/Controller/LikeableController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
     /**
14 14
      * Précise si une classe peut être likée par l'utilisateur actuel
15 15
      * @param mixed $item L'item à tester
16
-     * @return boolean
16
+     * @return boolean|null
17 17
      */
18 18
     protected function isLikeable($item)
19 19
     {
Please login to merge, or discard this patch.
back/src/KI/CoreBundle/Entity/LikeClass.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      * Set listLikes
135 135
      *
136 136
      * @param \KI\UserBundle\Entity\User $listLikes
137
-     * @return LikeClass
137
+     * @return User
138 138
      */
139 139
     public function setLikes($listLikes)
140 140
     {
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
      * Set listDislikes
179 179
      *
180 180
      * @param \KI\UserBundle\Entity\User $listDislikes
181
-     * @return LikeClass
181
+     * @return User
182 182
      */
183 183
     public function setDislikes($listDislikes)
184 184
     {
Please login to merge, or discard this patch.
back/src/KI/CoreBundle/Service/ImageService.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
 
51 51
     /**
52 52
      * @param string $base64
53
-     * @return array
53
+     * @return string
54 54
      */
55 55
     public function uploadFromBase64($base64)
56 56
     {
Please login to merge, or discard this patch.
back/src/KI/CoreBundle/Service/SearchService.php 1 patch
Doc Comments   +11 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 
20 20
     /**
21 21
      * @param  string $search La recherche complète venant de la requête
22
-     * @return array  $category, $criteria
22
+     * @return string[]  $category, $criteria
23 23
      * @throws BadRequestHttpException Si le format n'est pas bon
24 24
      */
25 25
     public function analyzeRequest($search)
@@ -60,6 +60,12 @@  discard block
 block discarded – undo
60 60
     }
61 61
 
62 62
     // On fouille un repo à la recherche d'entités correspondantes au nom
63
+
64
+    /**
65
+     * @param string $repositoryName
66
+     * @param string $criteria
67
+     * @param string $additionnalField
68
+     */
63 69
     protected function searchRepository($repositoryName, $criteria, $additionnalField = null) {
64 70
         $repository = $this->manager->getRepository($repositoryName);
65 71
         $qb = $repository->createQueryBuilder('e');
@@ -87,6 +93,10 @@  discard block
 block discarded – undo
87 93
     }
88 94
 
89 95
     // La recherche d'user demande une fonction particulière (champs différents, acronyme...)
96
+
97
+    /**
98
+     * @param string $criteria
99
+     */
90 100
     protected function searchUser($criteria) {
91 101
         $qb = $this->userRepository->createQueryBuilder('e');
92 102
 
Please login to merge, or discard this patch.
back/src/KI/FoyerBundle/Helper/TransactionHelper.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      * Ajoute une conso
32 32
      * @param  string $userSlug
33 33
      * @param  string $beerSlug
34
-     * @return float  $newBalance
34
+     * @return integer  $newBalance
35 35
      * @throws NotFoundHttpException Si l'utilisateur n'est pas trouvé
36 36
      * @throws NotFoundHttpException Si la bière n'est pas trouvé
37 37
      */
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      * Crédite un compte
64 64
      * @param  string $userSlug
65 65
      * @param  float  $amount
66
-     * @return float  $newBalance
66
+     * @return integer  $newBalance
67 67
      * @throws NotFoundHttpException Si l'utilisateur n'est pas trouvé
68 68
      */
69 69
     public function addCreditTransaction($userSlug, $amount)
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     /**
104 104
      * Recalcule le solde d'un utilisateur à partir de ses transactions
105 105
      * @param  User  $user
106
-     * @return float $balance
106
+     * @return integer $balance
107 107
      */
108 108
     public function rebuildBalance(User $user)
109 109
     {
Please login to merge, or discard this patch.
back/src/KI/PublicationBundle/Entity/Post.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@
 block discarded – undo
182 182
     /**
183 183
      * Get authorUser
184 184
      *
185
-     * @return \KI\UserBundle\Entity\User
185
+     * @return \KI\UserBundle\Entity\Club
186 186
      */
187 187
     public function getAuthorUser()
188 188
     {
Please login to merge, or discard this patch.
back/src/KI/PublicationBundle/Entity/PostFile.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
     }
206 206
 
207 207
     /**
208
-     * @return mixed
208
+     * @return Post
209 209
      */
210 210
     public function getPost()
211 211
     {
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
     }
214 214
 
215 215
     /**
216
-     * @param mixed $post
216
+     * @param Post $post
217 217
      */
218 218
     public function setPost($post)
219 219
     {
Please login to merge, or discard this patch.
back/src/KI/PublicationBundle/Helper/CourseParserHelper.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -98,6 +98,9 @@
 block discarded – undo
98 98
         return $courses;
99 99
     }
100 100
 
101
+    /**
102
+     * @return null|Course
103
+     */
101 104
     private function getOrCreateCourse($name, $department)
102 105
     {
103 106
         if (!array_key_exists($name, $this->knownCourses)) {
Please login to merge, or discard this patch.