Skip to content

Commit 809dfa9

Browse files
committed
MAGETWO-43691: Custom admin path does not work correctly
- fix code format
1 parent f3f15c1 commit 809dfa9

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

app/code/Magento/Backend/App/Area/FrontNameResolver.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ public function __construct(
4747
\Magento\Backend\App\Config $config,
4848
DeploymentConfig $deploymentConfig,
4949
\Magento\Backend\Model\UrlInterface $backendUrl
50-
)
51-
{
50+
) {
5251
$this->config = $config;
5352
$this->defaultFrontName = $deploymentConfig->get(ConfigOptionsList::CONFIG_PATH_BACKEND_FRONTNAME);
5453
$this->backendUrl = $backendUrl;

app/code/Magento/Backend/App/Router/NoRouteHandler.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ public function process(\Magento\Framework\App\RequestInterface $request)
5252

5353
if ($areaFrontName == $this->helper->getAreaFrontName()) {
5454
$baseUrl = $this->backendUrl->getBaseUrl();
55-
if (!stripos($baseUrl, $_SERVER['HTTP_HOST']) === false)
56-
{
55+
if (!stripos($baseUrl, $_SERVER['HTTP_HOST']) === false) {
5756
$moduleName = $this->routeConfig->getRouteFrontName('adminhtml');
5857
$actionNamespace = 'noroute';
5958
$actionName = 'index';

0 commit comments

Comments
 (0)