File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
app/code/Magento/Store/Model Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
/**
3
- * Copyright © Magento, Inc. All rights reserved.
4
- * See COPYING.txt for license details .
3
+ * Copyright 2011 Adobe
4
+ * All Rights Reserved .
5
5
*/
6
+ declare (strict_types=1 );
7
+
6
8
namespace Magento \Store \Model ;
7
9
8
10
use Laminas \Uri \UriFactory ;
@@ -828,7 +830,7 @@ public function isCurrentlySecure()
828
830
$ port = $ uri ->getPort ();
829
831
$ serverPort = $ this ->_request ->getServer ('SERVER_PORT ' );
830
832
831
- return $ uri ->getScheme () == 'https ' && isset ( $ serverPort) && $ port == $ serverPort ;
833
+ return $ uri ->getScheme () === 'https ' && $ serverPort !== null && $ port == $ serverPort ;
832
834
}
833
835
834
836
/*************************************************************************************
You can’t perform that action at this time.
0 commit comments