function Reader::determineFileType

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();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.