/**
  * @return FilesCollection
  */
 protected function getCommittedFiles(ConsoleIO $io)
 {
     if ($stdin = $io->readCommandInput()) {
         return $this->changedFilesLocator->locateFromRawDiffInput($stdin);
     }
     return $this->changedFilesLocator->locateFromGitRepository();
 }
Exemple #2
0
 /**
  * @return FilesCollection
  */
 protected function getCommittedFiles()
 {
     return $this->changedFilesLocator->locate();
 }