Passed
Branch develop (6624c8)
by Stone
04:19
created
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.
src/EventSubscriber/Trick/TrickCreatedSubscriber.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->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
     /**
Please login to merge, or discard this patch.
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/EventSubscriber/Trick/TrickEditedSubscriber.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->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
     /**
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/Mail/SendMail.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 
25 25
     public function send(string $subject, string $template, $mailData, string $to, String $from = null):bool
26 26
     {
27
-        if ($from === null){
27
+        if ($from === null) {
28 28
             $from = getenv('ADMIN_EMAIL');
29 29
         }
30 30
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
                 ),
39 39
                 'text/html'
40 40
             );
41
-        return $this->mailer->send($message)>0;
41
+        return $this->mailer->send($message) > 0;
42 42
 
43 43
     }
44 44
 
Please login to merge, or discard this patch.