Passed
Push — master ( 2dd807...470cd2 )
by Jan
04:52
created
src/Controller/SecurityController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      */
101 101
     public function requestPwReset(PasswordResetManager $passwordReset, Request $request)
102 102
     {
103
-        if (! $this->allow_email_pw_reset) {
103
+        if (!$this->allow_email_pw_reset) {
104 104
             throw new AccessDeniedHttpException('The password reset via email is disabled!');
105 105
         }
106 106
 
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
      */
145 145
     public function pwResetNewPw(PasswordResetManager $passwordReset, Request $request, EntityManagerInterface $em, EventDispatcherInterface $eventDispatcher, ?string $user = null, ?string $token = null)
146 146
     {
147
-        if (! $this->allow_email_pw_reset) {
147
+        if (!$this->allow_email_pw_reset) {
148 148
             throw new AccessDeniedHttpException('The password reset via email is disabled!');
149 149
         }
150 150
 
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
             $data = $form->getData();
190 190
             //Try to set the new password
191 191
             $success = $passwordReset->setNewPassword($data['username'], $data['token'], $data['new_password']);
192
-            if (! $success) {
192
+            if (!$success) {
193 193
                 $this->addFlash('error', 'pw_reset.new_pw.error');
194 194
             } else {
195 195
                 $this->addFlash('success', 'pw_reset.new_pw.success');
Please login to merge, or discard this patch.
src/Form/UserSettingsType.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -72,27 +72,27 @@  discard block
 block discarded – undo
72 72
         $builder
73 73
             ->add('name', TextType::class, [
74 74
                 'label' => 'user.username.label',
75
-                'disabled' => ! $this->security->isGranted('edit_username', $options['data']) || $this->demo_mode,
75
+                'disabled' => !$this->security->isGranted('edit_username', $options['data']) || $this->demo_mode,
76 76
             ])
77 77
             ->add('first_name', TextType::class, [
78 78
                 'required' => false,
79 79
                 'label' => 'user.firstName.label',
80
-                'disabled' => ! $this->security->isGranted('edit_infos', $options['data']) || $this->demo_mode,
80
+                'disabled' => !$this->security->isGranted('edit_infos', $options['data']) || $this->demo_mode,
81 81
             ])
82 82
             ->add('last_name', TextType::class, [
83 83
                 'required' => false,
84 84
                 'label' => 'user.lastName.label',
85
-                'disabled' => ! $this->security->isGranted('edit_infos', $options['data']) || $this->demo_mode,
85
+                'disabled' => !$this->security->isGranted('edit_infos', $options['data']) || $this->demo_mode,
86 86
             ])
87 87
             ->add('department', TextType::class, [
88 88
                 'required' => false,
89 89
                 'label' => 'user.department.label',
90
-                'disabled' => ! $this->security->isGranted('edit_infos', $options['data']) || $this->demo_mode,
90
+                'disabled' => !$this->security->isGranted('edit_infos', $options['data']) || $this->demo_mode,
91 91
             ])
92 92
             ->add('email', EmailType::class, [
93 93
                 'required' => false,
94 94
                 'label' => 'user.email.label',
95
-                'disabled' => ! $this->security->isGranted('edit_infos', $options['data']) || $this->demo_mode,
95
+                'disabled' => !$this->security->isGranted('edit_infos', $options['data']) || $this->demo_mode,
96 96
             ])
97 97
             ->add('language', LanguageType::class, [
98 98
                 'disabled' => $this->demo_mode,
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
                 ],
125 125
                 'translation_domain' => false,
126 126
                 'choices' => User::AVAILABLE_THEMES,
127
-                'choice_label' => function ($entity, $key, $value) {
127
+                'choice_label' => function($entity, $key, $value) {
128 128
                     return $value;
129 129
                 },
130 130
                 'placeholder' => 'user_settings.theme.placeholder',
Please login to merge, or discard this patch.