Completed
Branch master (c8bc5d)
by Jan
11:58 queued 07:17
created
src/Services/PermissionResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -179,7 +179,7 @@
 block discarded – undo
179 179
      */
180 180
     public function listOperationsForPermission(string $permission): array
181 181
     {
182
-        if(!$this->isValidPermission($permission)) {
182
+        if (!$this->isValidPermission($permission)) {
183 183
             throw new \InvalidArgumentException(sprintf('A permission with that name is not existing! Got %s.', $permission));
184 184
         }
185 185
         $operations = $this->permission_structure['perms'][$permission]['operations'];
Please login to merge, or discard this patch.
src/Services/EntityExporter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         }
98 98
 
99 99
         //Ensure that we always serialize an array. This makes it easier to import the data again.
100
-        if(is_array($entity)) {
100
+        if (is_array($entity)) {
101 101
             $entity_array = $entity;
102 102
         } else {
103 103
             $entity_array = [$entity];
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
             }
131 131
 
132 132
 
133
-            $filename = "export_" . $entity_name . "_" . $level . "." . $format;
133
+            $filename = "export_".$entity_name."_".$level.".".$format;
134 134
 
135 135
             // Create the disposition of the file
136 136
             $disposition = $response->headers->makeDisposition(
Please login to merge, or discard this patch.
src/Services/EntityImporter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -137,11 +137,11 @@
 block discarded – undo
137 137
         }
138 138
 
139 139
         //The [] behind class_name denotes that we expect an array.
140
-        $entities = $this->serializer->deserialize($content, $class_name . '[]', $options['format'],
140
+        $entities = $this->serializer->deserialize($content, $class_name.'[]', $options['format'],
141 141
             ['groups' => $groups, 'csv_delimiter' => $options['csv_separator']]);
142 142
 
143 143
         //Ensure we have an array of entitity elements.
144
-        if(!is_array($entities)) {
144
+        if (!is_array($entities)) {
145 145
             $entities = [$entities];
146 146
         }
147 147
 
Please login to merge, or discard this patch.
src/Services/StructuralElementRecursionHelper.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
             $em->remove($element);
96 96
         });
97 97
 
98
-        if($flush) {
98
+        if ($flush) {
99 99
             $em->flush();
100 100
         }
101 101
     }
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
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
     public function getTests()
69 69
     {
70 70
         return [
71
-            new TwigTest('instanceof', function ($var, $instance) {
71
+            new TwigTest('instanceof', function($var, $instance) {
72 72
                 return $var instanceof $instance;
73 73
             } )
74 74
         ];
Please login to merge, or discard this patch.
src/Entity/Parts/MeasurementUnit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
      */
79 79
     public function getIDString(): string
80 80
     {
81
-        return 'MU' . $this->getID();
81
+        return 'MU'.$this->getID();
82 82
     }
83 83
 
84 84
     /**
Please login to merge, or discard this patch.
src/Entity/Attachments/Attachment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -221,7 +221,7 @@
 block discarded – undo
221 221
         if ($only_http) {   //Check if scheme is HTTPS or HTTP
222 222
             $scheme = parse_url($string, PHP_URL_SCHEME);
223 223
             if ($scheme !== 'http' && $scheme !== 'https') {
224
-                return false;   //All other schemes are not valid.
224
+                return false; //All other schemes are not valid.
225 225
             }
226 226
         }
227 227
         if ($path_required) {
Please login to merge, or discard this patch.
src/Entity/Attachments/AttachmentType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,6 +77,6 @@
 block discarded – undo
77 77
      */
78 78
     public function getIDString(): string
79 79
     {
80
-        return 'AT' . sprintf('%09d', $this->getID());
80
+        return 'AT'.sprintf('%09d', $this->getID());
81 81
     }
82 82
 }
Please login to merge, or discard this patch.
src/Entity/PriceInformations/Currency.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,6 +126,6 @@
 block discarded – undo
126 126
      */
127 127
     public function getIDString(): string
128 128
     {
129
-        return 'C' . $this->getID();
129
+        return 'C'.$this->getID();
130 130
     }
131 131
 }
132 132
\ No newline at end of file
Please login to merge, or discard this patch.