src/DataCollector/QueryCollector.php
protected function findSource()
    {
        $stack = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS | DEBUG_BACKTRACE_PROVIDE_OBJECT);

        $sources = [];

        foreach ($stack as $index => $trace) {
            $sources[] = $this->parseTrace($index, $trace);
        }

        return array_filter($sources);
    }
protected function findSource()
    {
        $stack = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS | DEBUG_BACKTRACE_PROVIDE_OBJECT);

        $sources = [];

        foreach ($stack as $index => $trace) {
            $sources[] = $this->parseTrace($index, $trace);
        }

        return array_filter($sources);
    }
protected function findSource ( ) { $ stack = debug_backtrace ( DEBUG_BACKTRACE_IGNORE_ARGS | DEBUG_BACKTRACE_PROVIDE_OBJECT ) ; $ sources = [ ] ; foreach ( $ stack as $ index => $ trace ) { $ sources [ ] = $ this -> parseTrace ( $ index , $ trace ) ; } return array_filter ( $ sources ) ; }
Use a backtrace to search for the origins of the query.

@return array
Use a backtrace to search for the origins of the query .