protected function failsRatioCheck($parameters, $width, $height)
    {
        if (! isset($parameters['ratio'])) {
            return false;
        }

        [$numerator, $denominator] = array_replace(
            [1, 1], array_filter(sscanf($parameters['ratio'], '%f/%d'))
        );

        $precision = 1 / max($width, $height);

        return abs($numerator / $denominator - $width / $height) > $precision;
    }
protected function failsRatioCheck($parameters, $width, $height)
    {
        if (! isset($parameters['ratio'])) {
            return false;
        }

        [$numerator, $denominator] = array_replace(
            [1, 1], array_filter(sscanf($parameters['ratio'], '%f/%d'))
        );

        $precision = 1 / max($width, $height);

        return abs($numerator / $denominator - $width / $height) > $precision;
    }
protected function failsRatioCheck ( $ parameters , $ width , $ height ) { if ( ! isset ( $ parameters [ 'ratio' ] ) ) { return false ; } [ $ numerator , $ denominator ] = array_replace ( [ 1 , 1 ] , array_filter ( sscanf ( $ parameters [ 'ratio' ] , '%f/%d' ) ) ) ; $ precision = 1 / max ( $ width , $ height ) ; return abs ( $ numerator / $ denominator - $ width / $ height ) > $ precision ; }
Determine if the given parameters fail a dimension ratio check.

@param  array  $parameters
@param  int  $width
@param  int  $height
@return bool
Determine if the given parameters fail a dimension ratio check .