Skip to content

Commit

Permalink
Revert Some debugging for @lcobucci 💙
Browse files Browse the repository at this point in the history
This reverts commit 3b109a7.
  • Loading branch information
ondrejmirtes committed Feb 25, 2021
1 parent 06ef13e commit 5efd078
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/Analyser/ResultCache/ResultCacheManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,7 @@ public function restore(array $allAnalysedFiles, bool $debug, bool $onlyFiles, ?
return new ResultCache($allAnalysedFiles, true, time(), $this->getMeta($allAnalysedFiles, $projectConfigArray), [], [], []);
}

if ($output->isDebug()) {
$output->writeLineFormatted('Computing meta');
}
$meta = $this->getMeta($allAnalysedFiles, $projectConfigArray);
if ($output->isDebug()) {
$output->writeLineFormatted('Finished computing meta');
}
if ($data['meta'] !== $meta) {
if ($output->isDebug()) {
$output->writeLineFormatted('Result cache not used because the metadata do not match.');
Expand All @@ -189,10 +183,6 @@ public function restore(array $allAnalysedFiles, bool $debug, bool $onlyFiles, ?
$filteredErrors = [];
$filteredExportedNodes = [];
$newFileAppeared = false;

if ($output->isDebug()) {
$output->writeLineFormatted(sprintf('Hashing %d files to analyse', count($allAnalysedFiles)));
}
foreach ($allAnalysedFiles as $analysedFile) {
if (array_key_exists($analysedFile, $errors)) {
$filteredErrors[$analysedFile] = $errors[$analysedFile];
Expand Down Expand Up @@ -240,10 +230,6 @@ public function restore(array $allAnalysedFiles, bool $debug, bool $onlyFiles, ?
}
}

if ($output->isDebug()) {
$output->writeLineFormatted('Finished hashing files to analyse');
}

foreach (array_keys($deletedFiles) as $deletedFile) {
if (!array_key_exists($deletedFile, $invertedDependencies)) {
continue;
Expand Down

0 comments on commit 5efd078

Please sign in to comment.