/home/techb158/immovalet.com/vendor/botble/platform/base/src/Supports
Edit: /home/techb158/immovalet.com/vendor/botble/platform/base/src/Supports/Filter.php (1324B)
getListeners()) {
return $value;
}
foreach ($this->getListeners() as $hook => $listeners) { // go through each of the priorities
ksort($listeners);
foreach ($listeners as $arguments) { // loop all hooks
if ($hook === $action) { // if the hook responds to the current filter
$parameters = [$value];
for ($index = 1; $index < $arguments['arguments']; $index++) {
if (isset($args[$index])) {
$parameters[] = $args[$index]; // add arguments if it is there
}
}
// filter the value
$value = call_user_func_array($this->getFunction($arguments['callback']), $parameters);
}
}
}
return $value;
}
}