Test Failed
Branch feature/userUnitTests (e68c48)
by Stone
05:43
created
Category
src/DataFixtures/TrickFixtures.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
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))
Please login to merge, or discard this patch.
src/Form/TrickType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,10 +14,10 @@
 block discarded – undo
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'
Please login to merge, or discard this patch.
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/EventSubscriber/User/UserRegisteredSubscriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Security/LoginFormAuthenticator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
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
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.