Passed
Push — master ( 47702d...01c19a )
by Jan
05:05
created
src/EventSubscriber/SymfonyDebugToolbarSubscriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
 
82 82
     public function onKernelResponse(ResponseEvent $event): void
83 83
     {
84
-        if (! $this->kernel_debug) {
84
+        if (!$this->kernel_debug) {
85 85
             return;
86 86
         }
87 87
 
Please login to merge, or discard this patch.
src/Security/Voter/ExtendedVoter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
         }
77 77
 
78 78
         // if the user is anonymous, we use the anonymous user.
79
-        if (! $user instanceof User) {
79
+        if (!$user instanceof User) {
80 80
             /** @var UserRepository $repo */
81 81
             $repo = $this->entityManager->getRepository(User::class);
82 82
             $user = $repo->getAnonymousUser();
Please login to merge, or discard this patch.
src/Services/GitVersionInfo.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
             $git = file($this->project_dir.'/.git/HEAD');
65 65
             $head = explode('/', $git[0], 3);
66 66
 
67
-            if (! isset($head[2])) {
67
+            if (!isset($head[2])) {
68 68
                 return null;
69 69
             }
70 70
 
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         if (is_file($filename)) {
90 90
             $head = file($filename);
91 91
 
92
-            if (! isset($head[0])) {
92
+            if (!isset($head[0])) {
93 93
                 return null;
94 94
             }
95 95
 
Please login to merge, or discard this patch.
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.
src/Controller/UserController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      *
122 122
      * @return Response
123 123
      */
124
-    public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?User $entity = null): Response
124
+    public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?User $entity = null) : Response
125 125
     {
126 126
         return $this->_new($request, $em, $importer, $entity);
127 127
     }
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
         //If no user id was passed, then we show info about the current user
172 172
         if (null === $user) {
173 173
             $tmp = $this->getUser();
174
-            if (! $tmp instanceof User) {
174
+            if (!$tmp instanceof User) {
175 175
                 throw new InvalidArgumentException('Userinfo only works for database users!');
176 176
             }
177 177
             $user = $tmp;
Please login to merge, or discard this patch.
src/Controller/AdminPages/CurrencyController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
      *
98 98
      * @return Response
99 99
      */
100
-    public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?Currency $entity = null): Response
100
+    public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?Currency $entity = null) : Response
101 101
     {
102 102
         return $this->_new($request, $em, $importer, $entity);
103 103
     }
Please login to merge, or discard this patch.
src/Controller/AdminPages/CategoryController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
      *
96 96
      * @return Response
97 97
      */
98
-    public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?Category $entity = null): Response
98
+    public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?Category $entity = null) : Response
99 99
     {
100 100
         return $this->_new($request, $em, $importer, $entity);
101 101
     }
Please login to merge, or discard this patch.
src/Controller/AdminPages/MeasurementUnitController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
      *
96 96
      * @return Response
97 97
      */
98
-    public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?MeasurementUnit $entity = null): Response
98
+    public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?MeasurementUnit $entity = null) : Response
99 99
     {
100 100
         return $this->_new($request, $em, $importer, $entity);
101 101
     }
Please login to merge, or discard this patch.