src/Viserio/Component/Filesystem/Filesystem.php
public function getMimetype(string $path)
    {
        if (! $this->isFile($path) && ! $this->has($path)) {
            throw new FileNotFoundException($path);
        }

        $explode = \explode('.', $path);

        if ($extension = \end($explode)) {
            $extension = \mb_strtolower($extension);
        }

        return MimeType::detectByFileExtension($extension);
    }
public function getMimetype(string $path)
    {
        if (! $this->isFile($path) && ! $this->has($path)) {
            throw new FileNotFoundException($path);
        }

        $explode = \explode('.', $path);

        if ($extension = \end($explode)) {
            $extension = \mb_strtolower($extension);
        }

        return MimeType::detectByFileExtension($extension);
    }
{@inheritdoc}