protected static function getTypeFinfoExt($file) {

		$type = (new \finfo(FILEINFO_MIME_TYPE))->file($file);

		if($type) {
			return $type;
		}

		else {
			return self::getTypeFileExtList($file);
		}

	}
protected static function getTypeFinfoExt($file) {

		$type = (new \finfo(FILEINFO_MIME_TYPE))->file($file);

		if($type) {
			return $type;
		}

		else {
			return self::getTypeFileExtList($file);
		}

	}
protected static function getTypeFinfoExt ( $ file ) { $ type = ( new \ finfo ( FILEINFO_MIME_TYPE ) ) -> file ( $ file ) ; if ( $ type ) { return $ type ; } else { return self :: getTypeFileExtList ( $ file ) ; } }
Gets the Mime Type using the Fileinfo Extension.
If the Extension returns nothing the extension list
is used.

@param string $file the path to the File
@return string the Mime Type
Gets the Mime Type using the Fileinfo Extension . If the Extension returns nothing the extension list is used .