Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! move FunctionLikeParser to Reflection
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Apr 11, 2021
1 parent 97a2e4d commit 5239a3e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/Application/RectorApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ final class RectorApplication
* @var DynamicSourceLocatorDecorator
*/
private $dynamicSourceLocatorDecorator;

/**
* @var FileDiffFactory
*/
Expand Down Expand Up @@ -281,7 +282,6 @@ private function printFileInfo(SmartFileInfo $fileInfo): void
$file = new File($fileInfo, $fileInfo->getContents());
$file->changeFileContent($newContent);


$fileDiff = $this->fileDiffFactory->createFileDiff($file, $file->getOriginalFileContent(), $newContent);
if ($fileDiff instanceof FileDiff) {
$file->setFileDiff($fileDiff);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ public function test(): void

$this->applicationFileProcessor->run($files);


$fileDiffs = [];
foreach ($files as $file) {
if ($file->getFileDiff() === null) {
Expand Down

0 comments on commit 5239a3e

Please sign in to comment.