protected function fetchSources(Task $task)
    {
        $sources = [];

        foreach ($task->getSources() as $source) {
            // locate new resource and merge them to the existing sources
            $sources = array_merge($sources, $this->locator->locate($source));
        }

        return $sources;
    }
protected function fetchSources(Task $task)
    {
        $sources = [];

        foreach ($task->getSources() as $source) {
            // locate new resource and merge them to the existing sources
            $sources = array_merge($sources, $this->locator->locate($source));
        }

        return $sources;
    }
protected function fetchSources ( Task $ task ) { $ sources = [ ] ; foreach ( $ task -> getSources ( ) as $ source ) { // locate new resource and merge them to the existing sources $ sources = array_merge ( $ sources , $ this -> locator -> locate ( $ source ) ) ; } return $ sources ; }
Fetch the source files from the task and return and array of SplInfo.

@param Task $task
@return array
Fetch the source files from the task and return and array of SplInfo .