Passed
Push — master ( d4e072...0c21d6 )
by Jan
07:40 queued 03:21
created
src/Services/PricedetailHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
             } else {
67 67
                 // We have to sort the pricedetails manually
68 68
                 $array = $pricedetails->map(
69
-                    function (Pricedetail $pricedetail) {
69
+                    function(Pricedetail $pricedetail) {
70 70
                         return $pricedetail->getMinDiscountQuantity();
71 71
                     }
72 72
                 )->toArray();
Please login to merge, or discard this patch.
src/Twig/AppExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
     public function getTests()
80 80
     {
81 81
         return [
82
-            new TwigTest('instanceof', function ($var, $instance) {
82
+            new TwigTest('instanceof', function($var, $instance) {
83 83
                 return $var instanceof $instance;
84 84
             }),
85 85
         ];
Please login to merge, or discard this patch.
src/Entity/Base/StructuralDBElement.php 2 patches
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -176,7 +176,6 @@
 block discarded – undo
176 176
 
177 177
     /**
178 178
      *  Get the comment of the element.
179
-
180 179
      *
181 180
      * @return string the comment
182 181
      */
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 
118 118
         //Check if both elements compared, are from the same type
119 119
         // (we have to check inheritance, or we get exceptions when using doctrine entities (they have a proxy type):
120
-        if (! is_a($another_element, $class_name) && ! is_a($this, \get_class($another_element))) {
120
+        if (!is_a($another_element, $class_name) && !is_a($this, \get_class($another_element))) {
121 121
             throw new \InvalidArgumentException('isChildOf() only works for objects of the same type!');
122 122
         }
123 123
 
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
      */
202 202
     public function getFullPath(string $delimiter = self::PATH_DELIMITER_ARROW): string
203 203
     {
204
-        if (! \is_array($this->full_path_strings)) {
204
+        if (!\is_array($this->full_path_strings)) {
205 205
             $this->full_path_strings = [];
206 206
             $this->full_path_strings[] = $this->getName();
207 207
             $element = $this;
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
         $tmp[] = $this;
234 234
 
235 235
         //We only allow 20 levels depth
236
-        while (! end($tmp)->isRoot() && \count($tmp) < 20) {
236
+        while (!end($tmp)->isRoot() && \count($tmp) < 20) {
237 237
             $tmp[] = end($tmp)->parent;
238 238
         }
239 239
 
Please login to merge, or discard this patch.
src/DataTables/Column/EntityColumn.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,12 +60,12 @@
 block discarded – undo
60 60
 
61 61
         $resolver->setRequired('property');
62 62
 
63
-        $resolver->setDefault('field', function (Options $option) {
63
+        $resolver->setDefault('field', function(Options $option) {
64 64
             return $option['property'].'.name';
65 65
         });
66 66
 
67
-        $resolver->setDefault('render', function (Options $options) {
68
-            return function ($value, Part $context) use ($options) {
67
+        $resolver->setDefault('render', function(Options $options) {
68
+            return function($value, Part $context) use ($options) {
69 69
                 /** @var DBElement $entity */
70 70
                 $entity = $this->accessor->getValue($context, $options['property']);
71 71
 
Please login to merge, or discard this patch.
src/Services/Trees/ToolsTreeBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
     {
78 78
         $key = 'tree_tools_'.$this->keyGenerator->generateKey();
79 79
 
80
-        return $this->cache->get($key, function (ItemInterface $item) {
80
+        return $this->cache->get($key, function(ItemInterface $item) {
81 81
             //Invalidate tree, whenever group or the user changes
82 82
             $item->tag(['tree_tools', 'groups', $this->keyGenerator->generateKey()]);
83 83
 
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
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         $crawler = $client->request('GET', static::$base_path.'/new');
72 72
         $this->assertFalse($client->getResponse()->isRedirect());
73 73
         $this->assertSame($read, $client->getResponse()->isSuccessful(), 'Controller was not successful!');
74
-        $this->assertSame($read, ! $client->getResponse()->isForbidden(), 'Permission Checking not working!');
74
+        $this->assertSame($read, !$client->getResponse()->isForbidden(), 'Permission Checking not working!');
75 75
     }
76 76
 
77 77
     /**
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
         $crawler = $client->request('GET', static::$base_path.'/1');
97 97
         $this->assertFalse($client->getResponse()->isRedirect());
98 98
         $this->assertSame($read, $client->getResponse()->isSuccessful(), 'Controller was not successful!');
99
-        $this->assertSame($read, ! $client->getResponse()->isForbidden(), 'Permission Checking not working!');
99
+        $this->assertSame($read, !$client->getResponse()->isForbidden(), 'Permission Checking not working!');
100 100
     }
101 101
 
102 102
     public function deleteDataProvider()
@@ -133,6 +133,6 @@  discard block
 block discarded – undo
133 133
 
134 134
         //Page is redirected to '/new', when delete was successful
135 135
         $this->assertSame($delete, $client->getResponse()->isRedirect(static::$base_path.'/new'));
136
-        $this->assertSame($delete, ! $client->getResponse()->isForbidden(), 'Permission Checking not working!');
136
+        $this->assertSame($delete, !$client->getResponse()->isForbidden(), 'Permission Checking not working!');
137 137
     }
138 138
 }
Please login to merge, or discard this patch.
src/Controller/AttachmentFileController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
             throw new \RuntimeException('You can not download external attachments!');
53 53
         }
54 54
 
55
-        if (! $helper->isFileExisting($attachment)) {
55
+        if (!$helper->isFileExisting($attachment)) {
56 56
             throw new \RuntimeException('The file associated with the attachment is not existing!');
57 57
         }
58 58
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
             throw new \RuntimeException('You can not download external attachments!');
83 83
         }
84 84
 
85
-        if (! $helper->isFileExisting($attachment)) {
85
+        if (!$helper->isFileExisting($attachment)) {
86 86
             throw new \RuntimeException('The file associated with the attachment is not existing!');
87 87
         }
88 88
 
Please login to merge, or discard this patch.
src/Controller/RedirectController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 
59 59
         //Check if a user has set a preferred language setting:
60 60
         $user = $this->getUser();
61
-        if (($user instanceof User) && ! empty($user->getLanguage())) {
61
+        if (($user instanceof User) && !empty($user->getLanguage())) {
62 62
             $locale = $user->getLanguage();
63 63
         }
64 64
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         $new_url = $request->getUriForPath('/'.$locale.$request->getPathInfo());
67 67
 
68 68
         //If either mod_rewrite is not enabled or the index.php version is enforced, add index.php to the string
69
-        if (($this->enforce_index_php || ! $this->checkIfModRewriteAvailable())
69
+        if (($this->enforce_index_php || !$this->checkIfModRewriteAvailable())
70 70
             && false === strpos($new_url, 'index.php')) {
71 71
             //Like Request::getUriForPath only with index.php
72 72
             $new_url = $request->getSchemeAndHttpHost().$request->getBaseUrl().'/index.php/'.$locale.$request->getPathInfo();
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      */
85 85
     public function checkIfModRewriteAvailable()
86 86
     {
87
-        if (! \function_exists('apache_get_modules')) {
87
+        if (!\function_exists('apache_get_modules')) {
88 88
             //If we can not check for apache modules, we just hope for the best and assume url rewriting is available
89 89
             //If you want to enforce index.php versions of the url, you can override this via ENV vars.
90 90
             return true;
Please login to merge, or discard this patch.
src/Controller/PartController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
             $this->addFlash('info', 'part.edited_flash');
104 104
             //Reload form, so the SIUnitType entries use the new part unit
105 105
             $form = $this->createForm(PartBaseType::class, $part);
106
-        } elseif ($form->isSubmitted() && ! $form->isValid()) {
106
+        } elseif ($form->isSubmitted() && !$form->isValid()) {
107 107
             $this->addFlash('error', 'part.edited_flash.invalid');
108 108
         }
109 109
 
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
             return $this->redirectToRoute('part_edit', ['id' => $new_part->getID()]);
190 190
         }
191 191
 
192
-        if ($form->isSubmitted() && ! $form->isValid()) {
192
+        if ($form->isSubmitted() && !$form->isValid()) {
193 193
             $this->addFlash('error', 'part.created_flash.invalid');
194 194
         }
195 195
 
Please login to merge, or discard this patch.