Permalink
Browse files

Remove unnecessary brackets

  • Loading branch information...
1 parent 434c978 commit 0aa6458e41ca2a1dfefc0cadbde5bf0c649700b2 @pH-7 pH-7 committed Jan 11, 2017
Showing with 6 additions and 5 deletions.
  1. +6 −5 _protected/framework/Layout/Tpl/Engine/PH7Tpl/PH7Tpl.class.php
@@ -272,7 +272,7 @@ public function __get($sKey)
*/
public function __isset($sKey)
{
- return (isset($this->_aVars[$sKey]));
+ return isset($this->_aVars[$sKey]);
}
/**
@@ -570,7 +570,7 @@ public function assigns(array $aVars, $bEscape = false, $bEscapeStrip = false)
*/
public function getVar($sVarName)
{
- return (isset($this->_aVars[$sVarName]) ? $this->_aVars[$sVarName] : '');
+ return isset($this->_aVars[$sVarName]) ? $this->_aVars[$sVarName] : '';
}
/**
@@ -899,7 +899,7 @@ private function isMainPage()
*/
final private function checkDesignInstance()
{
- return (!empty($this->_aVars['design']) && $this->_aVars['design'] instanceof \PH7\Framework\Layout\Html\Design);
+ return !empty($this->_aVars['design']) && $this->_aVars['design'] instanceof \PH7\Framework\Layout\Html\Design;
}
/**
@@ -930,7 +930,7 @@ private function isMainPage()
*/
final private function isSmallMarkCopyright()
{
- return (false !== strpos($this->sCode, 'design->smallLink()'));
+ return false !== strpos($this->sCode, 'design->smallLink()');
}
/**
@@ -941,7 +941,8 @@ private function isMainPage()
*/
final private function notBaseTheme()
{
- return (false === strpos($this->sTemplateDir, PH7_PATH_TPL . PH7_DEFAULT_THEME . PH7_DS) && false !== strpos($this->sCode, '$this->display(\'' . $this->getMainPage() . '\', PH7_PATH_TPL . PH7_DEFAULT_THEME . PH7_DS)'));
+ return false === strpos($this->sTemplateDir, PH7_PATH_TPL . PH7_DEFAULT_THEME . PH7_DS) &&
+ false !== strpos($this->sCode, '$this->display(\'' . $this->getMainPage() . '\', PH7_PATH_TPL . PH7_DEFAULT_THEME . PH7_DS)');
}
/**

0 comments on commit 0aa6458

Please sign in to comment.