From baa88755377606ee794377b89f17b5de53ca3062 Mon Sep 17 00:00:00 2001 From: Reedy Date: Sat, 26 Sep 2015 16:02:57 +0100 Subject: [PATCH] Re-enable PSR2.Methods.MethodDeclaration.StaticBeforeVisibility Change-Id: Id3e4bc5d7e4d1b8003f9f6b324e2321b5af1771f --- phpcs.xml | 1 - tests/phpunit/includes/utils/BatchRowUpdateTest.php | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/phpcs.xml b/phpcs.xml index f34b274edb..5123c0b98a 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -15,7 +15,6 @@ - diff --git a/tests/phpunit/includes/utils/BatchRowUpdateTest.php b/tests/phpunit/includes/utils/BatchRowUpdateTest.php index a2b35f39de..4684658a9d 100644 --- a/tests/phpunit/includes/utils/BatchRowUpdateTest.php +++ b/tests/phpunit/includes/utils/BatchRowUpdateTest.php @@ -23,7 +23,7 @@ class BatchRowUpdateTest extends MediaWikiTestCase { $writer->write( $updates ); } - static protected function mockUpdate( array $changes ) { + protected static function mockUpdate( array $changes ) { static $i = 0; return array( 'primaryKey' => array( 'event_id' => $i++ ), @@ -53,7 +53,7 @@ class BatchRowUpdateTest extends MediaWikiTestCase { $this->assertEquals( count( $response ) - 1, $pos ); } - static public function provider_readerGetPrimaryKey() { + public static function provider_readerGetPrimaryKey() { $row = array( 'id_field' => 42, 'some_col' => 'dvorak', @@ -84,7 +84,7 @@ class BatchRowUpdateTest extends MediaWikiTestCase { $this->assertEquals( $expected, $reader->extractPrimaryKeys( (object) $row ), $message ); } - static public function provider_readerSetFetchColumns() { + public static function provider_readerSetFetchColumns() { return array( array( @@ -136,7 +136,7 @@ class BatchRowUpdateTest extends MediaWikiTestCase { $reader->rewind(); } - static public function provider_readerSelectConditions() { + public static function provider_readerSelectConditions() { return array( array( -- 2.20.1