Changeset View
Changeset View
Standalone View
Standalone View
src/parser/diff/ArcanistDiffHunk.php
Context not available. | |||||
$oline = $this->getOldOffset(); | $oline = $this->getOldOffset(); | ||||
$nline = $this->getNewOffset(); | $nline = $this->getNewOffset(); | ||||
foreach (explode("\n", $this->getCorpus()) as $line) { | foreach (@explode("\n", $this->getCorpus()) as $line) { | ||||
$char = strlen($line) ? $line[0] : '~'; | $char = @strlen($line) ? $line[0] : '~'; | ||||
switch ($char) { | switch ($char) { | ||||
case '-': | case '-': | ||||
$old_map[$oline] = true; | $old_map[$oline] = true; | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0