Passed
Push — master ( 99b2fc...23d1f3 )
by Andreas
13:13
created
lib/org/openpsa/invoices/invoice.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -237,7 +237,7 @@
 block discarded – undo
237 237
                 $invoice_item->pricePerUnit = $deliverable->pricePerUnit;
238 238
                 $invoice_item->deliverable = $deliverable->id;
239 239
                 //calculate price
240
-                if (   $deliverable->invoiceByActualUnits
240
+                if ($deliverable->invoiceByActualUnits
241 241
                     || $deliverable->plannedUnits == 0) {
242 242
                     $invoice_item->units = $hours;
243 243
                 } else {
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -267,7 +267,8 @@
 block discarded – undo
267 267
             if (!empty($this->$property)) {
268 268
                 try {
269 269
                     return $class::get_cached($this->$property);
270
-                } catch (midcom_error $e) {
270
+                }
271
+                catch (midcom_error $e) {
271 272
                     $e->log();
272 273
                 }
273 274
             }
Please login to merge, or discard this patch.
lib/org/openpsa/invoices/billing/data.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
     /**
64 64
      * Get the billing data for given contact if any.
65 65
      */
66
-    private static function get_billing_data(string $dba_class, string|int $contact_id) : ?self
66
+    private static function get_billing_data(string $dba_class, string | int $contact_id) : ?self
67 67
     {
68 68
         if ($contact_id == 0) {
69 69
             return null;
Please login to merge, or discard this patch.