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 04f6cfe commit a89e6edCopy full SHA for a89e6ed
app/code/Magento/Downloadable/Helper/Download.php
@@ -200,10 +200,11 @@ public function getContentType()
200
return $this->_downloadableFile->getFileType($this->_resourceFile);
201
}
202
} elseif ($this->_linkType == self::LINK_TYPE_URL) {
203
- if(is_array($this->_handle->stat($this->_resourceFile)['type'])){
+ if (is_array($this->_handle->stat($this->_resourceFile)['type'])) {
204
return end($this->_handle->stat($this->_resourceFile)['type']);
205
- }else
206
- return $this->_handle->stat($this->_resourceFile)['type'];
+ } else {
+ return $this->_handle->stat($this->_resourceFile)['type'];
207
+ }
208
209
return $this->_contentType;
210
0 commit comments