lib/FileWrapper.php
protected function textCheck(): void
    {
        if (is_null($this->mime)) {
            throw \AWonderPHP\FileWrapper\NullPropertyException::propertyIsNull('mime');
        }
        $test = substr($this->mime, 0, 5);
        if ($test === 'text/') {
            $this->istext = true;
            return;
        }
        $test = substr($this->mime, -4);
        if ($test === "+xml") {
            $this->istext = true;
            return;
        }
        if (in_array($this->mime, $this->textMIME)) {
            $this->istext = true;
        }
    }
protected function textCheck(): void
    {
        if (is_null($this->mime)) {
            throw \AWonderPHP\FileWrapper\NullPropertyException::propertyIsNull('mime');
        }
        $test = substr($this->mime, 0, 5);
        if ($test === 'text/') {
            $this->istext = true;
            return;
        }
        $test = substr($this->mime, -4);
        if ($test === "+xml") {
            $this->istext = true;
            return;
        }
        if (in_array($this->mime, $this->textMIME)) {
            $this->istext = true;
        }
    }
Attempts to detect if serving a text file.

@return void