Passed
Pull Request — master (#95)
by
unknown
07:30
created
src/Form/ResetpasswordFormType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
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, [
Please login to merge, or discard this patch.
src/FlashMessage/FlashMessageCategory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
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';
Please login to merge, or discard this patch.
src/FlashMessage/AddFlashTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Exception/RedirectException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Controller/Trick/Admin/DeleteTrickController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Form/UserProfileFormType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,13 +9,13 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/Form/UserChangePasswordFormType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/History/TrickHistory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Security/UserAutoLogon.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.