mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 12:17:02 -04:00
Static analysis cleanup
This commit is contained in:
parent
d8da1f8fea
commit
2b83235572
@ -450,9 +450,9 @@ class Credit extends BaseModel
|
|||||||
/**
|
/**
|
||||||
* Access the invoice calculator object.
|
* Access the invoice calculator object.
|
||||||
*
|
*
|
||||||
* @return \stdClass The invoice calculator object getters
|
* @return InvoiceSumInclusive | InvoiceSum The invoice calculator object getters
|
||||||
*/
|
*/
|
||||||
public function calc()
|
public function calc(): InvoiceSumInclusive | InvoiceSum
|
||||||
{
|
{
|
||||||
$credit_calc = null;
|
$credit_calc = null;
|
||||||
|
|
||||||
|
@ -666,7 +666,7 @@ class Invoice extends BaseModel
|
|||||||
*
|
*
|
||||||
* @return InvoiceSumInclusive | InvoiceSum The invoice calculator object getters
|
* @return InvoiceSumInclusive | InvoiceSum The invoice calculator object getters
|
||||||
*/
|
*/
|
||||||
public function calc()
|
public function calc(): InvoiceSumInclusive | InvoiceSum
|
||||||
{
|
{
|
||||||
$invoice_calc = null;
|
$invoice_calc = null;
|
||||||
|
|
||||||
|
@ -353,19 +353,14 @@ class PurchaseOrder extends BaseModel
|
|||||||
switch ($status) {
|
switch ($status) {
|
||||||
case self::STATUS_DRAFT:
|
case self::STATUS_DRAFT:
|
||||||
return '<h5><span class="badge badge-light">'.ctrans('texts.draft').'</span></h5>';
|
return '<h5><span class="badge badge-light">'.ctrans('texts.draft').'</span></h5>';
|
||||||
break;
|
|
||||||
case self::STATUS_SENT:
|
case self::STATUS_SENT:
|
||||||
return '<h5><span class="badge badge-primary">'.ctrans('texts.sent').'</span></h5>';
|
return '<h5><span class="badge badge-primary">'.ctrans('texts.sent').'</span></h5>';
|
||||||
break;
|
|
||||||
case self::STATUS_ACCEPTED:
|
case self::STATUS_ACCEPTED:
|
||||||
return '<h5><span class="badge badge-primary">'.ctrans('texts.accepted').'</span></h5>';
|
return '<h5><span class="badge badge-primary">'.ctrans('texts.accepted').'</span></h5>';
|
||||||
break;
|
|
||||||
case self::STATUS_CANCELLED:
|
case self::STATUS_CANCELLED:
|
||||||
return '<h5><span class="badge badge-secondary">'.ctrans('texts.cancelled').'</span></h5>';
|
return '<h5><span class="badge badge-secondary">'.ctrans('texts.cancelled').'</span></h5>';
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
// code...
|
return '<h5><span class="badge badge-primary">'.ctrans('texts.sent').'</span></h5>';
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -491,7 +486,12 @@ class PurchaseOrder extends BaseModel
|
|||||||
return $this->morphMany(Document::class, 'documentable');
|
return $this->morphMany(Document::class, 'documentable');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function calc()
|
/**
|
||||||
|
* Access the invoice calculator object.
|
||||||
|
*
|
||||||
|
* @return InvoiceSumInclusive | InvoiceSum The invoice calculator object getters
|
||||||
|
*/
|
||||||
|
public function calc(): InvoiceSumInclusive | InvoiceSum
|
||||||
{
|
{
|
||||||
$purchase_order_calc = null;
|
$purchase_order_calc = null;
|
||||||
|
|
||||||
|
@ -393,9 +393,9 @@ class Quote extends BaseModel
|
|||||||
/**
|
/**
|
||||||
* Access the quote calculator object.
|
* Access the quote calculator object.
|
||||||
*
|
*
|
||||||
* @return \stdClass The quote calculator object getters
|
* @return InvoiceSumInclusive | InvoiceSum The quote calculator object getters
|
||||||
*/
|
*/
|
||||||
public function calc()
|
public function calc(): InvoiceSumInclusive | InvoiceSum
|
||||||
{
|
{
|
||||||
$quote_calc = null;
|
$quote_calc = null;
|
||||||
|
|
||||||
|
@ -697,7 +697,12 @@ class RecurringInvoice extends BaseModel
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function calc()
|
/**
|
||||||
|
* Access the invoice calculator object.
|
||||||
|
*
|
||||||
|
* @return InvoiceSumInclusive | InvoiceSum The invoice calculator object getters
|
||||||
|
*/
|
||||||
|
public function calc(): InvoiceSumInclusive | InvoiceSum
|
||||||
{
|
{
|
||||||
$invoice_calc = null;
|
$invoice_calc = null;
|
||||||
|
|
||||||
|
@ -604,7 +604,12 @@ class RecurringQuote extends BaseModel
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function calc()
|
/**
|
||||||
|
* Access the invoice calculator object.
|
||||||
|
*
|
||||||
|
* @return InvoiceSumInclusive | InvoiceSum The invoice calculator object getters
|
||||||
|
*/
|
||||||
|
public function calc(): InvoiceSumInclusive | InvoiceSum
|
||||||
{
|
{
|
||||||
$invoice_calc = null;
|
$invoice_calc = null;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user