src/Mouf/Mvc/Splash/Routers/PhpVarsCheckRouter.php
private function getMinInConfiguration($val1, $val2)
    {
        if ($val1 && $val2) {
            return min(array($val1, $val2));
        }
        if ($val1) {
            return $val1;
        }
        if ($val2) {
            return $val2;
        }

        return null;
    }
private function getMinInConfiguration($val1, $val2)
    {
        if ($val1 && $val2) {
            return min(array($val1, $val2));
        }
        if ($val1) {
            return $val1;
        }
        if ($val2) {
            return $val2;
        }

        return null;
    }
private function getMinInConfiguration ( $ val1 , $ val2 ) { if ( $ val1 && $ val2 ) { return min ( array ( $ val1 , $ val2 ) ) ; } if ( $ val1 ) { return $ val1 ; } if ( $ val2 ) { return $ val2 ; } return null ; }
Get the min in 2 values if there exist.

@param int $val1
@param int $val2

@return int|NULL
Get the min in 2 values if there exist .