@@ -237,7 +237,7 @@ |
||
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 { |
@@ -267,7 +267,8 @@ |
||
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 | } |
@@ -63,7 +63,7 @@ |
||
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; |