original_string: public function validation($data, $files) {
          $errors = array();
          $draftitemid = $data['files_filemanager'];
          if (file_is_draft_area_limit_reached($draftitemid, $this->_customdata['options']['areamaxbytes'])) {
              $errors['files_filemanager'] = get_string('userquotalimit', 'error');
          }
  
          return $errors;
      }
code: public function validation($data, $files) {
          $errors = array();
          $draftitemid = $data['files_filemanager'];
          if (file_is_draft_area_limit_reached($draftitemid, $this->_customdata['options']['areamaxbytes'])) {
              $errors['files_filemanager'] = get_string('userquotalimit', 'error');
          }
  
          return $errors;
      }
code_tokens: public function validation ( $ data , $ files ) { $ errors = array ( ) ; $ draftitemid = $ data [ 'files_filemanager' ] ; if ( file_is_draft_area_limit_reached ( $ draftitemid , $ this -> _customdata [ 'options' ] [ 'areamaxbytes' ] ) ) { $ errors [ 'files_filemanager' ] = get_string ( 'userquotalimit' , 'error' ) ; } return $ errors ; }
docstring: Validate incoming data.
  
  @param array $data
  @param array $files
  @return array
docstring_tokens: Validate incoming data .