Passed
Push — develop ( 4a45d7...fcf94d )
by Stone
04:33
created
src/EventSubscriber/Trick/TrickDeletedSubscriber.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
     {
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
     /**
Please login to merge, or discard this patch.
src/Entity/AppEntity.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,6 +2,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
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/EventSubscriber/User/UserAccountSubscriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
         );
97 97
 
98 98
         if ($mailSent) {
99
-            $this->addFlash(FlashMessageCategory::SUCCESS, "A validation mail has been sent to " . $user->getEmail());
99
+            $this->addFlash(FlashMessageCategory::SUCCESS, "A validation mail has been sent to ".$user->getEmail());
100 100
             return;
101 101
         }
102 102
 
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/Security/UserValidator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     {
45 45
         $this->retrieveUserFromToken($token);
46 46
 
47
-        if($this->isUserVerified()){
47
+        if ($this->isUserVerified()) {
48 48
             $this->addFlash(FlashMessageCategory::ERROR, 'Mail already verified');
49 49
             throw new RedirectException($this->urlGenerator->generate('app_login'));
50 50
         }
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     public function doesResetpasswordTokenValidateEmail(string $token):bool
63 63
     {
64 64
         $this->retrieveUserFromToken($token);
65
-        if(!$this->isUserVerifiedDateTime()){
65
+        if (!$this->isUserVerifiedDateTime()) {
66 66
             $this->addFlash(FlashMessageCategory::ERROR, 'Token is too old, please use this form to resend a link');
67 67
             throw new RedirectException($this->urlGenerator->generate('app_forgotpassword'));
68 68
         }
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      */
96 96
     private function isUserVerifiedDateTime():bool
97 97
     {
98
-        if($this->user){
98
+        if ($this->user) {
99 99
             return $this->user->isVerifiedDateTimeValid();
100 100
         }
101 101
         return false;
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      */
109 109
     private function isUserVerified():bool
110 110
     {
111
-        if($this->user){
111
+        if ($this->user) {
112 112
             return $this->user->getVerified();
113 113
         }
114 114
         return false;
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/EventSubscriber/Exception/RedirectExceptionSubscriber.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
         if ($event->getException() instanceof RedirectException) {
31 31
             $redirectResponse = new RedirectResponse($event->getException()->getRedirectResponse());
32 32
 
33
-            if($event->getException()->getMessage() !== ""){
33
+            if ($event->getException()->getMessage() !== "") {
34 34
                 $this->addFlash(FlashMessageCategory::ERROR, $event->getException()->getMessage());
35 35
             }
36 36
 
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.