From 1786f3c08e42c33e52673544138941d0c71fd283 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 31 Jan 2013 14:46:56 +0000 Subject: add missing statics --- it.class | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/it.class b/it.class index 3aa03d6..f6081fa 100644 --- a/it.class +++ b/it.class @@ -411,7 +411,7 @@ static function grep($pattern, $array, $p = array()) * @param $errmsg Error message to output if anything needed to be done * @return Same string in utf-8 encoding */ -function any2utf8($value, $errmsg = "") +static function any2utf8($value, $errmsg = "") { if (is_array($value)) { @@ -892,7 +892,7 @@ static function file_put($filename, $data, $p = array()) * Create an it_pipe from a file * @param $fn filename to read. if omitted, stdin is used. */ -function cat($fn = null) +static function cat($fn = null) { return new it_pipe(array('fn' => $fn)); } @@ -902,7 +902,7 @@ function cat($fn = null) * @param $cmd command to execute, or if it is an array, the lines to use * @param $args named arguments to fill into cmd. see it::exec for usage */ -function pipe($cmd, $args = array()) +static function pipe($cmd, $args = array()) { return new it_pipe(is_string($cmd) ? array('cmd' => $cmd, 'args' => $args) : array('data' => $cmd)); } -- cgit v1.2.3