mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 14:52:41 +01:00
Fix whitespace around else
This commit is contained in:
parent
e3cfcc4a46
commit
9f549ba75e
6 changed files with 9 additions and 18 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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]);
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
|
||||
|
|
|
@ -55,8 +55,7 @@ final class PonderQuestion extends PonderDAO
|
|||
->execute();
|
||||
|
||||
$comments = mgroup($comments, 'getTargetPHID');
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$comments = array();
|
||||
}
|
||||
|
||||
|
|
|
@ -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/');
|
||||
}
|
||||
|
||||
|
|
|
@ -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']) {
|
||||
|
|
Loading…
Reference in a new issue