X-Git-Url: https://git.mxchange.org/?p=shipsimu.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Ftemplate%2Fclass_BaseTemplateEngine.php;h=c4660eb9b28cde163ad891ac4d848860834a202b;hp=e0983b8d53ab6f6dea9dadcdca9eb522aea75272;hb=ba9c65f936c374390a63226533172121b9ae3f45;hpb=1cc728fe28f6fe71a8d581a0dc1f2505bb0baa33 diff --git a/inc/classes/main/template/class_BaseTemplateEngine.php b/inc/classes/main/template/class_BaseTemplateEngine.php index e0983b8..c4660eb 100644 --- a/inc/classes/main/template/class_BaseTemplateEngine.php +++ b/inc/classes/main/template/class_BaseTemplateEngine.php @@ -114,7 +114,7 @@ class BaseTemplateEngine extends BaseFrameworkSystem { /** * Current variable group */ - private $currGroup = "general"; + private $currGroup = 'general'; /** * All template groups except "general" @@ -202,7 +202,7 @@ class BaseTemplateEngine extends BaseFrameworkSystem { */ private function addVariable ($var, $value) { // Set general variable group - $this->setVariableGroup("general"); + $this->setVariableGroup('general'); // Add it to the stack $this->addGroupVariable($var, $value); @@ -239,9 +239,9 @@ class BaseTemplateEngine extends BaseFrameworkSystem { //* DEBIG: */ echo __METHOD__.": currGroup=".$groupName."
\n"; $this->currGroup = $groupName; - // Skip group "general" - if (($groupName != "general") && ($add === true)) { - $this->varGroups[$groupName] = "OK"; + // Skip group 'general' + if (($groupName != 'general') && ($add === true)) { + $this->varGroups[$groupName] = 'OK'; } // END - if } @@ -550,7 +550,7 @@ class BaseTemplateEngine extends BaseFrameworkSystem { } /** - * Try to assign an extracted template variable as a "content" or "config" + * Try to assign an extracted template variable as a "content" or 'config' * variable. * * @param $varName The variable's name (shall be content orconfig) by @@ -559,7 +559,7 @@ class BaseTemplateEngine extends BaseFrameworkSystem { */ private function assignTemplateVariable ($varName, $var) { // Is it not a config variable? - if ($varName != "config") { + if ($varName != 'config') { // Regular template variables $this->assignVariable($var, ""); } else { @@ -1183,13 +1183,13 @@ class BaseTemplateEngine extends BaseFrameworkSystem { */ public function assignApplicationData (ManageableApplication $appInstance) { // Get long name and assign it - $this->assignVariable("app_full_name" , $appInstance->getAppName()); + $this->assignVariable('app_full_name' , $appInstance->getAppName()); // Get short name and assign it - $this->assignVariable("app_short_name", $appInstance->getAppShortName()); + $this->assignVariable('app_short_name', $appInstance->getAppShortName()); // Get version number and assign it - $this->assignVariable("app_version" , $appInstance->getAppVersion()); + $this->assignVariable('app_version' , $appInstance->getAppVersion()); } /**