From 0aa6458e41ca2a1dfefc0cadbde5bf0c649700b2 Mon Sep 17 00:00:00 2001 From: Pierre-Henry Soria Date: Wed, 11 Jan 2017 19:28:12 +0000 Subject: [PATCH] Remove unnecessary brackets --- .../Layout/Tpl/Engine/PH7Tpl/PH7Tpl.class.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/_protected/framework/Layout/Tpl/Engine/PH7Tpl/PH7Tpl.class.php b/_protected/framework/Layout/Tpl/Engine/PH7Tpl/PH7Tpl.class.php index dc7adc2564..c9bdd8db8b 100755 --- a/_protected/framework/Layout/Tpl/Engine/PH7Tpl/PH7Tpl.class.php +++ b/_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 @@ final private function isMainDir($sDirPath) */ 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 @@ final private function isMarkCopyright() */ final private function isSmallMarkCopyright() { - return (false !== strpos($this->sCode, 'design->smallLink()')); + return false !== strpos($this->sCode, 'design->smallLink()'); } /** @@ -941,7 +941,8 @@ final private function isSmallMarkCopyright() */ 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)'); } /**