protected function min(float $value1 = null, float $value2 = null) {
        $temp1 = $value1 ?: 0;
        $temp2 = $value2 ?: 0;

        $tempmin = min($temp1, $temp2);

        if (!$tempmin && $value1 !== 0 && $value2 !== 0) {
            $min = null;
        } else {
            $min = $tempmin;
        }

        return $min;
    }
protected function min(float $value1 = null, float $value2 = null) {
        $temp1 = $value1 ?: 0;
        $temp2 = $value2 ?: 0;

        $tempmin = min($temp1, $temp2);

        if (!$tempmin && $value1 !== 0 && $value2 !== 0) {
            $min = null;
        } else {
            $min = $tempmin;
        }

        return $min;
    }
protected function min ( float $ value1 = null , float $ value2 = null ) { $ temp1 = $ value1 ? : 0 ; $ temp2 = $ value2 ? : 0 ; $ tempmin = min ( $ temp1 , $ temp2 ) ; if ( ! $ tempmin && $ value1 !== 0 && $ value2 !== 0 ) { $ min = null ; } else { $ min = $ tempmin ; } return $ min ; }
Find lower value.
A zero value is almost considered equal to zero in comparisons. The only difference is that when being compared to zero,
zero is lower than null.

@param float|null $value1
@param float|null $value2
@return mixed|null
Find lower value . A zero value is almost considered equal to zero in comparisons . The only difference is that when being compared to zero zero is lower than null .