| @@ -16,7 +16,7 @@ | ||
| 16 | 16 | public function buildForm(FormBuilderInterface $builder, array $options) | 
| 17 | 17 |      { | 
| 18 | 18 | $builder | 
| 19 | -            ->add('email', EmailType::class,[ | |
| 19 | +            ->add('email', EmailType::class, [ | |
| 20 | 20 | 'mapped' =>false, | 
| 21 | 21 | ]) | 
| 22 | 22 |              ->add('plainPassword', PasswordType::class, [ | 
| @@ -2,7 +2,7 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace App\FlashMessage; | 
| 4 | 4 | |
| 5 | -class FlashMessageCategory{ | |
| 5 | +class FlashMessageCategory { | |
| 6 | 6 | //'alert', 'success', 'error', 'warning', 'info' | 
| 7 | 7 | const SUCCESS = 'success'; | 
| 8 | 8 | const ALERT = 'alert'; | 
| @@ -4,7 +4,7 @@ | ||
| 4 | 4 | |
| 5 | 5 | use Symfony\Component\HttpFoundation\Session\Flash\FlashBagInterface; | 
| 6 | 6 | |
| 7 | -trait AddFlashTrait{ | |
| 7 | +trait AddFlashTrait { | |
| 8 | 8 | |
| 9 | 9 | private $flashBag; | 
| 10 | 10 | |
| @@ -30,7 +30,7 @@ | ||
| 30 | 30 | return $this->redirectResponse; | 
| 31 | 31 | } | 
| 32 | 32 | |
| 33 | -    public function getRedirectMessage(){ | |
| 33 | +    public function getRedirectMessage() { | |
| 34 | 34 | return $this->redirectMessage; | 
| 35 | 35 | } | 
| 36 | 36 | |
| @@ -40,7 +40,7 @@ | ||
| 40 | 40 |      { | 
| 41 | 41 | |
| 42 | 42 |          $submittedToken = $request->request->get('_token'); | 
| 43 | -        if (!$this->isCsrfTokenValid('delete-trick' . $trick->getId(), $submittedToken)) { | |
| 43 | +        if (!$this->isCsrfTokenValid('delete-trick'.$trick->getId(), $submittedToken)) { | |
| 44 | 44 |              throw new RedirectException($this->generateUrl('home'), 'Bad CSRF Token'); | 
| 45 | 45 | } | 
| 46 | 46 | |
| @@ -9,13 +9,13 @@ | ||
| 9 | 9 | use Symfony\Component\OptionsResolver\OptionsResolver; | 
| 10 | 10 | use Vich\UploaderBundle\Form\Type\VichImageType; | 
| 11 | 11 | |
| 12 | -class UserProfileFormType extends AbstractType{ | |
| 12 | +class UserProfileFormType extends AbstractType { | |
| 13 | 13 | |
| 14 | 14 | public function buildForm(FormBuilderInterface $builder, array $options) | 
| 15 | 15 |      { | 
| 16 | 16 | $builder | 
| 17 | 17 |              ->add('UserName', TextType::class) | 
| 18 | -            ->add('imageFile', VichImageType::class,[ | |
| 18 | +            ->add('imageFile', VichImageType::class, [ | |
| 19 | 19 | 'required' => false, | 
| 20 | 20 | 'allow_delete' => false, | 
| 21 | 21 | 'download_uri' => false, | 
| @@ -11,7 +11,7 @@ | ||
| 11 | 11 | use Symfony\Component\Validator\Constraints\Length; | 
| 12 | 12 | use Symfony\Component\Validator\Constraints\NotBlank; | 
| 13 | 13 | |
| 14 | -class UserChangePasswordFormType extends AbstractType{ | |
| 14 | +class UserChangePasswordFormType extends AbstractType { | |
| 15 | 15 | |
| 16 | 16 | public function buildForm(FormBuilderInterface $builder, array $options) | 
| 17 | 17 |      { | 
| @@ -38,7 +38,7 @@ | ||
| 38 | 38 | * @param $version | 
| 39 | 39 | * Revert a trick to a history checkpoint. | 
| 40 | 40 | */ | 
| 41 | -    public function revertToHistory($id, $version){ | |
| 41 | +    public function revertToHistory($id, $version) { | |
| 42 | 42 |          $trick = $this->em->find('App\Entity\Trick', $id); | 
| 43 | 43 | $this->repo->revert($trick, $version); | 
| 44 | 44 | $this->em->persist($trick); | 
| @@ -50,7 +50,7 @@ | ||
| 50 | 50 | public function autoLogon(User $user): Event | 
| 51 | 51 |      { | 
| 52 | 52 | $request = $this->requestStack->getCurrentRequest(); | 
| 53 | -        if($request === null){ | |
| 53 | +        if ($request === null) { | |
| 54 | 54 |              throw new Exception('request is null'); | 
| 55 | 55 | } | 
| 56 | 56 | //Login user |