mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-10 02:14:31 +02:00
Fixed some inspection issues.
This commit is contained in:
parent
639829f5c5
commit
8e6bc25d2e
19 changed files with 39 additions and 40 deletions
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue