Skip to content
PHP Ecosystem
Explore

LineMatch

API reference › Diff › LineMatch

enumPHPForge\Diff\LineMatch
Sourcesrc/LineMatch.php

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.

CaseValueDescription
MatchedThe line occurs in the other input fewer times than the multi-match limit and takes part in the alignment.
MultimatchedThe line occurs in the other input at least as many times as the multi-match limit and is discarded when it sits inside a run of unmatched lines.
UnmatchedThe line does not occur in the other input and is always changed.