Skip to content

Commit 7e7b645

Browse files
committed
minor change
1 parent eaba8c2 commit 7e7b645

File tree

1 file changed

+4
-4
lines changed
  • lib/internal/Magento/Framework/App/Request

1 file changed

+4
-4
lines changed

lib/internal/Magento/Framework/App/Request/Http.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ public function isDirectAccessFrontendName($code)
199199
*/
200200
public function getBasePath()
201201
{
202-
return empty(parent::getBasePath()) ? '/'
203-
: str_replace('\\', '/', parent::getBasePath());
202+
$path = parent::getBasePath();
203+
return empty($path) ? '/' : str_replace('\\', '/', $path);
204204
}
205205

206206
/**
@@ -306,8 +306,8 @@ public function getBeforeForwardInfo($name = null)
306306
public function isAjax()
307307
{
308308
return $this->isXmlHttpRequest()
309-
|| $this->getParam('ajax', null)
310-
|| $this->getParam('isAjax', null);
309+
|| $this->getParam('ajax')
310+
|| $this->getParam('isAjax');
311311
}
312312

313313
/**

0 commit comments

Comments
 (0)