@@ -12,7 +12,7 @@ |
||
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)) |
@@ -14,10 +14,10 @@ |
||
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' |
@@ -59,7 +59,7 @@ discard block |
||
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 |
||
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 | } |
@@ -93,7 +93,7 @@ discard block |
||
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 |
||
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 |