original_string: public function guessFileType(FileId $fileId)
      {
          $extension = strtolower(\pathinfo($fileId->id(), PATHINFO_EXTENSION));
  
          foreach($this->fileTypeExtensions as $fileType => $extensions) {
              if(in_array($extension, $extensions)) {
                  return $fileType;
              }
          }
  
          return 'file';
      }
code: public function guessFileType(FileId $fileId)
      {
          $extension = strtolower(\pathinfo($fileId->id(), PATHINFO_EXTENSION));
  
          foreach($this->fileTypeExtensions as $fileType => $extensions) {
              if(in_array($extension, $extensions)) {
                  return $fileType;
              }
          }
  
          return 'file';
      }
code_tokens: public function guessFileType ( FileId $ fileId ) { $ extension = strtolower ( \ pathinfo ( $ fileId -> id ( ) , PATHINFO_EXTENSION ) ) ; foreach ( $ this -> fileTypeExtensions as $ fileType => $ extensions ) { if ( in_array ( $ extension , $ extensions ) ) { return $ fileType ; } } return 'file' ; }
docstring: Guess file type code
  
  @param FileId $fileId
  @return string
docstring_tokens: Guess file type code