original_string: public function mimeAccepted($mime, $mimes = array(), $empty = true) {
  		$mimes = !empty($mimes) ? $mimes : $this->onlyMimes;
  		if (empty($mimes)) {
  			return $empty;
  		}
  		return $mime == 'directory'
  			|| in_array('all', $mimes)
  			|| in_array('All', $mimes)
  			|| in_array($mime, $mimes)
  			|| in_array(substr($mime, 0, strpos($mime, '/')), $mimes);
  	}
code: public function mimeAccepted($mime, $mimes = array(), $empty = true) {
  		$mimes = !empty($mimes) ? $mimes : $this->onlyMimes;
  		if (empty($mimes)) {
  			return $empty;
  		}
  		return $mime == 'directory'
  			|| in_array('all', $mimes)
  			|| in_array('All', $mimes)
  			|| in_array($mime, $mimes)
  			|| in_array(substr($mime, 0, strpos($mime, '/')), $mimes);
  	}
code_tokens: public function mimeAccepted ( $ mime , $ mimes = array ( ) , $ empty = true ) { $ mimes = ! empty ( $ mimes ) ? $ mimes : $ this -> onlyMimes ; if ( empty ( $ mimes ) ) { return $ empty ; } return $ mime == 'directory' || in_array ( 'all' , $ mimes ) || in_array ( 'All' , $ mimes ) || in_array ( $ mime , $ mimes ) || in_array ( substr ( $ mime , 0 , strpos ( $ mime , '/' ) ) , $ mimes ) ; }
docstring: Return true if mime is required mimes list
  
  @param  string     $mime   mime type to check
  @param  array      $mimes  allowed mime types list or not set to use client mimes list
  @param  bool|null  $empty  what to return on empty list
  @return bool|null
  @author Dmitry (dio) Levashov
  @author Troex Nevelin
docstring_tokens: Return true if mime is required mimes list