]> git.mxchange.org Git - core.git/commitdiff
Double qoutes generally "cost" performance as they are searched for variables (and...
authorRoland Haeder <roland@mxchange.org>
Fri, 17 Oct 2014 22:34:55 +0000 (00:34 +0200)
committerRoland Haeder <roland@mxchange.org>
Fri, 17 Oct 2014 22:34:55 +0000 (00:34 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
inc/classes/main/helper/class_BaseHelper.php

index 8616a502fbd60487aec3447e4c73c6961d1b593d..73643974a14853cf99618689b6ed00b9ce255872 100644 (file)
@@ -253,7 +253,7 @@ class BaseHelper extends BaseFrameworkSystem {
                $this->groups[$this->totalCounter] = $groupId;
                $this->groups[$groupId]['opened']  = TRUE;
                $this->groups[$groupId]['content'] = sprintf(
-                       "<!-- group %s opened (length: %s, tag: %s) //-->%s\n",
+                       '<!-- group %s opened (length: %s, tag: %s) //-->%s' . PHP_EOL,
                        $groupId,
                        strlen($content),
                        $tag,
@@ -367,11 +367,11 @@ class BaseHelper extends BaseFrameworkSystem {
                // Is the content empty?
                if ((empty($content)) && (!empty($this->subGroups[$subGroupId]['tag']))) {
                        // Get it from opener
-                       $content = sprintf("<!-- sub-group %s auto-closed //--></%s>", $subGroupId, $this->subGroups[$subGroupId]['tag']);
+                       $content = sprintf('<!-- sub-group %s auto-closed //--></%s>', $subGroupId, $this->subGroups[$subGroupId]['tag']);
                } // END - if
 
                // Add content to it and mark it as closed
-               $this->subGroups[$subGroupId]['content'] .= sprintf("<!-- sub-group %s closed (length: %s, tag: %s) //-->%s\n", $subGroupId, strlen($content), $this->subGroups[$subGroupId]['tag'], $content);
+               $this->subGroups[$subGroupId]['content'] .= sprintf('<!-- sub-group %s closed (length: %s, tag: %s) //-->%s' . PHP_EOL, $subGroupId, strlen($content), $this->subGroups[$subGroupId]['tag'], $content);
                $this->subGroups[$subGroupId]['opened'] = FALSE
                ;
 
@@ -413,7 +413,7 @@ class BaseHelper extends BaseFrameworkSystem {
                                $content .= trim($subGroupContent);
                        } else {
                                // Something went wrong
-                               $this->debugInstance(__METHOD__."(): Something unexpected happened here.");
+                               $this->debugInstance(__METHOD__ . '(): Something unexpected happened here.');
                        }
                } // END - for