original_string: protected function getType($file)
      {
          $extension = $file->ext();
          if (isset($this->typeMap[$extension])) {
              return $this->typeMap[$extension];
          }
  
          return $file->mime() ?: 'application/octet-stream';
      }
code: protected function getType($file)
      {
          $extension = $file->ext();
          if (isset($this->typeMap[$extension])) {
              return $this->typeMap[$extension];
          }
  
          return $file->mime() ?: 'application/octet-stream';
      }
code_tokens: protected function getType ( $ file ) { $ extension = $ file -> ext ( ) ; if ( isset ( $ this -> typeMap [ $ extension ] ) ) { return $ this -> typeMap [ $ extension ] ; } return $ file -> mime ( ) ? : 'application/octet-stream' ; }
docstring: Return the type from a File object
  
  @param File $file The file from which you get the type
  @return string
docstring_tokens: Return the type from a File object