From 90a3418cf27021e1c56323e453ffac2b0e49f9ea Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Thu, 11 Dec 2014 14:54:37 +1100 Subject: [PATCH] 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 --- includes/EditPage.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index a30a5eab34..2155c1b237 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -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' ); -- 2.20.1