diff options
author | Christian Helbling | 2013-02-25 17:02:49 +0000 |
---|---|---|
committer | Christian Helbling | 2013-02-25 17:02:49 +0000 |
commit | 55202ffc8bbedf0c70bdbca4f1ea2db4a0a4d404 (patch) | |
tree | fb7cb95d1c4f1a26ed568d73a135655bf011f2c3 | |
parent | c7d7e00062174f014661a3d38d096d508a1867fa (diff) | |
download | itools-55202ffc8bbedf0c70bdbca4f1ea2db4a0a4d404.tar.gz itools-55202ffc8bbedf0c70bdbca4f1ea2db4a0a4d404.tar.bz2 itools-55202ffc8bbedf0c70bdbca4f1ea2db4a0a4d404.zip |
mark static functions static
-rw-r--r-- | it_debug.class | 6 |
1 files changed, 3 insertions, 3 deletions
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); |