mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-22 08:25:02 +02:00
decrease path by one
This commit is contained in:
parent
8b99be3d94
commit
8542fcc812
@ -63,7 +63,7 @@ final class ConsoleOutputFormatter implements OutputFormatterInterface
|
||||
|
||||
$i = 0;
|
||||
foreach ($fileDiffs as $fileDiff) {
|
||||
$relativeFilePath = $fileDiff->getSmartFileInfo()->getRelativeFilePath();
|
||||
$relativeFilePath = $fileDiff->getRelativeFilePath();
|
||||
|
||||
$this->symfonyStyle->writeln(sprintf('<options=bold>%d) %s</>', ++$i, $relativeFilePath));
|
||||
$this->symfonyStyle->newLine();
|
||||
|
@ -53,7 +53,7 @@ final class JsonOutputFormatter implements OutputFormatterInterface
|
||||
|
||||
ksort($fileDiffs);
|
||||
foreach ($fileDiffs as $fileDiff) {
|
||||
$relativeFilePath = $fileDiff->getSmartFileInfo()->getRelativeFilePath();
|
||||
$relativeFilePath = $fileDiff->getRelativeFilePath();
|
||||
|
||||
$errorsArray['file_diffs'][] = [
|
||||
'file' => $relativeFilePath,
|
||||
|
@ -51,9 +51,9 @@ final class FileDiff
|
||||
return $this->diffConsoleFormatted;
|
||||
}
|
||||
|
||||
public function getSmartFileInfo(): SmartFileInfo
|
||||
public function getRelativeFilePath(): string
|
||||
{
|
||||
return $this->smartFileInfo;
|
||||
return $this->smartFileInfo->getRelativeFilePath();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user