From 55202ffc8bbedf0c70bdbca4f1ea2db4a0a4d404 Mon Sep 17 00:00:00 2001 From: Christian Helbling Date: Mon, 25 Feb 2013 17:02:49 +0000 Subject: mark static functions static --- it_debug.class | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'it_debug.class') diff --git a/it_debug.class b/it_debug.class index 4f38469..7324192 100644 --- a/it_debug.class +++ b/it_debug.class @@ -57,7 +57,7 @@ function debug($text, $level = 0) * @param $stacksoffs go up an extra $stacksoffs levels */ -function srcline($stackoffs = 0) +static function srcline($stackoffs = 0) { $stack = debug_backtrace(@constant('DEBUG_BACKTRACE_IGNORE_ARGS')); $line = $stack[1 + $stackoffs]['line']; @@ -78,7 +78,7 @@ function srcline($stackoffs = 0) * @param Origargs Array containing original arguments do ED() etc * @return String representation of dump */ -function dump($args) +static function dump($args) { if (preg_match('/csv|txt|gif|jpg/', $_SERVER['PHP_SELF']) || preg_grep('#text/(calendar|css|javascript|json|plain|rfc822|xml)#', headers_list())) $plain = 1; @@ -172,7 +172,7 @@ function dump($args) * @param $p['skiplevels'] number of stack levels to omit * @param $p['skipfiles'] regular expression of filenames to omit */ -function backtrace($p = array()) +static function backtrace($p = array()) { if (!is_array($p)) $p = array('skiplevels' => $p); -- cgit v1.2.3