Differential D21172 Diff 50416 src/applications/differential/render/DifferentialChangesetTwoUpRenderer.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/render/DifferentialChangesetTwoUpRenderer.php
Show First 20 Lines • Show All 587 Lines • ▼ Show 20 Lines | final class DifferentialChangesetTwoUpRenderer | ||||
} | } | ||||
private function getNewLineToOffsetMap() { | private function getNewLineToOffsetMap() { | ||||
if ($this->newOffsetMap === null) { | if ($this->newOffsetMap === null) { | ||||
$new = $this->getNewLines(); | $new = $this->getNewLines(); | ||||
$map = array(); | $map = array(); | ||||
foreach ($new as $offset => $new_line) { | foreach ($new as $offset => $new_line) { | ||||
if ($new_line === null) { | |||||
continue; | |||||
} | |||||
if ($new_line['line'] === null) { | if ($new_line['line'] === null) { | ||||
continue; | continue; | ||||
} | } | ||||
$map[$new_line['line']] = $offset; | $map[$new_line['line']] = $offset; | ||||
} | } | ||||
$this->newOffsetMap = $map; | $this->newOffsetMap = $map; | ||||
} | } | ||||
return $this->newOffsetMap; | return $this->newOffsetMap; | ||||
} | } | ||||
protected function getTableSigils() { | protected function getTableSigils() { | ||||
return array( | return array( | ||||
'intercept-copy', | 'intercept-copy', | ||||
); | ); | ||||
} | } | ||||
} | } |