protected function resolveMinMax($min, $max, $adder)
    {
        if (!$max || $min > $max) {
            $max = $min + $adder;
        } elseif (!$min || $min > $max) {
            $min = $max - $adder;
            if ($min < 0) {
                $min = 0;
            }
        }

        return array($min, $max);
    }
protected function resolveMinMax($min, $max, $adder)
    {
        if (!$max || $min > $max) {
            $max = $min + $adder;
        } elseif (!$min || $min > $max) {
            $min = $max - $adder;
            if ($min < 0) {
                $min = 0;
            }
        }

        return array($min, $max);
    }
protected function resolveMinMax ( $ min , $ max , $ adder ) { if ( ! $ max || $ min > $ max ) { $ max = $ min + $ adder ; } elseif ( ! $ min || $ min > $ max ) { $ min = $ max - $ adder ; if ( $ min < 0 ) { $ min = 0 ; } } return array ( $ min , $ max ) ; }
Compares two min values and assures a usable range
@param  integer $min   The minimum value
@param  integer $max   The maximum value
@param  integer $adder The amount to add to the min value to create a good range
@return array
Compares two min values and assures a usable range