Skip to main content

Unified

Unified diff generator.


  • Full name: \Documentation\Test\Snapshots\Drivers\Unified
  • Parent class: AbstractText

Methods

renderWorker

{@inheritdoc}

protected renderWorker(\Jfcherng\Diff\Differ $differ): string

Parameters:

ParameterTypeDescription
$differ\Jfcherng\Diff\Differ

renderHunkHeader

Render the hunk header.

protected renderHunkHeader(\Jfcherng\Diff\Differ $differ, int[][] $hunk): string

Parameters:

ParameterTypeDescription
$differ\Jfcherng\Diff\Differthe differ
$hunkint[][]the hunk

renderHunkBlocks

Render the hunk content.

protected renderHunkBlocks(\Jfcherng\Diff\Differ $differ, int[][] $hunk): string

Parameters:

ParameterTypeDescription
$differ\Jfcherng\Diff\Differthe differ
$hunkint[][]the hunk

renderChangedExtent

Renderer the changed extent.

protected renderChangedExtent(\Jfcherng\Diff\Differ $differ, int $oldIndex, int $newIndex): void

Parameters:

ParameterTypeDescription
$differ\Jfcherng\Diff\Differthe differ
$oldIndexintthe old line
$newIndexintthe new line

renderContext

Render the context array with the symbol.

protected renderContext(string $symbol, string[] $context, bool $noEolAtEof = false): string

Parameters:

ParameterTypeDescription
$symbolstringthe symbol
$contextstring[]the context
$noEolAtEofboolthere is no EOL at EOF in this block