We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5b7745 commit 3285908Copy full SHA for 3285908
app/code/Magento/Downloadable/Helper/Download.php
@@ -198,10 +198,11 @@ public function getContentType()
198
return $this->_downloadableFile->getFileType($this->_resourceFile);
199
}
200
} elseif ($this->_linkType == self::LINK_TYPE_URL) {
201
- if(is_array($this->_handle->stat($this->_resourceFile)['type'])){
+ if (is_array($this->_handle->stat($this->_resourceFile)['type'])) {
202
return end($this->_handle->stat($this->_resourceFile)['type']);
203
- }else
204
- return $this->_handle->stat($this->_resourceFile)['type'];
+ } else {
+ return $this->_handle->stat($this->_resourceFile)['type'];
205
+ }
206
207
return $this->_contentType;
208
0 commit comments