PHP Class Mutagenesis\Utility\Diff

Author: Sebastian Bergmann ([email protected])
Author: Kore Nordmann ([email protected])
Datei anzeigen Open project: padraic/mutagenesis Class Usage Examples

Public Methods

Method Description
difference ( array | string $from, array | string $to, integer $contextLines = 3 ) : string Returns the diff between two arrays or strings.

Protected Methods

Method Description
longestCommonSubsequence ( array $from, array $to ) : array Calculates the longest common subsequence of two arrays.

Method Details

difference() public static method

Returns the diff between two arrays or strings.
public static difference ( array | string $from, array | string $to, integer $contextLines = 3 ) : string
$from array | string
$to array | string
$contextLines integer
return string

longestCommonSubsequence() protected static method

Calculates the longest common subsequence of two arrays.
protected static longestCommonSubsequence ( array $from, array $to ) : array
$from array
$to array
return array