Skip to content

Commit a3ebefd

Browse files
committed
m misc
1 parent bea0bb7 commit a3ebefd

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

‎src/Application/FileProcessor.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ public function processFile(File $file, Configuration $configuration): FileProce
9595
return new FileProcessResult([], $file->getFileDiff(), $file->hasChanged());
9696

9797
// break;
98+
9899
} else {
99100
$this->printFile($file, $configuration, $filePath);
100101
}

‎src/ValueObject/Application/File.php‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
final class File
1919
{
20-
private bool $hasChanged = false;
20+
// private bool $hasChanged = false;
2121

2222
private readonly string $originalFileContent;
2323

@@ -74,7 +74,7 @@ public function changeFileContent(string $newFileContent): void
7474
}
7575

7676
$this->fileContent = $newFileContent;
77-
$this->hasChanged = true;
77+
// $this->hasChanged = true;
7878
}
7979

8080
public function getOriginalFileContent(): string
@@ -84,7 +84,8 @@ public function getOriginalFileContent(): string
8484

8585
public function hasChanged(): bool
8686
{
87-
return $this->hasChanged;
87+
return $this->rectorWithLineChanges !== [];
88+
// return $this->hasChanged;
8889
}
8990

9091
// public function changeHasChanged(bool $status): void

0 commit comments

Comments
 (0)