Skip to content

Commit

Permalink
fixup! Add changed files caching
Browse files Browse the repository at this point in the history
  • Loading branch information
rector-bot committed Apr 19, 2020
1 parent 1a61612 commit 60a882b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,7 @@ private function resolveDependentFiles(Node $node, MutatingScope $mutatingScope)
}

try {
foreach ($this->dependencyResolver->resolveDependencies($node, $mutatingScope) as $dependentFile) {
$this->dependentFiles[] = $dependentFile;
}
$this->dependentFiles = $this->dependencyResolver->resolveDependencies($node, $mutatingScope);
} catch (AnalysedCodeException $analysedCodeException) {
// @ignoreException
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$sourceFileInfo = new SmartFileInfo($classSyncer->getSourceFilePath());
$targetFileInfo = new SmartFileInfo($classSyncer->getTargetFilePath());

if ($dryRun) {
$messageFormat = 'Original "%s" is in sync with "%s"';
} else {
$messageFormat = 'Original "%s" was changed and refactored to "%s"';
}
$messageFormat = $dryRun ? 'Original "%s" is in sync with "%s"' : 'Original "%s" was changed and refactored to "%s"';

$message = sprintf(
$messageFormat,
Expand Down

0 comments on commit 60a882b

Please sign in to comment.