@@ -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 |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace App\Services; |
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'; |