Completed
Pull Request — master (#28)
by
unknown
09:40
created
src/SMG/ManagerBundle/Controller/ManagersController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@
 block discarded – undo
194 194
      * and throws a bad request exception if the input is wrong.
195 195
      *
196 196
      * @param Request $request
197
-     * @param array   $keys
197
+     * @param string[]   $keys
198 198
      * @param string  $message
199 199
      *
200 200
      * @return array
Please login to merge, or discard this patch.
src/SMG/ManagerBundle/Controller/Traits/HandleUserTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
      * Check if the information in $user is enough
9 9
      * and valid to create a new User in database.
10 10
      *
11
-     * @param User $user user to validate
11
+     * @param \SMG\UserBundle\Entity\User $user user to validate
12 12
      * @param string $group validation group to apply
13 13
      *
14 14
      * @return array contains the error(s) list,
Please login to merge, or discard this patch.
src/SMG/ManagerBundle/Controller/Traits/TokenFromHeaderTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      *
29 29
      * @param string $allowedType client type to check
30 30
      *
31
-     * @return boolean
31
+     * @return boolean|null
32 32
      *
33 33
      * @throws AccessDeniedException
34 34
      */
Please login to merge, or discard this patch.
src/SMG/UserBundle/Controller/UsersController.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -274,7 +274,6 @@  discard block
 block discarded – undo
274 274
      * Used for a user to resend his confirmation token.
275 275
      *
276 276
      * @param User    $user    the user who's reseting password
277
-     * @param Request $request
278 277
      *
279 278
      * @Annotations\Patch("/users/{id}/resend-confirmation-token")
280 279
      */
@@ -368,7 +367,7 @@  discard block
 block discarded – undo
368 367
      * for the current called action
369 368
      * and throws a bad request exception if the input is wrong.
370 369
      *
371
-     * @return array
370
+     * @return User
372 371
      */
373 372
     private function requestIsJsonWithKeysOrThrow(
374 373
         Request $request,
@@ -411,6 +410,7 @@  discard block
 block discarded – undo
411 410
 
412 411
     /**
413 412
      *
413
+     * @param string $token
414 414
      */
415 415
     private function sendTokenByEmail($email, $token)
416 416
     {
@@ -425,6 +425,7 @@  discard block
 block discarded – undo
425 425
 
426 426
     /**
427 427
      *
428
+     * @param string $token
428 429
      */
429 430
     private function sendTokenByPhone($phone, $token)
430 431
     {
Please login to merge, or discard this patch.
src/SMG/UserBundle/Tests/TestHelpersTrait.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -11,6 +11,9 @@  discard block
 block discarded – undo
11 11
     private $response;
12 12
     private $authAsUser;
13 13
 
14
+    /**
15
+     * @param string $rawRequestBody
16
+     */
14 17
     protected function performClientRequest(
15 18
         $method,
16 19
         $urlPath,
@@ -117,6 +120,10 @@  discard block
 block discarded – undo
117 120
     }
118 121
 
119 122
     abstract public function assertTrue($condition, $message = '');
123
+
124
+    /**
125
+     * @param integer $expected
126
+     */
120 127
     abstract public function assertEquals(
121 128
         $expected,
122 129
         $actual,
Please login to merge, or discard this patch.