Passed
Push — master ( b6e88d...0fe83c )
by Jan
04:34
created
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()
@@ -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/DataTables/Column/LogEntryTargetColumn.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
         $tmp = '';
99 99
 
100 100
         //The element is existing
101
-        if ($target instanceof NamedElementInterface && ! empty($target->getName())) {
101
+        if ($target instanceof NamedElementInterface && !empty($target->getName())) {
102 102
             try {
103 103
                 $tmp = sprintf(
104 104
                     '<a href="%s">%s</a>',
Please login to merge, or discard this patch.
src/Controller/AdminPages/BaseAdminController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
         $form->handleRequest($request);
162 162
         if ($form->isSubmitted() && $form->isValid()) {
163 163
             //Check if we editing a user and if we need to change the password of it
164
-            if ($entity instanceof User && ! empty($form['new_password']->getData())) {
164
+            if ($entity instanceof User && !empty($form['new_password']->getData())) {
165 165
                 $password = $this->passwordEncoder->encodePassword($entity, $form['new_password']->getData());
166 166
                 $entity->setPassword($password);
167 167
                 //By default the user must change the password afterwards
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
                 'attachment_class' => $this->attachment_class,
200 200
                 'parameter_class' => $this->parameter_class,
201 201
             ]);
202
-        } elseif ($form->isSubmitted() && ! $form->isValid()) {
202
+        } elseif ($form->isSubmitted() && !$form->isValid()) {
203 203
             $this->addFlash('error', 'entity.edit_flash.invalid');
204 204
         }
205 205
 
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
         $form->handleRequest($request);
230 230
 
231 231
         if ($form->isSubmitted() && $form->isValid()) {
232
-            if ($new_entity instanceof User && ! empty($form['new_password']->getData())) {
232
+            if ($new_entity instanceof User && !empty($form['new_password']->getData())) {
233 233
                 $password = $this->passwordEncoder->encodePassword($new_entity, $form['new_password']->getData());
234 234
                 $new_entity->setPassword($password);
235 235
                 //By default the user must change the password afterwards
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
             return $this->redirectToRoute($this->route_base.'_edit', ['id' => $new_entity->getID()]);
265 265
         }
266 266
 
267
-        if ($form->isSubmitted() && ! $form->isValid()) {
267
+        if ($form->isSubmitted() && !$form->isValid()) {
268 268
             $this->addFlash('error', 'entity.created_flash.invalid');
269 269
         }
270 270
 
Please login to merge, or discard this patch.
src/Services/EntityURLGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -381,7 +381,7 @@
 block discarded – undo
381 381
         $class = get_class($entity);
382 382
 
383 383
         //Check if we have an direct mapping for the given class
384
-        if (! array_key_exists($class, $map)) {
384
+        if (!array_key_exists($class, $map)) {
385 385
             //Check if we need to check inheritance by looping through our map
386 386
             foreach (array_keys($map) as $key) {
387 387
                 if (is_a($entity, $key)) {
Please login to merge, or discard this patch.
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.
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 (file_exists($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.