original_string: public function extension(Model $model, $data, array $allowed = array()) {
          return $this->_validate($model, $data, 'ext', array($allowed));
      }
code: public function extension(Model $model, $data, array $allowed = array()) {
          return $this->_validate($model, $data, 'ext', array($allowed));
      }
code_tokens: public function extension ( Model $ model , $ data , array $ allowed = array ( ) ) { return $ this -> _validate ( $ model , $ data , 'ext' , array ( $ allowed ) ) ; }
docstring: Validates the extension.
  
  @param Model $model
  @param array $data
  @param array $allowed
  @return bool
docstring_tokens: Validates the extension .