getRevision(); $line_count = $revision->getLineCount(); $lines = pht('%d line(s)', $line_count); if ($this->isFirstMailToRecipients()) { $verb = 'Request'; } else { $verb = 'Updated'; } return "[{$verb}, {$lines}]"; } protected function renderBody() { $actor = $this->getActorName(); $name = $this->getRevision()->getTitle(); $body = array(); if ($this->isFirstMailToRecipients()) { $body[] = "{$actor} requested code review of \"{$name}\"."; } else { $body[] = "{$actor} updated the revision \"{$name}\"."; } $body[] = null; $body[] = $this->renderReviewRequestBody(); return implode("\n", $body); } }