getRevision(); $line_count = $revision->getLineCount(); $lines = ($line_count == 1 ? "1 line" : "{$line_count} lines"); 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); } }