Fixed some inspection issues.

This commit is contained in:
Jan Böhmer 2022-08-14 19:39:07 +02:00
parent 639829f5c5
commit 8e6bc25d2e
19 changed files with 39 additions and 40 deletions

View file

@ -81,10 +81,10 @@ class RangeParser
}
}
protected function generateMinMaxRange(string $min, string $max): array
protected function generateMinMaxRange(string $min_, string $max_): array
{
$min = (int) $min;
$max = (int) $max;
$min = (int) $min_;
$max = (int) $max_;
//Ensure that $max > $min
if ($min > $max) {

View file

@ -146,10 +146,10 @@ class PricedetailHelper
/**
* Calculates the average price of a part, when ordering the amount $amount.
*
* @param Part $part the part for which the average price should be calculated
* @param float $amount The order amount for which the average price should be calculated.
* @param Part $part the part for which the average price should be calculated
* @param float|null $amount The order amount for which the average price should be calculated.
* If set to null, the mininmum order amount for the part is used.
* @param Currency|null $currency The currency in which the average price should be calculated
* @param Currency|null $currency The currency in which the average price should be calculated
*
* @return BigDecimal|null The Average price as bcmath string. Returns null, if it was not possible to calculate the
* price for the given