src/DiffToolkit.php
public function charsToLines(&$diffs, $lineArray)
    {
        foreach ($diffs as &$diff) {
            $text = '';
            for ($i = 0; $i < mb_strlen($diff[1]); $i++) {
                $char = mb_substr($diff[1], $i, 1);
                $text .= $lineArray[Utils::unicodeOrd($char)];
            }
            $diff[1] = $text;
        }
        unset($diff);
    }
public function charsToLines(&$diffs, $lineArray)
    {
        foreach ($diffs as &$diff) {
            $text = '';
            for ($i = 0; $i < mb_strlen($diff[1]); $i++) {
                $char = mb_substr($diff[1], $i, 1);
                $text .= $lineArray[Utils::unicodeOrd($char)];
            }
            $diff[1] = $text;
        }
        unset($diff);
    }
Rehydrate the text in a diff from a string of line hashes to real lines of text.
Modifies $diffs. TODO try to fix it!

@param array $diffs Array of diff arrays.
@param array $lineArray Array of unique strings.