Classes, interfaces, traits and enums of PHPForge\Diff, generated from the PHPDoc of php-forge/diff at main. Machine-readable catalog: diff.json.
| Class | Summary |
|---|
DiffLine final readonly | Represents a single line of an edit script produced by DifferInterface. |
LineDiffer final | Computes the line edit scripts of git diff with default settings, except on inputs that reach Git’s cost limit. |
UnifiedDiffRenderer final readonly | Renders the output of git diff --unified=<context>, without its diff --git and index lines, for two texts compared after normalizing their line endings to "\n". |
| Interface | Summary |
|---|
DifferInterface | Computes a line-by-line edit script between two multi-line strings. |
| Enum | Summary |
|---|
DiffOp | Represents the operation applied to a single line of an edit script produced by DifferInterface. |
IndentHeuristic | Holds the tuning values of Git’s indent heuristic, which LineDiffer uses to choose where a slidable group of changed lines is placed. |
LineMatch | Represents how often the content of a line occurs in the other input, as Git’s xdl_cleanup_records() classifies the lines before the alignment of LineDiffer. |
MultimatchCleanup | Holds the limits of Git’s cleanup of multi-matched lines, which LineDiffer applies before the alignment so that lines repeated all over the other input do not anchor it. |