Completed
Push — master ( 97d2bc...038e4e )
by Tomáš
12:56
created
src/Webcook/Cms/SecurityBundle/Entity/User.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -197,7 +197,7 @@
 block discarded – undo
197 197
     /**
198 198
      * Gets the value of email.
199 199
      *
200
-     * @return mixed
200
+     * @return string
201 201
      */
202 202
     public function getEmail()
203 203
     {
Please login to merge, or discard this patch.
src/Webcook/Cms/SecurityBundle/Entity/Role.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -197,7 +197,7 @@
 block discarded – undo
197 197
     /**
198 198
      * Gets the value of email.
199 199
      *
200
-     * @return mixed
200
+     * @return string
201 201
      */
202 202
     public function getEmail()
203 203
     {
Please login to merge, or discard this patch.
src/Webcook/Cms/SecurityBundle/Controller/LoginController.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -24,13 +24,13 @@  discard block
 block discarded – undo
24 24
 {
25 25
 
26 26
     /**
27
-    * Send an email with a link to reset user's password.
28
-    *
29
-    * @ApiDoc(
30
-    *  description="Send an email with a link to reset user's password."
31
-    * )
32
-    * @Post("password/email/reset", options={"i18n"=false})
33
-    */
27
+     * Send an email with a link to reset user's password.
28
+     *
29
+     * @ApiDoc(
30
+     *  description="Send an email with a link to reset user's password."
31
+     * )
32
+     * @Post("password/email/reset", options={"i18n"=false})
33
+     */
34 34
     public function resetPasswordEmailAction(Request $request): Response
35 35
     {        
36 36
         $email = $request->request->get('email');
@@ -66,13 +66,13 @@  discard block
 block discarded – undo
66 66
     }
67 67
 
68 68
     /**
69
-    * Reset password view.
70
-    *
71
-    * @ApiDoc(
72
-    *  description="Reset password view."
73
-    * )
74
-    * @Get("password/reset", options={"i18n"=false})
75
-    */
69
+     * Reset password view.
70
+     *
71
+     * @ApiDoc(
72
+     *  description="Reset password view."
73
+     * )
74
+     * @Get("password/reset", options={"i18n"=false})
75
+     */
76 76
     public function resetPasswordGetAction(Request $request): Response
77 77
     {
78 78
         $token = $request->query->get('token');
Please login to merge, or discard this patch.
src/Webcook/Cms/SecurityBundle/Common/SecurityHelper.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
 namespace Webcook\Cms\SecurityBundle\Common;
10 10
 
11 11
 use Symfony\Component\Finder\Finder;
12
-use Doctrine\Common\Annotations\AnnotationReader;
13 12
 
14 13
 /**
15 14
  * Basic helper class.
Please login to merge, or discard this patch.
src/Webcook/Cms/SecurityBundle/Controller/RoleController.php 1 patch
Unused Use Statements   -8 removed lines patch added patch discarded remove patch
@@ -9,19 +9,11 @@
 block discarded – undo
9 9
 namespace Webcook\Cms\SecurityBundle\Controller;
10 10
 
11 11
 use Webcook\Cms\CoreBundle\Base\BaseRestController;
12
-use Webcook\Cms\SecurityBundle\Entity\Role;
13
-use Webcook\Cms\SecurityBundle\Entity\Resource;
14 12
 use Webcook\Cms\SecurityBundle\Entity\RoleResource;
15
-use Webcook\Cms\SecurityBundle\Form\Type\RoleType;
16 13
 use Webcook\Cms\SecurityBundle\Form\Type\ResourcesType;
17
-use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
18 14
 use Nelmio\ApiDocBundle\Annotation\ApiDoc;
19
-use Webcook\Cms\SecurityBundle\Authorization\Voter\WebcookCmsVoter;
20 15
 use FOS\RestBundle\Controller\Annotations\Get;
21
-use FOS\RestBundle\Controller\Annotations\Post;
22 16
 use FOS\RestBundle\Controller\Annotations\Put;
23
-use FOS\RestBundle\Controller\Annotations\Delete;
24
-use Doctrine\DBAL\LockMode;
25 17
 
26 18
 /**
27 19
  * REST api controller - role management.
Please login to merge, or discard this patch.
src/Webcook/Cms/SecurityBundle/Entity/RoleResource.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -207,7 +207,7 @@
 block discarded – undo
207 207
     /**
208 208
      * Sets the value of role.
209 209
      *
210
-     * @param mixed $role the role
210
+     * @param Role $role the role
211 211
      *
212 212
      * @return self
213 213
      */
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -11,9 +11,6 @@
 block discarded – undo
11 11
 use Webcook\Cms\CoreBundle\Base\BasicEntity;
12 12
 use Doctrine\ORM\Mapping as ORM;
13 13
 use Webcook\Cms\SecurityBundle\Authorization\Voter\WebcookCmsVoter;
14
-use ApiPlatform\Core\Annotation\ApiProperty;
15
-use ApiPlatform\Core\Annotation\ApiResource;
16
-use Symfony\Component\Validator\Constraints as Assert;
17 14
 
18 15
 /**
19 16
  * Role resource entity.
Please login to merge, or discard this patch.
src/Webcook/Cms/SecurityBundle/EventSubscriber/UserControllerSubscriber.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 ApiPlatform\Core\EventListener\EventPriorities;
6 6
 use Webcook\Cms\SecurityBundle\Entity\User;
7
-use Symfony\Component\HttpFoundation\Request;
8 7
 use Symfony\Component\EventDispatcher\EventSubscriberInterface;
9 8
 use Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent;
10 9
 use Symfony\Component\HttpKernel\KernelEvents;
Please login to merge, or discard this patch.