Added contentType to metadata if Gaufrette\Adapter supports Metadata.
Removed unused line of code.