public function getFileIcon($file = '')
    {
        $extension = File::extension($file);

        foreach ($this->fileTypes as $type => $regex) {
            if (preg_match("/^($regex)$/i", $extension) !== 0) {
                return "fa-file-{$type}-o";
            }
        }

        return 'fa-file-o';
    }
public function getFileIcon($file = '')
    {
        $extension = File::extension($file);

        foreach ($this->fileTypes as $type => $regex) {
            if (preg_match("/^($regex)$/i", $extension) !== 0) {
                return "fa-file-{$type}-o";
            }
        }

        return 'fa-file-o';
    }
public function getFileIcon ( $ file = '' ) { $ extension = File :: extension ( $ file ) ; foreach ( $ this -> fileTypes as $ type => $ regex ) { if ( preg_match ( "/^($regex)$/i" , $ extension ) !== 0 ) { return "fa-file-{$type}-o" ; } } return 'fa-file-o' ; }
Get file icon.

@param string $file

@return string
Get file icon .