original_string: 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';
      }
code: 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';
      }
code_tokens: 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' ; }
docstring: Get file icon.
  
  @param string $file
  
  @return string
docstring_tokens: Get file icon .