Skip to content

Commit

Permalink
Rename processFiles to processFile (#3741)
Browse files Browse the repository at this point in the history
  • Loading branch information
yguedidi committed May 6, 2023
1 parent a3ea0cf commit 4c1544d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/Parallel/WorkerRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function run(Encoder $encoder, Decoder $decoder, Configuration $configura
$file = new File($filePath, FileSystem::read($filePath));
$this->currentFileProvider->setFile($file);

$errorAndFileDiffs = $this->processFiles($file, $configuration, $errorAndFileDiffs);
$errorAndFileDiffs = $this->processFile($file, $configuration, $errorAndFileDiffs);

if ($errorAndFileDiffs[Bridge::SYSTEM_ERRORS] !== []) {
$this->invalidateFile($file);
Expand Down Expand Up @@ -131,7 +131,7 @@ public function run(Encoder $encoder, Decoder $decoder, Configuration $configura
* @param array{system_errors: SystemError[], file_diffs: FileDiff[]}|mixed[] $errorAndFileDiffs
* @return array{system_errors: SystemError[], file_diffs: FileDiff[]}
*/
private function processFiles(File $file, Configuration $configuration, array $errorAndFileDiffs): array
private function processFile(File $file, Configuration $configuration, array $errorAndFileDiffs): array
{
foreach ($this->fileProcessors as $fileProcessor) {
if (! $fileProcessor->supports($file, $configuration)) {
Expand Down

0 comments on commit 4c1544d

Please sign in to comment.