@@ -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' |
@@ -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 |
@@ -16,7 +16,7 @@ |
||
16 | 16 | { |
17 | 17 | $trick = $event->getEntity(); |
18 | 18 | $this->sendToDatabase($event); |
19 | - $this->addFlash(FlashMessageCategory::SUCCESS, 'Trick ' . $trick->getName() . ' created'); |
|
19 | + $this->addFlash(FlashMessageCategory::SUCCESS, 'Trick '.$trick->getName().' created'); |
|
20 | 20 | } |
21 | 21 | |
22 | 22 | /** |
@@ -16,7 +16,7 @@ |
||
16 | 16 | { |
17 | 17 | $trick = $event->getEntity(); |
18 | 18 | $this->deleteFromDatabase($event); |
19 | - $this->addFlash(FlashMessageCategory::SUCCESS, 'Trick ' . $trick->getName() . ' Deleted'); |
|
19 | + $this->addFlash(FlashMessageCategory::SUCCESS, 'Trick '.$trick->getName().' Deleted'); |
|
20 | 20 | } |
21 | 21 | |
22 | 22 | /** |
@@ -16,7 +16,7 @@ |
||
16 | 16 | { |
17 | 17 | $trick = $event->getEntity(); |
18 | 18 | $this->sendToDatabase($event); |
19 | - $this->addFlash(FlashMessageCategory::SUCCESS, 'Trick ' . $trick->getName() . ' updated'); |
|
19 | + $this->addFlash(FlashMessageCategory::SUCCESS, 'Trick '.$trick->getName().' updated'); |
|
20 | 20 | } |
21 | 21 | |
22 | 22 | /** |
@@ -80,7 +80,7 @@ |
||
80 | 80 | ), |
81 | 81 | 'text/html' |
82 | 82 | ); |
83 | - if($this->mailer->send($message)>0){ |
|
83 | + if ($this->mailer->send($message) > 0) { |
|
84 | 84 | $this->addFlash(FlashMessageCategory::SUCCESS, "A validation mail has been sent to ".$user->getEmail()); |
85 | 85 | return; |
86 | 86 | } |
@@ -89,7 +89,7 @@ |
||
89 | 89 | //is account email verified |
90 | 90 | if (!$user->getVerified()) { |
91 | 91 | //TODO : cleaner way of taking care of the account not validated. See #29 |
92 | - throw new CustomUserMessageAuthenticationException('Account email not verified, please use the reset password form', '',42); |
|
92 | + throw new CustomUserMessageAuthenticationException('Account email not verified, please use the reset password form', '', 42); |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | //If we get here then all is good |
@@ -2,6 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace App\Entity; |
4 | 4 | |
5 | -abstract class AppEntity{ |
|
5 | +abstract class AppEntity { |
|
6 | 6 | |
7 | 7 | } |
8 | 8 | \ No newline at end of file |