original_string: protected function callFunction($prefix, $format, array $arguments)
      {
          $function = "$prefix$format";
  
          if (!in_array($format, $this->getSupportedFormats())) {
              throw new RuntimeException("Unsupported image format $format");
          }
  
          if (!function_exists($function)) {
              throw new BadFunctionCallException("Function $function does not exist");
          }
  
          return call_user_func_array($function, $arguments);
      }
code: protected function callFunction($prefix, $format, array $arguments)
      {
          $function = "$prefix$format";
  
          if (!in_array($format, $this->getSupportedFormats())) {
              throw new RuntimeException("Unsupported image format $format");
          }
  
          if (!function_exists($function)) {
              throw new BadFunctionCallException("Function $function does not exist");
          }
  
          return call_user_func_array($function, $arguments);
      }
code_tokens: protected function callFunction ( $ prefix , $ format , array $ arguments ) { $ function = "$prefix$format" ; if ( ! in_array ( $ format , $ this -> getSupportedFormats ( ) ) ) { throw new RuntimeException ( "Unsupported image format $format" ) ; } if ( ! function_exists ( $ function ) ) { throw new BadFunctionCallException ( "Function $function does not exist" ) ; } return call_user_func_array ( $ function , $ arguments ) ; }
docstring: Call a function which name is constructed from prefix and image format
  @param string $prefix
  @param string $format
  @param array $arguments
  @return mixed
  @throws RuntimeException
  @throws BadFunctionCallException
docstring_tokens: Call a function which name is constructed from prefix and image format