Skip to content

Commit

Permalink
Remove unnecessary brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
pH-7 committed Jan 11, 2017
1 parent 434c978 commit 0aa6458
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions _protected/framework/Layout/Tpl/Engine/PH7Tpl/PH7Tpl.class.php
Expand Up @@ -272,7 +272,7 @@ public function __get($sKey)
*/ */
public function __isset($sKey) public function __isset($sKey)
{ {
return (isset($this->_aVars[$sKey])); return isset($this->_aVars[$sKey]);
} }


/** /**
Expand Down Expand Up @@ -570,7 +570,7 @@ public function assigns(array $aVars, $bEscape = false, $bEscapeStrip = false)
*/ */
public function getVar($sVarName) public function getVar($sVarName)
{ {
return (isset($this->_aVars[$sVarName]) ? $this->_aVars[$sVarName] : ''); return isset($this->_aVars[$sVarName]) ? $this->_aVars[$sVarName] : '';
} }


/** /**
Expand Down Expand Up @@ -899,7 +899,7 @@ final private function isMainDir($sDirPath)
*/ */
final private function checkDesignInstance() 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;
} }


/** /**
Expand Down Expand Up @@ -930,7 +930,7 @@ final private function isMarkCopyright()
*/ */
final private function isSmallMarkCopyright() final private function isSmallMarkCopyright()
{ {
return (false !== strpos($this->sCode, 'design->smallLink()')); return false !== strpos($this->sCode, 'design->smallLink()');
} }


/** /**
Expand All @@ -941,7 +941,8 @@ final private function isSmallMarkCopyright()
*/ */
final private function notBaseTheme() 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)');
} }


/** /**
Expand Down

0 comments on commit 0aa6458

Please sign in to comment.