1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 23:02:42 +01:00

Fix whitespace around else

This commit is contained in:
vrana 2013-01-16 12:16:37 -08:00
parent e3cfcc4a46
commit 9f549ba75e
6 changed files with 9 additions and 18 deletions

View file

@ -22,8 +22,7 @@ final class PonderVoteSaveController extends PonderController {
if ($this->kind == "question") {
$target = PonderQuestionQuery::loadSingleByPHID($user, $phid);
}
else if ($this->kind == "answer") {
} else if ($this->kind == "answer") {
$target = PonderAnswerQuery::loadSingleByPHID($user, $phid);
}

View file

@ -73,8 +73,7 @@ final class PonderCommentEditor extends PhabricatorEditor {
if ($target === $question->getPHID()) {
$target = $question;
}
else {
} else {
$answers_by_phid = mgroup($question->getAnswers(), 'getPHID');
$target = head($answers_by_phid[$target]);
}

View file

@ -25,11 +25,9 @@ final class PonderMentionMail extends PonderMail {
$targetkind = "somewhere";
if ($target instanceof PonderQuestion) {
$targetkind = "in a question";
}
else if ($target instanceof PonderAnswer) {
} else if ($target instanceof PonderAnswer) {
$targetkind = "in an answer";
}
else if ($target instanceof PonderComment) {
} else if ($target instanceof PonderComment) {
$targetkind = "in a comment";
}

View file

@ -55,8 +55,7 @@ final class PonderQuestion extends PonderDAO
->execute();
$comments = mgroup($comments, 'getTargetPHID');
}
else {
} else {
$comments = array();
}

View file

@ -72,8 +72,7 @@ final class PonderPostBodyView extends AphrontView {
if ($this->target instanceof PonderAnswer) {
$xaction_view->addClass("ponder-answer");
}
else {
} else {
$xaction_view->addClass("ponder-question");
}
@ -104,8 +103,7 @@ final class PonderPostBodyView extends AphrontView {
if ($this->target instanceof PonderAnswer) {
$outerview->setURI('/ponder/answer/vote/');
}
else {
} else {
$outerview->setURI('/ponder/question/vote/');
}

View file

@ -44,8 +44,7 @@ final class PhabricatorIRCWhatsNewHandler extends PhabricatorIRCHandler {
foreach ($latest as $action) {
if (isset($action['data']['actor_phid'])) {
$uid = $action['data']['actor_phid'];
}
else {
} else {
$uid = $action['authorPHID'];
}
@ -78,8 +77,7 @@ final class PhabricatorIRCWhatsNewHandler extends PhabricatorIRCHandler {
foreach ($latest as $action) {
if (isset($action['data']['actor_phid'])) {
$uid = $action['data']['actor_phid'];
}
else {
} else {
$uid = $action['authorPHID'];
}
switch ($action['class']) {