You are here

private function Reader::determineFileType in Drupal 7

Return value

string

1 call to Reader::determineFileType()
Reader::__construct in misc/typo3/phar-stream-wrapper/src/Phar/Reader.php

File

misc/typo3/phar-stream-wrapper/src/Phar/Reader.php, line 158

Class

Reader

Namespace

TYPO3\PharStreamWrapper\Phar

Code

private function determineFileType() {
  if (class_exists('\\finfo')) {
    $fileInfo = new \finfo();
    return $fileInfo
      ->file($this->fileName, FILEINFO_MIME_TYPE);
  }
  return $this
    ->determineFileTypeByHeader();
}