src/main/php/CommandLine/Factories/BlacklistFactory.php
private function findDirectoriesFromEnvironment(Environment $environment) : array
    {
        $finderBlacklist = $this->finderFactory->build();
        $finderBlacklist->in($environment->getRootDirectory())->directories();
        foreach ($environment->getBlacklistedDirectories() as $blacklistedDirectory) {
            $finderBlacklist->path('/' . preg_quote($blacklistedDirectory, '/') . '$/')
                ->notPath('/' . preg_quote($blacklistedDirectory, '/') . './');
        }
        $rawExcludePathsByBlacklist = $this->finderToRealPathConverter->finderToArrayOfPaths($finderBlacklist);
        return $rawExcludePathsByBlacklist;
    }
private function findDirectoriesFromEnvironment(Environment $environment) : array
    {
        $finderBlacklist = $this->finderFactory->build();
        $finderBlacklist->in($environment->getRootDirectory())->directories();
        foreach ($environment->getBlacklistedDirectories() as $blacklistedDirectory) {
            $finderBlacklist->path('/' . preg_quote($blacklistedDirectory, '/') . '$/')
                ->notPath('/' . preg_quote($blacklistedDirectory, '/') . './');
        }
        $rawExcludePathsByBlacklist = $this->finderToRealPathConverter->finderToArrayOfPaths($finderBlacklist);
        return $rawExcludePathsByBlacklist;
    }
private function findDirectoriesFromEnvironment ( Environment $ environment ) : array { $ finderBlacklist = $ this -> finderFactory -> build ( ) ; $ finderBlacklist -> in ( $ environment -> getRootDirectory ( ) ) -> directories ( ) ; foreach ( $ environment -> getBlacklistedDirectories ( ) as $ blacklistedDirectory ) { $ finderBlacklist -> path ( '/' . preg_quote ( $ blacklistedDirectory , '/' ) . '$/' ) -> notPath ( '/' . preg_quote ( $ blacklistedDirectory , '/' ) . './' ) ; } $ rawExcludePathsByBlacklist = $ this -> finderToRealPathConverter -> finderToArrayOfPaths ( $ finderBlacklist ) ; return $ rawExcludePathsByBlacklist ; }
Finds blacklisted directories by Environment.

@param Environment $environment

@return string[]
Finds blacklisted directories by Environment .