$official =
substr($this->file->headers
['content-type'
], 0,
$pos);
} else { $official =
$this->file->headers
['content-type'
];
} $official =
trim(strtolower($official));
if ($official === 'unknown/unknown'
||
$official === 'application/unknown'
) { return $this->
unknown();
} elseif (substr($official, -4
) === '+xml'
||
$official === 'text/xml'
||
$official === 'application/xml'
) { return $official;
} elseif (substr($official, 0, 6
) === 'image/'
) { if ($return =
$this->
image()) {