original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Determine if the given parameters fail a dimension ratio check.
  
  @param  array  $parameters
  @param  int  $width
  @param  int  $height
  @return bool
docstring_tokens: Determine if the given parameters fail a dimension ratio check .