Skip to content

Commit c6c4804

Browse files
authored
Update copyright + use strict comparison
1 parent 255aa89 commit c6c4804

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

app/code/Magento/Store/Model/Store.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2011 Adobe
4+
* All Rights Reserved.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Store\Model;
79

810
use Laminas\Uri\UriFactory;
@@ -828,7 +830,7 @@ public function isCurrentlySecure()
828830
$port = $uri->getPort();
829831
$serverPort = $this->_request->getServer('SERVER_PORT');
830832

831-
return $uri->getScheme() == 'https' && isset($serverPort) && $port == $serverPort;
833+
return $uri->getScheme() === 'https' && $serverPort !== null && $port == $serverPort;
832834
}
833835

834836
/*************************************************************************************

0 commit comments

Comments
 (0)