Fixed some inspection issues.

This commit is contained in:
Jan Böhmer 2022-08-14 19:32:53 +02:00
parent eef26f7ae6
commit 639829f5c5
97 changed files with 305 additions and 185 deletions

View file

@ -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;
}