Fix parenthesis placement in multi-line condition

After talking with the folks in #mediawiki-core, I decided that I can
put up with it, under protest, on the basis that it's arguably
consistent with PSR-2.

Change-Id: I5f0c0f8f0172674797970d306efe6439ce1c2b67
This commit is contained in:
Tim Starling 2014-12-11 14:54:37 +11:00
parent 25d35fc65c
commit 90a3418cf2

View file

@ -1434,8 +1434,8 @@ class EditPage {
protected function runPostMergeFilters( Content $content, Status $status, User $user ) {
// Run old style post-section-merge edit filter
if ( !ContentHandler::runLegacyHooks( 'EditFilterMerged',
array( $this, $content, &$this->hookError, $this->summary ) ) )
{
array( $this, $content, &$this->hookError, $this->summary ) )
) {
# Error messages etc. could be handled within the hook...
$status->fatal( 'hookaborted' );
$status->value = self::AS_HOOK_ERROR;
@ -1450,8 +1450,8 @@ class EditPage {
// Run new style post-section-merge edit filter
if ( !Hooks::run( 'EditFilterMergedContent',
array( $this->mArticle->getContext(), $content, $status, $this->summary,
$user, $this->minoredit ) ) )
{
$user, $this->minoredit ) )
) {
# Error messages etc. could be handled within the hook...
if ( $status->isGood() ) {
$status->fatal( 'hookaborted' );