Skip to content

Commit 3ee2bd5

Browse files
committed
Refactor: SecurityInfo plugin
1 parent 0ad8dc2 commit 3ee2bd5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

app/code/Magento/Store/Url/Plugin/SecurityInfo.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Store\Url\Plugin;
79

8-
use \Magento\Store\Model\Store;
9-
use \Magento\Store\Model\ScopeInterface as StoreScopeInterface;
10+
use Magento\Store\Model\ScopeInterface as StoreScopeInterface;
11+
use Magento\Store\Model\Store;
1012

1113
/**
1214
* Plugin for \Magento\Framework\Url\SecurityInfo
@@ -39,8 +41,8 @@ public function aroundIsSecure(\Magento\Framework\Url\SecurityInfo $subject, \Cl
3941
{
4042
if ($this->scopeConfig->getValue(Store::XML_PATH_SECURE_IN_FRONTEND, StoreScopeInterface::SCOPE_STORE)) {
4143
return $proceed($url);
42-
} else {
43-
return false;
4444
}
45+
46+
return false;
4547
}
4648
}

0 commit comments

Comments
 (0)