src/main/php/CommandLine/Library/GenericCommandRunner.php
private function buildWhitelistArguments(
        $targetBranch,
        string $blacklistToken,
        string $filter,
        bool $processIsolation,
        string $glue = ','
    ) : array {
        $gitChangeSet = $this->adaptableFileFinder->findFiles($filter, $blacklistToken, '', $targetBranch);
        $changedFiles = $gitChangeSet->getFiles();

        $whitelistArguments = empty($changedFiles) || $processIsolation
            ? $changedFiles
            : [implode($glue, $changedFiles)];

        $this->output->writeln(
            'Checking diff to ' . $gitChangeSet->getCommitHash(),
            OutputInterface::OUTPUT_NORMAL
        );

        $this->output->writeln(
            'Files to handle:' . "\n" . implode("\n", $changedFiles) . "\n",
            OutputInterface::VERBOSITY_VERBOSE
        );

        return $whitelistArguments;
    }
private function buildWhitelistArguments(
        $targetBranch,
        string $blacklistToken,
        string $filter,
        bool $processIsolation,
        string $glue = ','
    ) : array {
        $gitChangeSet = $this->adaptableFileFinder->findFiles($filter, $blacklistToken, '', $targetBranch);
        $changedFiles = $gitChangeSet->getFiles();

        $whitelistArguments = empty($changedFiles) || $processIsolation
            ? $changedFiles
            : [implode($glue, $changedFiles)];

        $this->output->writeln(
            'Checking diff to ' . $gitChangeSet->getCommitHash(),
            OutputInterface::OUTPUT_NORMAL
        );

        $this->output->writeln(
            'Files to handle:' . "\n" . implode("\n", $changedFiles) . "\n",
            OutputInterface::VERBOSITY_VERBOSE
        );

        return $whitelistArguments;
    }
private function buildWhitelistArguments ( $ targetBranch , string $ blacklistToken , string $ filter , bool $ processIsolation , string $ glue = ',' ) : array { $ gitChangeSet = $ this -> adaptableFileFinder -> findFiles ( $ filter , $ blacklistToken , '' , $ targetBranch ) ; $ changedFiles = $ gitChangeSet -> getFiles ( ) ; $ whitelistArguments = empty ( $ changedFiles ) || $ processIsolation ? $ changedFiles : [ implode ( $ glue , $ changedFiles ) ] ; $ this -> output -> writeln ( 'Checking diff to ' . $ gitChangeSet -> getCommitHash ( ) , OutputInterface :: OUTPUT_NORMAL ) ; $ this -> output -> writeln ( 'Files to handle:' . "\n" . implode ( "\n" , $ changedFiles ) . "\n" , OutputInterface :: VERBOSITY_VERBOSE ) ; return $ whitelistArguments ; }
Builds a list of arguments for insertion into the template.

@param string|null $targetBranch
@param string      $blacklistToken
@param string      $filter
@param bool        $processIsolation
@param string      $glue

@return string[]
Builds a list of arguments for insertion into the template .