Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/parser/DifferentialChangesetParser.php
| Show First 20 Lines • Show All 990 Lines • ▼ Show 20 Lines | if ($this->comments) { | ||||
| list($old_backmap, $new_backmap) = $this->buildLineBackmaps(); | list($old_backmap, $new_backmap) = $this->buildLineBackmaps(); | ||||
| foreach ($this->comments as $comment) { | foreach ($this->comments as $comment) { | ||||
| $new_side = $this->isCommentOnRightSideWhenDisplayed($comment); | $new_side = $this->isCommentOnRightSideWhenDisplayed($comment); | ||||
| $line = $comment->getLineNumber(); | $line = $comment->getLineNumber(); | ||||
| if ($new_side) { | if ($new_side) { | ||||
| $back_line = $new_backmap[$line]; | $back_line = idx($new_backmap, $line); | ||||
| } else { | } else { | ||||
| $back_line = $old_backmap[$line]; | $back_line = idx($old_backmap, $line); | ||||
| } | } | ||||
| if ($back_line != $line) { | if ($back_line != $line) { | ||||
| // TODO: This should probably be cleaner, but just be simple and | // TODO: This should probably be cleaner, but just be simple and | ||||
| // obvious for now. | // obvious for now. | ||||
| $ghost = $comment->getIsGhost(); | $ghost = $comment->getIsGhost(); | ||||
| if ($ghost) { | if ($ghost) { | ||||
| $moved = pht( | $moved = pht( | ||||
| ▲ Show 20 Lines • Show All 629 Lines • Show Last 20 Lines | |||||