REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.20 KB
Close
//opt/cpanel/ea-wappspector/vendor/rector/rector/src/Console/Formatter/ConsoleDiffer.php
Text
Base64
<?php declare (strict_types=1); namespace Rector\Console\Formatter; use RectorPrefix202411\SebastianBergmann\Diff\Differ; use RectorPrefix202411\SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilder; final class ConsoleDiffer { /** * @readonly * @var \Rector\Console\Formatter\ColorConsoleDiffFormatter */ private $colorConsoleDiffFormatter; /** * @readonly * @var \SebastianBergmann\Diff\Differ */ private $differ; public function __construct(\Rector\Console\Formatter\ColorConsoleDiffFormatter $colorConsoleDiffFormatter) { $this->colorConsoleDiffFormatter = $colorConsoleDiffFormatter; // @see https://github.com/sebastianbergmann/diff#strictunifieddiffoutputbuilder // @see https://github.com/sebastianbergmann/diff/compare/4.0.4...5.0.0#diff-251edf56a6344c03fa264a4926b06c2cee43c25f66192d5f39ebee912b7442dc for upgrade $unifiedDiffOutputBuilder = new UnifiedDiffOutputBuilder(); $this->differ = new Differ($unifiedDiffOutputBuilder); } public function diff(string $old, string $new) : string { $diff = $this->differ->diff($old, $new); return $this->colorConsoleDiffFormatter->format($diff); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 2
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
ColorConsoleDiffFormatter.php
2.88 KB
lrw-r--r--
2024-11-08 13:59:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ConsoleDiffer.php
1.20 KB
lrw-r--r--
2024-11-08 13:59:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).