summaryrefslogtreecommitdiff
path: root/it_pipe.class
diff options
context:
space:
mode:
authorChristian Schneider2021-02-03 12:00:51 +0100
committerChristian Schneider2021-02-03 12:00:51 +0100
commit1b94225ce6d8420718e21d0834211a5a1224c5e8 (patch)
tree8961c9b72f61a27a52a7d1ad0fe7be348a2ddeeb /it_pipe.class
parent21ccdefc4aea4c2439f7d41ece7d8216d8ba8b40 (diff)
downloaditools-1b94225ce6d8420718e21d0834211a5a1224c5e8.tar.gz
itools-1b94225ce6d8420718e21d0834211a5a1224c5e8.tar.bz2
itools-1b94225ce6d8420718e21d0834211a5a1224c5e8.zip
Code cleanup: Replace call_user_func* with normal function call equivalent
Diffstat (limited to 'it_pipe.class')
-rw-r--r--it_pipe.class4
1 files changed, 2 insertions, 2 deletions
diff --git a/it_pipe.class b/it_pipe.class
index 3153dae..2fe93db 100644
--- a/it_pipe.class
+++ b/it_pipe.class
@@ -32,10 +32,10 @@ function __call($name, $params)
{
$parampos = self::$parampositions[$name] ?: 0;
array_splice($params, $parampos, 0, [null]); # create room for inserted line arg
- $func = ($t = it::match('(\w+)__(\w+)', $name)) ? array($t[0], $t[1]) : (method_exists($this, $name) ? array($this, $name) : $name);
+ $func = ($t = it::match('(\w+)__(\w+)', $name)) ? [$t[0], $t[1]] : (method_exists($this, $name) ? [$this, $name] : $name);
foreach($this->lines as $i => $params[$parampos])
- $this->lines[$i] = call_user_func_array($func, $params);
+ $this->lines[$i] = $func(...$params);
return $this;
}