Code improvements (#1649)
* use global namespace for faster lookups * phpstan level 5
This commit is contained in:
@@ -36,13 +36,13 @@ class ShortInvoiceCalculator extends AbstractMergedCalculator implements Calcula
|
||||
if (null !== $entry->getFixedRate()) {
|
||||
$key = 'fixed_' . (string) $entry->getFixedRate();
|
||||
}
|
||||
if (!in_array($key, $keys)) {
|
||||
if (!\in_array($key, $keys)) {
|
||||
$keys[] = $key;
|
||||
}
|
||||
$this->mergeInvoiceItems($invoiceItem, $entry);
|
||||
}
|
||||
|
||||
if (count($keys) > 1) {
|
||||
if (\count($keys) > 1) {
|
||||
$invoiceItem->setAmount(1);
|
||||
$invoiceItem->setFixedRate($invoiceItem->getRate());
|
||||
$invoiceItem->setHourlyRate($invoiceItem->getRate());
|
||||
|
||||
Reference in New Issue
Block a user