src/Metadata/AmazonMetadataBuilder.php
protected function getContentType($filename)
    {
        $extension = pathinfo($filename, PATHINFO_EXTENSION);
        $contentType = Psr7\mimetype_from_extension($extension);

        return ['contentType' => $contentType];
    }
protected function getContentType($filename)
    {
        $extension = pathinfo($filename, PATHINFO_EXTENSION);
        $contentType = Psr7\mimetype_from_extension($extension);

        return ['contentType' => $contentType];
    }
protected function getContentType ( $ filename ) { $ extension = pathinfo ( $ filename , PATHINFO_EXTENSION ) ; $ contentType = Psr7 \ mimetype_from_extension ( $ extension ) ; return [ 'contentType' => $ contentType ] ; }
Gets the correct content-type.

@param string $filename

@return array
Gets the correct content - type .