Skip to content

Commit fb44628

Browse files
author
Igor Melnikov
committed
Merge remote-tracking branch 'origin/MAGETWO-52923-Varnish-ssl' into pr
2 parents 85946ab + 4e526e2 commit fb44628

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/internal/Magento/Framework/App/Config/ScopePool.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function getScope($scopeType, $scopeCode = null)
9292
{
9393
$scopeCode = $this->_getScopeCode($scopeType, $scopeCode);
9494

95-
//Key by url to support dynamic {{base_url}} and port assignments
95+
// Key by url to support dynamic {{base_url}} and port assignments
9696
$host = $this->getRequest()->getHttpHost();
9797
$port = $this->getRequest()->getServer('SERVER_PORT');
9898
$path = $this->getRequest()->getBasePath();

lib/internal/Magento/Framework/App/Test/Unit/Request/HttpTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ private function getModel($uri = null, $mockAppConfig = true)
9191
]
9292
);
9393

94-
if($mockAppConfig){
95-
$MockAppConfig = $this->getMock(\Magento\Framework\App\Config::class, [], [], '' , false);
96-
$this->objectManager->setBackwardCompatibleProperty($model, 'appConfig', $MockAppConfig );
94+
if ($mockAppConfig) {
95+
$mockConfig = $this->getMock(\Magento\Framework\App\Config::class, [], [], '' , false);
96+
$this->objectManager->setBackwardCompatibleProperty($model, 'appConfig', $mockConfig );
9797
}
9898

9999
return $model;
@@ -347,8 +347,8 @@ public function testIsSecure($isSecure, $serverHttps, $headerOffloadKey, $header
347347
->with(\Magento\Framework\App\Request\Http::XML_PATH_OFFLOADER_HEADER, ScopeConfigInterface::SCOPE_TYPE_DEFAULT)
348348
->willReturn($configOffloadHeader);
349349

350-
$this->objectManager->setBackwardCompatibleProperty($this->_model,'appConfig' ,$configMock);
351-
$this->objectManager->setBackwardCompatibleProperty($this->_model, 'SSLOffloadHeader' ,null );
350+
$this->objectManager->setBackwardCompatibleProperty($this->_model, 'appConfig', $configMock);
351+
$this->objectManager->setBackwardCompatibleProperty($this->_model, 'SSLOffloadHeader', null );
352352

353353
$this->_model->getServer()->set($headerOffloadKey, $headerOffloadValue);
354354
$this->_model->getServer()->set('HTTPS', $serverHttps);

0 commit comments

Comments
 (0)