Skip to content

Commit a89e6ed

Browse files
milindsinghAmol Chaudhari
authored andcommitted
Update Download.php
1 parent 04f6cfe commit a89e6ed

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
@@ -200,10 +200,11 @@ public function getContentType()
200200
return $this->_downloadableFile->getFileType($this->_resourceFile);
201201
}
202202
} elseif ($this->_linkType == self::LINK_TYPE_URL) {
203-
if(is_array($this->_handle->stat($this->_resourceFile)['type'])){
203+
if (is_array($this->_handle->stat($this->_resourceFile)['type'])) {
204204
return end($this->_handle->stat($this->_resourceFile)['type']);
205-
}else
206-
return $this->_handle->stat($this->_resourceFile)['type'];
205+
} else {
206+
return $this->_handle->stat($this->_resourceFile)['type'];
207+
}
207208
}
208209
return $this->_contentType;
209210
}

0 commit comments

Comments
 (0)