Generates unified diffs using the default Sebastian diff output builder.
Interfaces
Properties
: Differ
Methods
__construct()
: mixed
Creates a new unified differ.
diff()
: string
Generates a unified diff between current and updated content.
Creates a new unified differ.
public
__construct(Differ
$differ) : mixed
Parameters
$differ
:
Differ
Description
the underlying Sebastian differ
Generates a unified diff between current and updated content.
public
diff(
string
$currentContent,
string
$updatedContent) : string
Parameters
$currentContent
:
string
Description
the current content
$updatedContent
:
string
Description
the updated content
Return values
string
Description
the unified diff