Commit f8fddc82 authored by Guy Thouret's avatar Guy Thouret

(chore) Lint new File class - #1120

1 merge request!397WIP: Memory efficient method of getting Mime Types
Pipeline #95608766 passed with stages
in 7 minutes and 47 seconds
......@@ -18,7 +18,7 @@ class File
protected static function getType(&$data, int $type): string
{
$header = substr($data,0, self::HEADER_LENGTH);
$header = substr($data, 0, self::HEADER_LENGTH);
$finfo = new \finfo($type);
$type = $finfo->buffer($header);
unset($finfo);
......
Please register or to comment