Skip to content

Commit 3285908

Browse files
authored
Update Download.php
1 parent d5b7745 commit 3285908

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/code/Magento/Downloadable/Helper/Download.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,11 @@ public function getContentType()
198198
return $this->_downloadableFile->getFileType($this->_resourceFile);
199199
}
200200
} elseif ($this->_linkType == self::LINK_TYPE_URL) {
201-
if(is_array($this->_handle->stat($this->_resourceFile)['type'])){
201+
if (is_array($this->_handle->stat($this->_resourceFile)['type'])) {
202202
return end($this->_handle->stat($this->_resourceFile)['type']);
203-
}else
204-
return $this->_handle->stat($this->_resourceFile)['type'];
203+
} else {
204+
return $this->_handle->stat($this->_resourceFile)['type'];
205+
}
205206
}
206207
return $this->_contentType;
207208
}

0 commit comments

Comments
 (0)