Thiemo Mättig (WMDE) has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/232509

Change subject: Remove duplicate whitespaces in arrays
......................................................................

Remove duplicate whitespaces in arrays

Change-Id: I2b87193f1cd6eda63b1d98ef89adfc3b2e8a4d9b
---
M repo/tests/phpunit/includes/ChangeDispatcherTest.php
M repo/tests/phpunit/includes/specials/SpecialMergeItemsTest.php
M repo/tests/phpunit/includes/specials/SpecialRedirectEntityTest.php
M repo/tests/phpunit/includes/store/sql/SqlChangeDispatchCoordinatorTest.php
4 files changed, 32 insertions(+), 32 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase 
refs/changes/09/232509/1

diff --git a/repo/tests/phpunit/includes/ChangeDispatcherTest.php 
b/repo/tests/phpunit/includes/ChangeDispatcherTest.php
index 0639f10..f3870c9 100644
--- a/repo/tests/phpunit/includes/ChangeDispatcherTest.php
+++ b/repo/tests/phpunit/includes/ChangeDispatcherTest.php
@@ -222,11 +222,11 @@
                $siteId = 'testwiki';
 
                $expectedClientState = array(
-                       'chd_site' =>   $siteId,
-                       'chd_db' =>     $siteId,
-                       'chd_seen' =>   0,
+                       'chd_site' => $siteId,
+                       'chd_db' => $siteId,
+                       'chd_seen' => 0,
                        'chd_touched' => '20140303000000',
-                       'chd_lock' =>   null
+                       'chd_lock' => null
                );
 
                $coordinator = $this->getMock( 
'Wikibase\Store\ChangeDispatchCoordinator' );
@@ -299,11 +299,11 @@
                        'enwiki: from the beginning' => array(
                                3,
                                array(
-                                       'chd_site' =>   'enwiki',
-                                       'chd_db' =>     'enwikidb',
-                                       'chd_seen' =>   0,
+                                       'chd_site' => 'enwiki',
+                                       'chd_db' => 'enwikidb',
+                                       'chd_seen' => 0,
                                        'chd_touched' => '00000000000000',
-                                       'chd_lock' =>   null
+                                       'chd_lock' => null
                                ),
                                3,
                                array(
@@ -313,11 +313,11 @@
                        'enwiki: scan to end' => array(
                                3,
                                array(
-                                       'chd_site' =>   'enwiki',
-                                       'chd_db' =>     'enwikidb',
-                                       'chd_seen' =>   4,
+                                       'chd_site' => 'enwiki',
+                                       'chd_db' => 'enwikidb',
+                                       'chd_seen' => 4,
                                        'chd_touched' => $changes[4]->getTime(),
-                                       'chd_lock' =>   null
+                                       'chd_lock' => null
                                ),
                                8,
                                array(
@@ -327,11 +327,11 @@
                        'dewiki: from the beginning' => array(
                                3,
                                array(
-                                       'chd_site' =>   'dewiki',
-                                       'chd_db' =>     'dewikidb',
-                                       'chd_seen' =>   0,
+                                       'chd_site' => 'dewiki',
+                                       'chd_db' => 'dewikidb',
+                                       'chd_seen' => 0,
                                        'chd_touched' => '00000000000000',
-                                       'chd_lock' =>   null
+                                       'chd_lock' => null
                                ),
                                7,
                                array(
@@ -341,11 +341,11 @@
                        'dewiki: offset' => array(
                                2,
                                array(
-                                       'chd_site' =>   'dewiki',
-                                       'chd_db' =>     'dewikidb',
-                                       'chd_seen' =>   3,
+                                       'chd_site' => 'dewiki',
+                                       'chd_db' => 'dewikidb',
+                                       'chd_seen' => 3,
                                        'chd_touched' => $changes[4]->getTime(),
-                                       'chd_lock' =>   null
+                                       'chd_lock' => null
                                ),
                                7,
                                array(
diff --git a/repo/tests/phpunit/includes/specials/SpecialMergeItemsTest.php 
b/repo/tests/phpunit/includes/specials/SpecialMergeItemsTest.php
index 3059d24..75dd9e0 100644
--- a/repo/tests/phpunit/includes/specials/SpecialMergeItemsTest.php
+++ b/repo/tests/phpunit/includes/specials/SpecialMergeItemsTest.php
@@ -326,22 +326,22 @@
                return array(
                        array( //3 toid bad
                                'p' => array( 'fromid' => 'Q1', 'toid' => 
'ABCDE' ),
-                               'e' =>  
'Wikibase\Lib\UserInputException:wikibase-wikibaserepopage-invalid-id' ),
+                               'e' => 
'Wikibase\Lib\UserInputException:wikibase-wikibaserepopage-invalid-id' ),
                        array( //4 fromid bad
                                'p' => array( 'fromid' => 'ABCDE', 'toid' => 
'Q1' ),
-                               'e' =>  
'Wikibase\Lib\UserInputException:wikibase-wikibaserepopage-invalid-id' ),
+                               'e' => 
'Wikibase\Lib\UserInputException:wikibase-wikibaserepopage-invalid-id' ),
                        array( //5 both same id
                                'p' => array( 'fromid' => 'Q1', 'toid' => 'Q1' 
),
-                               'e' =>  
'Wikibase\Repo\Interactors\ItemMergeException:wikibase-itemmerge-cant-merge-self'
 ),
+                               'e' => 
'Wikibase\Repo\Interactors\ItemMergeException:wikibase-itemmerge-cant-merge-self'
 ),
                        array( //6 from id is property
                                'p' => array( 'fromid' => 'P1', 'toid' => 'Q1' 
),
-                               'e' =>  
'Wikibase\Lib\UserInputException:wikibase-itemmerge-not-item' ),
+                               'e' => 
'Wikibase\Lib\UserInputException:wikibase-itemmerge-not-item' ),
                        array( //7 to id is property
                                'p' => array( 'fromid' => 'Q1', 'toid' => 'P1' 
),
-                               'e' =>  
'Wikibase\Lib\UserInputException:wikibase-itemmerge-not-item' ),
+                               'e' => 
'Wikibase\Lib\UserInputException:wikibase-itemmerge-not-item' ),
                        array( //10 bad token
                                'p' => array( 'fromid' => 'Q1', 'toid' => 'Q2', 
'token' => 'BAD' ),
-                               'e' =>  
'Wikibase\Repo\Interactors\TokenCheckException:wikibase-tokencheck-badtoken' ),
+                               'e' => 
'Wikibase\Repo\Interactors\TokenCheckException:wikibase-tokencheck-badtoken' ),
                );
        }
 
diff --git a/repo/tests/phpunit/includes/specials/SpecialRedirectEntityTest.php 
b/repo/tests/phpunit/includes/specials/SpecialRedirectEntityTest.php
index 330a610..0a15524 100644
--- a/repo/tests/phpunit/includes/specials/SpecialRedirectEntityTest.php
+++ b/repo/tests/phpunit/includes/specials/SpecialRedirectEntityTest.php
@@ -246,19 +246,19 @@
                return array(
                        array( //toid bad
                                'p' => array( 'fromid' => 'Q1', 'toid' => 
'ABCDE' ),
-                               'e' =>  
'Wikibase\Lib\UserInputException:wikibase-wikibaserepopage-invalid-id' ),
+                               'e' => 
'Wikibase\Lib\UserInputException:wikibase-wikibaserepopage-invalid-id' ),
                        array( //fromid bad
                                'p' => array( 'fromid' => 'ABCDE', 'toid' => 
'Q1' ),
-                               'e' =>  
'Wikibase\Lib\UserInputException:wikibase-wikibaserepopage-invalid-id' ),
+                               'e' => 
'Wikibase\Lib\UserInputException:wikibase-wikibaserepopage-invalid-id' ),
                        array( //from id is property
                                'p' => array( 'fromid' => 'P1', 'toid' => 'Q1' 
),
-                               'e' =>  
'Wikibase\Repo\Interactors\RedirectCreationException:target-is-incompatible' ),
+                               'e' => 
'Wikibase\Repo\Interactors\RedirectCreationException:target-is-incompatible' ),
                        array( //to id is property
                                'p' => array( 'fromid' => 'Q1', 'toid' => 'P1' 
),
-                               'e' =>  
'Wikibase\Repo\Interactors\RedirectCreationException:target-is-incompatible' ),
+                               'e' => 
'Wikibase\Repo\Interactors\RedirectCreationException:target-is-incompatible' ),
                        array( //bad token
                                'p' => array( 'fromid' => 'Q1', 'toid' => 'Q2', 
'token' => 'BAD' ),
-                               'e' =>  
'Wikibase\Repo\Interactors\TokenCheckException:wikibase-tokencheck-badtoken' ),
+                               'e' => 
'Wikibase\Repo\Interactors\TokenCheckException:wikibase-tokencheck-badtoken' ),
                );
        }
 
diff --git 
a/repo/tests/phpunit/includes/store/sql/SqlChangeDispatchCoordinatorTest.php 
b/repo/tests/phpunit/includes/store/sql/SqlChangeDispatchCoordinatorTest.php
index ec0b124..4395010 100644
--- a/repo/tests/phpunit/includes/store/sql/SqlChangeDispatchCoordinatorTest.php
+++ b/repo/tests/phpunit/includes/store/sql/SqlChangeDispatchCoordinatorTest.php
@@ -365,7 +365,7 @@
                                'chd_db' => 'dewikidb',
                                'chd_seen' => '23', // nothing to do!
                                'chd_touched' => '00000000000000',
-                               'chd_lock' =>  null,
+                               'chd_lock' => null,
                                'chd_disabled' => 0,
                        ),
                );

-- 
To view, visit https://gerrit.wikimedia.org/r/232509
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2b87193f1cd6eda63b1d98ef89adfc3b2e8a4d9b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Thiemo Mättig (WMDE) <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to