Completed
Push — master ( 2e0eb3...b2b032 )
by Pavel
07:23 queued 02:50
created
src/AppBundle/Services/MailerService.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Created by PhpStorm.
4
- * User: device
5
- * Date: 19.03.16
6
- * Time: 10:05
7
- */
3
+     * Created by PhpStorm.
4
+     * User: device
5
+     * Date: 19.03.16
6
+     * Time: 10:05
7
+     */
8 8
 
9 9
 namespace AppBundle\Services;
10 10
 
Please login to merge, or discard this patch.
src/AppBundle/Controller/RegistrationController.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -72,24 +72,24 @@
 block discarded – undo
72 72
      */
73 73
     public function checkUserHash($hash, $email)
74 74
     {
75
-         $em = $this->getDoctrine()->getManager();
75
+            $em = $this->getDoctrine()->getManager();
76 76
 
77
-         $user = $em->getRepository('AppBundle:User')
78
-             ->findOneBy(array('email' => $email, 'hash' => $hash));
77
+            $user = $em->getRepository('AppBundle:User')
78
+                ->findOneBy(array('email' => $email, 'hash' => $hash));
79 79
 
80
-         if ($user) {
81
-             $user->setIsActive(true);
82
-             $user->setHash(null);
83
-             $this->addFlash('notice', 'You have successfully passed registration confirmation');
80
+            if ($user) {
81
+                $user->setIsActive(true);
82
+                $user->setHash(null);
83
+                $this->addFlash('notice', 'You have successfully passed registration confirmation');
84 84
 
85
-             $em->flush();
85
+                $em->flush();
86 86
 
87
-             return $this->redirectToRoute('homepage');
88
-         }
87
+                return $this->redirectToRoute('homepage');
88
+            }
89 89
 
90
-         $this->addFlash('notice', 'You haven\'t passed registration confirmation');
90
+            $this->addFlash('notice', 'You haven\'t passed registration confirmation');
91 91
 
92
-         return $this->redirectToRoute('homepage');
92
+            return $this->redirectToRoute('homepage');
93 93
     }
94 94
 
95 95
     /**
Please login to merge, or discard this patch.
src/AppBundle/Form/UserType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,8 @@
 block discarded – undo
38 38
                             'class' => 'form-control',
39 39
                         ]
40 40
                     ],
41
-                    'first_options'  => ['label' => 'Password'],
42
-                    'second_options' => ['label' => 'Repeat Password'],
41
+                    'first_options'  => [ 'label' => 'Password' ],
42
+                    'second_options' => [ 'label' => 'Repeat Password' ],
43 43
                 ]
44 44
             );
45 45
     }
Please login to merge, or discard this patch.
src/AppBundle/Entity/User.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
      */
267 267
     public function getRoles()
268 268
     {
269
-        return [$this->role];
269
+        return [ $this->role ];
270 270
 
271 271
     }
272 272
 
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
      */
321 321
     public function isAccountNonLocked()
322 322
     {
323
-        return $this->isLocked ? false : true ;
323
+        return $this->isLocked ? false : true;
324 324
     }
325 325
 
326 326
     /**
Please login to merge, or discard this patch.