src/main/php/CommandLine/Library/GenericCommandRunner.php
public function runWhitelistCommand(
        string $template,
        $targetBranch,
        string $blacklistToken,
        string $filter,
        bool $processIsolation = false,
        string $glue = ','
    ) : int {
        $exitCode = 0;
        $whitelistArguments = $this->buildWhitelistArguments(
            $targetBranch,
            $blacklistToken,
            $filter,
            $processIsolation,
            $glue
        );

        foreach ($whitelistArguments as $argument) {
            $commandWithParameters = $this->buildCommand($template, $argument);

            $exitCode = $this->runAndWriteToOutput($commandWithParameters);
        }

        return $exitCode;
    }
public function runWhitelistCommand(
        string $template,
        $targetBranch,
        string $blacklistToken,
        string $filter,
        bool $processIsolation = false,
        string $glue = ','
    ) : int {
        $exitCode = 0;
        $whitelistArguments = $this->buildWhitelistArguments(
            $targetBranch,
            $blacklistToken,
            $filter,
            $processIsolation,
            $glue
        );

        foreach ($whitelistArguments as $argument) {
            $commandWithParameters = $this->buildCommand($template, $argument);

            $exitCode = $this->runAndWriteToOutput($commandWithParameters);
        }

        return $exitCode;
    }
public function runWhitelistCommand ( string $ template , $ targetBranch , string $ blacklistToken , string $ filter , bool $ processIsolation = false , string $ glue = ',' ) : int { $ exitCode = 0 ; $ whitelistArguments = $ this -> buildWhitelistArguments ( $ targetBranch , $ blacklistToken , $ filter , $ processIsolation , $ glue ) ; foreach ( $ whitelistArguments as $ argument ) { $ commandWithParameters = $ this -> buildCommand ( $ template , $ argument ) ; $ exitCode = $ this -> runAndWriteToOutput ( $ commandWithParameters ) ; } return $ exitCode ; }
Builds a CLI-Command by inserting a whitelist of file paths in the command template and executes it.

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

@return int
Builds a CLI - Command by inserting a whitelist of file paths in the command template and executes it .