Passed
Push — master ( 167e46...f32ae8 )
by Jan
08:15 queued 03:49
created
src/Services/Parameters/ParameterExtractor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public function extractParameters(string $input, string $class = PartParameter::class): array
42 42
     {
43
-        if (! is_a($class, AbstractParameter::class, true)) {
43
+        if (!is_a($class, AbstractParameter::class, true)) {
44 44
             throw new \InvalidArgumentException('$class must be a child class of AbstractParameter!');
45 45
         }
46 46
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 
69 69
         $matches = [];
70 70
         \preg_match($regex, $input, $matches);
71
-        if (! empty($matches)) {
71
+        if (!empty($matches)) {
72 72
             [, $name, $value] = $matches;
73 73
             $value = trim($value);
74 74
 
Please login to merge, or discard this patch.
tests/Controller/AdminPages/AbstractAdminControllerTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         $client->request('GET', static::$base_path.'/new');
91 91
         $this->assertFalse($client->getResponse()->isRedirect());
92 92
         $this->assertSame($read, $client->getResponse()->isSuccessful(), 'Controller was not successful!');
93
-        $this->assertSame($read, ! $client->getResponse()->isForbidden(), 'Permission Checking not working!');
93
+        $this->assertSame($read, !$client->getResponse()->isForbidden(), 'Permission Checking not working!');
94 94
     }
95 95
 
96 96
     /**
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
         $client->request('GET', static::$base_path.'/1');
116 116
         $this->assertFalse($client->getResponse()->isRedirect());
117 117
         $this->assertSame($read, $client->getResponse()->isSuccessful(), 'Controller was not successful!');
118
-        $this->assertSame($read, ! $client->getResponse()->isForbidden(), 'Permission Checking not working!');
118
+        $this->assertSame($read, !$client->getResponse()->isForbidden(), 'Permission Checking not working!');
119 119
     }
120 120
 
121 121
     public function deleteDataProvider(): array
@@ -152,6 +152,6 @@  discard block
 block discarded – undo
152 152
 
153 153
         //Page is redirected to '/new', when delete was successful
154 154
         $this->assertSame($delete, $client->getResponse()->isRedirect(static::$base_path.'/new'));
155
-        $this->assertSame($delete, ! $client->getResponse()->isForbidden(), 'Permission Checking not working!');
155
+        $this->assertSame($delete, !$client->getResponse()->isForbidden(), 'Permission Checking not working!');
156 156
     }
157 157
 }
Please login to merge, or discard this patch.
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/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.