X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fhelper%2Fclass_BaseHelper.php;h=73643974a14853cf99618689b6ed00b9ce255872;hb=53e46a945b95d6414af86dcf0d14de200dff15a5;hp=6276b51ae244f8626f6382ac15dddfd62a2a4362;hpb=f5cf5211620c1813c76d8231819b63a585fb2689;p=core.git diff --git a/inc/classes/main/helper/class_BaseHelper.php b/inc/classes/main/helper/class_BaseHelper.php index 6276b51a..73643974 100644 --- a/inc/classes/main/helper/class_BaseHelper.php +++ b/inc/classes/main/helper/class_BaseHelper.php @@ -2,11 +2,11 @@ /** * A generic helper class with generic methods * - * @author Roland Haeder + * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Core Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2014 Core Developer Team * @license GNU GPL 3.0 or any newer version - * @link http://www.ship-simu.org + * @link http://www.shipsimu.org * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -253,7 +253,7 @@ class BaseHelper extends BaseFrameworkSystem { $this->groups[$this->totalCounter] = $groupId; $this->groups[$groupId]['opened'] = TRUE; $this->groups[$groupId]['content'] = sprintf( - "%s\n", + '%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("", $subGroupId, $this->subGroups[$subGroupId]['tag']); + $content = sprintf('', $subGroupId, $this->subGroups[$subGroupId]['tag']); } // END - if // Add content to it and mark it as closed - $this->subGroups[$subGroupId]['content'] .= sprintf("%s\n", $subGroupId, strlen($content), $this->subGroups[$subGroupId]['tag'], $content); + $this->subGroups[$subGroupId]['content'] .= sprintf('%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