Passed
Push — master ( 409c3f...e5371a )
by Andreas
09:22
created
lib/midcom/helper/reflector/nameresolver.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     public function get_object_name(string $name_property = null) : ?string
33 33
     {
34 34
         $name_property ??= midcom_helper_reflector::get_name_property($this->_object);
35
-        if (    empty($name_property)
35
+        if (empty($name_property)
36 36
             || !midcom_helper_reflector::get($this->_object)->property_exists($name_property)) {
37 37
             // Could not resolve valid property
38 38
             return null;
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 
125 125
             $qb->add_constraint($child_name_property, '=', $name);
126 126
             if ($qb->count()) {
127
-                debug_add("Name clash in sibling class {$schema_type} for " . get_class($this->_object) . " #{$this->_object->id} (path '" . midcom_helper_reflector_tree::resolve_path($this->_object, '/') . "')" );
127
+                debug_add("Name clash in sibling class {$schema_type} for " . get_class($this->_object) . " #{$this->_object->id} (path '" . midcom_helper_reflector_tree::resolve_path($this->_object, '/') . "')");
128 128
                 return false;
129 129
             }
130 130
         }
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
         } while (!$this->name_is_unique());
200 200
 
201 201
         // Get a copy of the current, usable name
202
-        $ret = (string)$this->_object->{$name_prop};
202
+        $ret = (string) $this->_object->{$name_prop};
203 203
         // Restore the original name
204 204
         $this->_object->{$name_prop} = $original_name;
205 205
         return $ret;
Please login to merge, or discard this patch.
lib/midcom/core/context.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -254,7 +254,7 @@
 block discarded – undo
254 254
      */
255 255
     public function set_custom_key($key, &$value)
256 256
     {
257
-        $this->_data[MIDCOM_CONTEXT_CUSTOMDATA][$key] =& $value;
257
+        $this->_data[MIDCOM_CONTEXT_CUSTOMDATA][$key] = & $value;
258 258
     }
259 259
 
260 260
     public function show()
Please login to merge, or discard this patch.
lib/org/openpsa/invoices/invoice.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
                 $invoice_item->pricePerUnit = $deliverable->pricePerUnit;
209 209
                 $invoice_item->deliverable = $deliverable->id;
210 210
                 //calculate price
211
-                if (   $deliverable->invoiceByActualUnits
211
+                if ($deliverable->invoiceByActualUnits
212 212
                     || $deliverable->plannedUnits == 0) {
213 213
                     $invoice_item->units = $hours;
214 214
                 } else {
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
      */
250 250
     public function get_billing_data() : org_openpsa_invoices_billing_data_dba
251 251
     {
252
-        return $this->_billing_data ??= org_openpsa_invoices_billing_data_dba::get_by_object($this);;
252
+        return $this->_billing_data ??= org_openpsa_invoices_billing_data_dba::get_by_object($this); ;
253 253
     }
254 254
 
255 255
     public function get_customer()
Please login to merge, or discard this patch.
src/midcom/datamanager/extension/type/codemirrorType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      */
25 25
     public function configureOptions(OptionsResolver $resolver)
26 26
     {
27
-        $map_attr = function (Options $options, $value) {
27
+        $map_attr = function(Options $options, $value) {
28 28
             $value ??= [];
29 29
             $value['class'] = $options['widget_config']['enabled'] ? 'codemirror ' . $options['widget_config']['language'] : 'longtext';
30 30
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
             ]
45 45
         ]);
46 46
 
47
-        $resolver->setNormalizer('constraints', function (Options $options, $value) {
47
+        $resolver->setNormalizer('constraints', function(Options $options, $value) {
48 48
             if ($options['dm2_type'] == 'php') {
49 49
                 $value[] = new php;
50 50
             }
Please login to merge, or discard this patch.