Skip to content

Commit 9817c50

Browse files
nmalevanecAmol Chaudhari
authored andcommitted
Fix static test.
1 parent e5d04fa commit 9817c50

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
@@ -15,6 +15,7 @@
1515
/**
1616
* Downloadable Products Download Helper
1717
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
18+
* @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
1819
*/
1920
class Download extends \Magento\Framework\App\Helper\AbstractHelper
2021
{
@@ -263,9 +264,9 @@ public function setResource($resourceFile, $linkType = self::LINK_TYPE_FILE)
263264
*/
264265
if ($linkType === self::LINK_TYPE_URL) {
265266
$headers = array_change_key_case(get_headers($this->_resourceFile, 1), CASE_LOWER);
266-
if(isset($headers['location'])){
267-
$this->_resourceFile = is_array($headers['location']) ? current($headers['location']):
268-
$headers['location'];
267+
if (isset($headers['location'])) {
268+
$this->_resourceFile = is_array($headers['location']) ? current($headers['location'])
269+
: $headers['location'];
269270
}
270271
}
271272

0 commit comments

Comments
 (0)