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.