src/Watchers/EventWatcher.php
protected function formatClosureListener(Closure $listener)
    {
        $listener = new ReflectionFunction($listener);

        return sprintf('Closure at %s[%s:%s]',
            $listener->getFileName(),
            $listener->getStartLine(),
            $listener->getEndLine()
        );
    }
protected function formatClosureListener(Closure $listener)
    {
        $listener = new ReflectionFunction($listener);

        return sprintf('Closure at %s[%s:%s]',
            $listener->getFileName(),
            $listener->getStartLine(),
            $listener->getEndLine()
        );
    }
protected function formatClosureListener ( Closure $ listener ) { $ listener = new ReflectionFunction ( $ listener ) ; return sprintf ( 'Closure at %s[%s:%s]' , $ listener -> getFileName ( ) , $ listener -> getStartLine ( ) , $ listener -> getEndLine ( ) ) ; }
Format a closure-based listener.

@param  \Closure  $listener
@return string

@throws \ReflectionException
Format a closure - based listener .