Service/GearmanParser.php
public function parseNamespaceMap(
        Finder $finder,
        Reader $reader,
        array $paths,
        array $excludedPaths
    )
    {
        $workerCollection = new WorkerCollection;

        if (!empty($paths)) {

            $finder
                ->files()
                ->followLinks()
                ->exclude($excludedPaths)
                ->in($paths)
                ->name('*.php');

            $this->parseFiles($finder, $reader, $workerCollection);
        }

        return $workerCollection;
    }
public function parseNamespaceMap(
        Finder $finder,
        Reader $reader,
        array $paths,
        array $excludedPaths
    )
    {
        $workerCollection = new WorkerCollection;

        if (!empty($paths)) {

            $finder
                ->files()
                ->followLinks()
                ->exclude($excludedPaths)
                ->in($paths)
                ->name('*.php');

            $this->parseFiles($finder, $reader, $workerCollection);
        }

        return $workerCollection;
    }
public function parseNamespaceMap ( Finder $ finder , Reader $ reader , array $ paths , array $ excludedPaths ) { $ workerCollection = new WorkerCollection ; if ( ! empty ( $ paths ) ) { $ finder -> files ( ) -> followLinks ( ) -> exclude ( $ excludedPaths ) -> in ( $ paths ) -> name ( '*.php' ) ; $ this -> parseFiles ( $ finder , $ reader , $ workerCollection ) ; } return $ workerCollection ; }
Perform a parsing inside all namespace map

Creates an empty worker collection and, if exist some parseable files
parse them, filling this object

@param Finder $finder        Finder
@param Reader $reader        Reader
@param array  $paths         Paths where to look for
@param array  $excludedPaths Paths to ignore

@return WorkerCollection collection of all info
Perform a parsing inside all namespace map