Test Setup Failed
Push — develop ( 198473...9d0597 )
by Stone
03:50
created
src/DataFixtures/TrickFixtures.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
     public function load(ObjectManager $manager)
13 13
     {
14 14
         $faker = Factory::create();
15
-        for ($i=0; $i<25; $i++){
15
+        for ($i = 0; $i < 25; $i++) {
16 16
             $trick = new Trick();
17 17
             $trick
18 18
                 ->setName($faker->words(3, true))
Please login to merge, or discard this patch.
src/Form/TrickType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,10 +14,10 @@
 block discarded – undo
14 14
     public function buildForm(FormBuilderInterface $builder, array $options)
15 15
     {
16 16
         $builder
17
-            ->add('name', TextType::class,[
17
+            ->add('name', TextType::class, [
18 18
                 'label' => 'Name of the trick, must be at least 5 characters'
19 19
             ])
20
-            ->add('text', TextareaType::class ,[
20
+            ->add('text', TextareaType::class, [
21 21
                 'label' => 'Describe the trick',
22 22
                 'attr' => [
23 23
                     'class'=>'materialize-textarea'
Please login to merge, or discard this patch.
src/Controller/RegistrationController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
             //send validation link
60 60
             $registrationMailer->sendHash($user);
61 61
 
62
-            $this->addFlash('success', 'Account created, we have sent an email to ' . $user->getEmail() . ' with a validation link');
62
+            $this->addFlash('success', 'Account created, we have sent an email to '.$user->getEmail().' with a validation link');
63 63
 
64 64
             return $this->redirectToRoute('trick.home');
65 65
         }
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
         if (!$user->getVerified()) {
127 127
             $registrationSetHash->setHash($user);
128 128
             $registrationMailer->sendHash($user);
129
-            $this->addFlash('success', 'Verification link sent to ' . $user->getEmail());
129
+            $this->addFlash('success', 'Verification link sent to '.$user->getEmail());
130 130
         }
131 131
         return $this->redirectToRoute('trick.home');
132 132
     }
Please login to merge, or discard this patch.
src/Entity/User.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      */
94 94
     public function getUsername(): string
95 95
     {
96
-        return (string)$this->userName;
96
+        return (string) $this->userName;
97 97
     }
98 98
 
99 99
     /**
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
      */
121 121
     public function getPassword(): string
122 122
     {
123
-        return (string)$this->password;
123
+        return (string) $this->password;
124 124
     }
125 125
 
126 126
     public function setPassword(string $password): self
Please login to merge, or discard this patch.