Skip to content

Commit 01a639d

Browse files
committed
fix, declare several methods static in FileLogWriterHelper
1 parent 32d7fa7 commit 01a639d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

LogWriter/FLW/FileLogWriterHelper.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Static helper class for FileLogWriter (FLW).
66
*
77
* @author Michael Beyer <[email protected]>
8-
* @version v0.1.5
8+
* @version v0.1.6
99
* @api
1010
*/
1111
class FileLogWriterHelper {
@@ -325,10 +325,10 @@ static public function content2CSV($content, $params= null) {
325325
* @return boolean True if path is absolute, false if not.
326326
*
327327
* @author Michael Beyer <[email protected]>
328-
* @version v0.1.0
328+
* @version v0.1.1
329329
* @api
330330
*/
331-
function isAbsolutePath($target) {
331+
static function isAbsolutePath($target) {
332332
return (substr($target, 0, 1) == self::FOLDER_SEPARATOR ? true : false);
333333
}
334334

@@ -339,10 +339,10 @@ function isAbsolutePath($target) {
339339
* @return array Assoc. array, "pathname" contains path, "filename" contains file portion.
340340
*
341341
* @author Michael Beyer <[email protected]>
342-
* @version v0.1.0
342+
* @version v0.1.1
343343
* @api
344344
*/
345-
function separatePathAndFile($target) {
345+
static function separatePathAndFile($target) {
346346
$pathname= str_replace(basename($target), "", $target);
347347
$filename= str_replace($pathname, "", $target);
348348
return array('pathname' => $pathname, 'filename' => $filename);
@@ -356,10 +356,10 @@ function separatePathAndFile($target) {
356356
* @return string Purified path.
357357
*
358358
* @author Michael Beyer <[email protected]>
359-
* @version v0.1.0
359+
* @version v0.1.1
360360
* @api
361361
*/
362-
function cleanupPath($target) {
362+
static function cleanupPath($target) {
363363
$final_path= "";
364364

365365
$token= explode(self::FOLDER_SEPARATOR, $target);

Tools/PEPRHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Helper class for P.E.P.R.
99
*
1010
* @author Michael Beyer <[email protected]>
11-
* @version v0.1.0
11+
* @version v0.1.1
1212
* @api All constant names (actual values might be subject to change)
1313
*/
1414
class PEPRHelper {

0 commit comments

Comments
 (0)