Text_Diff_Engine_string::diff
Parses a unified or context diff.
First param contains the whole diff and the second can be used to force a specific diff type. If the second parameter is 'autodetect', the diff will be examined to find out which type of diff this is.
Signature
public function diff(string
$diff,
[string
$mode = 'autodetect'] )
Parameters
$diff
— string- The diff content.
$mode
— string- The diff mode of the content in $diff. One of
'context', 'unified', or 'autodetect'.
Returns
- array
- List of all diff operations.