$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,
// 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
;
$content .= trim($subGroupContent);
} else {
// Something went wrong
- $this->debugInstance(__METHOD__."(): Something unexpected happened here.");
+ $this->debugInstance(__METHOD__ . '(): Something unexpected happened here.');
}
} // END - for