mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-19 09:08:45 +02:00
Fixed some inspection issues.
This commit is contained in:
parent
eef26f7ae6
commit
639829f5c5
97 changed files with 305 additions and 185 deletions
|
@ -50,6 +50,8 @@ use Brick\Math\RoundingMode;
|
|||
use Doctrine\ORM\PersistentCollection;
|
||||
use Locale;
|
||||
|
||||
use function count;
|
||||
|
||||
class PricedetailHelper
|
||||
{
|
||||
protected $base_currency;
|
||||
|
@ -74,7 +76,7 @@ class PricedetailHelper
|
|||
foreach ($orderdetails as $orderdetail) {
|
||||
$pricedetails = $orderdetail->getPricedetails();
|
||||
//The orderdetail must have pricedetails, otherwise this will not work!
|
||||
if (0 === \count($pricedetails)) {
|
||||
if (0 === count($pricedetails)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -121,7 +123,7 @@ class PricedetailHelper
|
|||
foreach ($orderdetails as $orderdetail) {
|
||||
$pricedetails = $orderdetail->getPricedetails();
|
||||
//The orderdetail must have pricedetails, otherwise this will not work!
|
||||
if (0 === \count($pricedetails)) {
|
||||
if (0 === count($pricedetails)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue