Fix parenthesis placement in multi-line condition
authorTim Starling <tstarling@wikimedia.org>
Thu, 11 Dec 2014 03:54:37 +0000 (14:54 +1100)
committerTim Starling <tstarling@wikimedia.org>
Thu, 11 Dec 2014 04:33:38 +0000 (15:33 +1100)
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

index a30a5ea..2155c1b 100644 (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' );