opt
/
cpanel
/
ea-wappspector
/
vendor
/
rector
/
rector
/
src
/
Differ
➕ New
📤 Upload
✎ Editing:
DefaultDiffer.php
← Back
<?php declare (strict_types=1); namespace Rector\Differ; use RectorPrefix202411\SebastianBergmann\Diff\Differ; use RectorPrefix202411\SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilder; final class DefaultDiffer { /** * @readonly * @var \SebastianBergmann\Diff\Differ */ private $differ; public function __construct() { $strictUnifiedDiffOutputBuilder = new StrictUnifiedDiffOutputBuilder(['fromFile' => 'Original', 'toFile' => 'New']); $this->differ = new Differ($strictUnifiedDiffOutputBuilder); } public function diff(string $old, string $new) : string { if ($old === $new) { return ''; } return $this->differ->diff($old, $new); } }
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel