src/main/php/CommandLine/FileFinders/DiffCheckableFileFinder.php
public function findFiles(
        string $filter = '',
        string $blacklistToken = '',
        string $whitelistToken = '',
        $targetBranch = ''
    ) : GitChangeSet {
        if (empty($targetBranch)) {
            throw new InvalidArgumentException(
                'Finding a diff makes no sense without a target branch.',
                1553857649
            );
        }

        $rawDiff = $this->findFilesInDiffToTarget($targetBranch);
        $this->fileFilter->filter($rawDiff, $filter, $blacklistToken, $whitelistToken);

        return $rawDiff;
    }
public function findFiles(
        string $filter = '',
        string $blacklistToken = '',
        string $whitelistToken = '',
        $targetBranch = ''
    ) : GitChangeSet {
        if (empty($targetBranch)) {
            throw new InvalidArgumentException(
                'Finding a diff makes no sense without a target branch.',
                1553857649
            );
        }

        $rawDiff = $this->findFilesInDiffToTarget($targetBranch);
        $this->fileFilter->filter($rawDiff, $filter, $blacklistToken, $whitelistToken);

        return $rawDiff;
    }
public function findFiles ( string $ filter = '' , string $ blacklistToken = '' , string $ whitelistToken = '' , $ targetBranch = '' ) : GitChangeSet { if ( empty ( $ targetBranch ) ) { throw new InvalidArgumentException ( 'Finding a diff makes no sense without a target branch.' , 1553857649 ) ; } $ rawDiff = $ this -> findFilesInDiffToTarget ( $ targetBranch ) ; $ this -> fileFilter -> filter ( $ rawDiff , $ filter , $ blacklistToken , $ whitelistToken ) ; return $ rawDiff ; }
This function searches for files to check in a certain diff only.

@param string       $filter
@param string       $blacklistToken
@param string       $whitelistToken
@param string|false $targetBranch

@return GitChangeSet

@throws InvalidArgumentException
This function searches for files to check in a certain diff only .