GrumPHP\Console\Command\Git\PreCommitCommand::getCommittedFiles PHP Method

getCommittedFiles() protected method

protected getCommittedFiles ( ConsoleIO $io ) : FilesCollection
$io GrumPHP\IO\ConsoleIO
return GrumPHP\Collection\FilesCollection
    protected function getCommittedFiles(ConsoleIO $io)
    {
        if ($stdin = $io->readCommandInput(STDIN)) {
            return $this->changedFilesLocator->locateFromRawDiffInput($stdin);
        }
        return $this->changedFilesLocator->locateFromGitRepository();
    }