@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Created by PhpStorm. |
|
| 4 | - * User: device |
|
| 5 | - * Date: 18.03.16 |
|
| 6 | - * Time: 17:58 |
|
| 7 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: device |
|
| 5 | + * Date: 18.03.16 |
|
| 6 | + * Time: 17:58 |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace AppBundle\Tests\Controller; |
| 10 | 10 | |
@@ -72,24 +72,24 @@ |
||
| 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 | /** |
@@ -38,8 +38,8 @@ |
||
| 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 | } |
@@ -266,7 +266,7 @@ discard block |
||
| 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 |
||
| 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 | /** |