]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/template/class_BaseTemplateEngine.php
Continued:
[core.git] / framework / main / classes / template / class_BaseTemplateEngine.php
index e996776554520fee0107fd5a017d676dd4113991..05f39746b38f8c9f62244cfa3ebc6076d0d90de3 100644 (file)
@@ -104,17 +104,17 @@ abstract class BaseTemplateEngine extends BaseFrameworkSystem {
        /**
         * The variable stack for the templates
         */
-       private $varStack = array();
+       private $varStack = [];
 
        /**
         * Loaded templates for recursive protection and detection
         */
-       private $loadedTemplates = array();
+       private $loadedTemplates = [];
 
        /**
         * Compiled templates for recursive protection and detection
         */
-       private $compiledTemplates = array();
+       private $compiledTemplates = [];
 
        /**
         * Loaded raw template data
@@ -146,7 +146,7 @@ abstract class BaseTemplateEngine extends BaseFrameworkSystem {
        /**
         * Loaded helpers
         */
-       private $helpers = array();
+       private $helpers = [];
 
        /**
         * Current variable group
@@ -156,7 +156,7 @@ abstract class BaseTemplateEngine extends BaseFrameworkSystem {
        /**
         * All template groups except "general"
         */
-       private $variableGroups = array();
+       private $variableGroups = [];
 
        /**
         * Code begin
@@ -332,7 +332,7 @@ abstract class BaseTemplateEngine extends BaseFrameworkSystem {
         */
        private function readCurrentGroup () {
                // Default is not found
-               $result = array();
+               $result = [];
 
                // Is the group there?
                if ($this->isVarStackSet($this->currGroup)) {
@@ -458,7 +458,7 @@ abstract class BaseTemplateEngine extends BaseFrameworkSystem {
                        // Is the stack there?
                        if (!isset($this->varStack[$variableGroup])) {
                                // Then initialize it here
-                               $this->varStack[$variableGroup] = array();
+                               $this->varStack[$variableGroup] = [];
                        }
 
                        // Not found, add it
@@ -830,8 +830,8 @@ abstract class BaseTemplateEngine extends BaseFrameworkSystem {
                // Initialize some arrays
                if (is_null($this->loadedRawData)) {
                        // Initialize both
-                       $this->loadedRawData = array();
-                       $this->rawTemplates = array();
+                       $this->loadedRawData = [];
+                       $this->rawTemplates = [];
                }
 
                // Load all requested templates
@@ -1314,7 +1314,7 @@ abstract class BaseTemplateEngine extends BaseFrameworkSystem {
        public final function compileVariables () {
                // Initialize the $content array
                $validVar = FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('tpl_valid_var');
-               $dummy = array();
+               $dummy = [];
 
                // Iterate through all general variables
                foreach ($this->getVarStack('general') as $currVariable) {