src/main/php/CommandLine/Factories/BlacklistFactory.php
public function build(string $token = '', bool $deDuped = true) : array
    {
        $rawExcludePathsByFileByToken = [];

        if ($token !== '') {
            $rawExcludePathsByFileByToken = $this->findTokenDirectories($token);
        }
        $rawExcludePathsByFileByGit = $this->findGitDirectories();
        $rawExcludePathsByBlacklist = $this->findDirectoriesFromEnvironment($this->environment);

        $rawExcludePaths = array_merge(
            $rawExcludePathsByBlacklist,
            $rawExcludePathsByFileByToken,
            $rawExcludePathsByFileByGit
        );

        $filteredArray = $deDuped === true ? $this->deDupePaths($rawExcludePaths) : $rawExcludePaths;

        return $filteredArray;
    }
public function build(string $token = '', bool $deDuped = true) : array
    {
        $rawExcludePathsByFileByToken = [];

        if ($token !== '') {
            $rawExcludePathsByFileByToken = $this->findTokenDirectories($token);
        }
        $rawExcludePathsByFileByGit = $this->findGitDirectories();
        $rawExcludePathsByBlacklist = $this->findDirectoriesFromEnvironment($this->environment);

        $rawExcludePaths = array_merge(
            $rawExcludePathsByBlacklist,
            $rawExcludePathsByFileByToken,
            $rawExcludePathsByFileByGit
        );

        $filteredArray = $deDuped === true ? $this->deDupePaths($rawExcludePaths) : $rawExcludePaths;

        return $filteredArray;
    }
public function build ( string $ token = '' , bool $ deDuped = true ) : array { $ rawExcludePathsByFileByToken = [ ] ; if ( $ token !== '' ) { $ rawExcludePathsByFileByToken = $ this -> findTokenDirectories ( $ token ) ; } $ rawExcludePathsByFileByGit = $ this -> findGitDirectories ( ) ; $ rawExcludePathsByBlacklist = $ this -> findDirectoriesFromEnvironment ( $ this -> environment ) ; $ rawExcludePaths = array_merge ( $ rawExcludePathsByBlacklist , $ rawExcludePathsByFileByToken , $ rawExcludePathsByFileByGit ) ; $ filteredArray = $ deDuped === true ? $ this -> deDupePaths ( $ rawExcludePaths ) : $ rawExcludePaths ; return $ filteredArray ; }
This function computes a blacklist of directories which should not be checked.

@param string $token
@param bool   $deDuped

@return string[]
This function computes a blacklist of directories which should not be checked .