Fix some odd looking arrays
Summary: These arrays looks a little odd, most likely due to the autofix applied by `ArcanistXHPASTLinter::LINT_ARRAY_SEPARATOR`. See D12296 in which I attempt to improve the autocorrection from this linter rule. Test Plan: N/A Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: epriestley Differential Revision: https://secure.phabricator.com/D12281
This commit is contained in:
@@ -376,7 +376,8 @@ final class PhrictionDocumentController
|
||||
$child_dict = array(
|
||||
'slug' => $child->getSlug(),
|
||||
'depth' => $child->getDepth(),
|
||||
'title' => $child->getContent()->getTitle(),);
|
||||
'title' => $child->getContent()->getTitle(),
|
||||
);
|
||||
if ($child->getDepth() == $d_child) {
|
||||
$children_dicts[] = $child_dict;
|
||||
continue;
|
||||
|
||||
@@ -132,7 +132,8 @@ final class PhrictionTransactionEditor
|
||||
'id' => $document->getID(),
|
||||
'phid' => $document->getPHID(),
|
||||
'content' => $document->getContent()->getContent(),
|
||||
'title' => $document->getContent()->getTitle(),);
|
||||
'title' => $document->getContent()->getTitle(),
|
||||
);
|
||||
return $dict;
|
||||
case PhrictionTransaction::TYPE_MOVE_AWAY:
|
||||
$document = $xaction->getNewValue();
|
||||
@@ -140,7 +141,8 @@ final class PhrictionTransactionEditor
|
||||
'id' => $document->getID(),
|
||||
'phid' => $document->getPHID(),
|
||||
'content' => $document->getContent()->getContent(),
|
||||
'title' => $document->getContent()->getTitle(),);
|
||||
'title' => $document->getContent()->getTitle(),
|
||||
);
|
||||
return $dict;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user