protected function invokeMany(iterable $hooks, ...$arguments)
    {
        foreach ($hooks as $hook) {
            $result = $this->invoke($hook, ...$arguments);

            if (!is_null($result)) {
                return $result;
            }
        }

        return null;
    }
protected function invokeMany(iterable $hooks, ...$arguments)
    {
        foreach ($hooks as $hook) {
            $result = $this->invoke($hook, ...$arguments);

            if (!is_null($result)) {
                return $result;
            }
        }

        return null;
    }
protected function invokeMany ( iterable $ hooks , ... $ arguments ) { foreach ( $ hooks as $ hook ) { $ result = $ this -> invoke ( $ hook , ... $ arguments ) ; if ( ! is_null ( $ result ) ) { return $ result ; } } return null ; }
Invoke multiple hooks.

@param iterable $hooks
@param mixed ...$arguments
@return mixed|null
Invoke multiple hooks .