protected function filter($files) {
		foreach ($files as $i => $file) {
			if (!empty($file['hidden']) || !$this->default->mimeAccepted($file['mime'])) {
				unset($files[$i]);
			}
		}
		return array_merge($files, array());
	}
protected function filter($files) {
		foreach ($files as $i => $file) {
			if (!empty($file['hidden']) || !$this->default->mimeAccepted($file['mime'])) {
				unset($files[$i]);
			}
		}
		return array_merge($files, array());
	}
protected function filter ( $ files ) { foreach ( $ files as $ i => $ file ) { if ( ! empty ( $ file [ 'hidden' ] ) || ! $ this -> default -> mimeAccepted ( $ file [ 'mime' ] ) ) { unset ( $ files [ $ i ] ) ; } } return array_merge ( $ files , array ( ) ) ; }
Remove from files list hidden files and files with required mime types

@param  array  $files  files info
@return array
@author Dmitry (dio) Levashov
Remove from files list hidden files and files with required mime types