Skip to content

Commit c40e003

Browse files
committed
Merge pull request #588 from wmde/mwFixes
Fix remaining minor whitespace issues
2 parents 25e4950 + 4bcbab7 commit c40e003

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/SiteLinkList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public function count() {
123123
*/
124124
public function getBySiteId( $siteId ) {
125125
if ( !$this->hasLinkWithSiteId( $siteId ) ) {
126-
throw new OutOfBoundsException( 'SiteLink with siteId "' . $siteId . '" not found' );
126+
throw new OutOfBoundsException( 'SiteLink with siteId "' . $siteId . '" not found' );
127127
}
128128

129129
return $this->siteLinks[$siteId];

tests/unit/ByPropertyIdArrayTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ public function moveProvider() {
257257
$argLists[] = array( $c, $c[1], 0, array( $c[1], $c[0], $c[2], $c[3], $c[4], $c[5] ) );
258258
$argLists[] = array( $c, $c[1], 1, $c );
259259
$argLists[] = array( $c, $c[1], 2, $c );
260-
$argLists[] = array( $c, $c[1], 3, array( $c[2], $c[3], $c[4], $c[0], $c[1], $c[5] ) ); //
260+
$argLists[] = array( $c, $c[1], 3, array( $c[2], $c[3], $c[4], $c[0], $c[1], $c[5] ) );
261261
$argLists[] = array( $c, $c[1], 4, array( $c[2], $c[3], $c[4], $c[0], $c[1], $c[5] ) );
262262
$argLists[] = array( $c, $c[1], 5, array( $c[2], $c[3], $c[4], $c[0], $c[1], $c[5] ) );
263263
$argLists[] = array( $c, $c[1], 6, array( $c[2], $c[3], $c[4], $c[5], $c[0], $c[1] ) );

tests/unit/Entity/EntityTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ public function testSetEmptyAlias( array $aliasesLists ) {
218218
$entity->setAliases( $langCode, $aliases );
219219
}
220220
}
221-
$entity->setAliases( 'zh', array( 'wind', 'air', '', 'fire') );
222-
$entity->setAliases( 'zu', array( '', '') );
221+
$entity->setAliases( 'zh', array( 'wind', 'air', '', 'fire' ) );
222+
$entity->setAliases( 'zu', array( '', '' ) );
223223

224224
foreach ( $aliasesLists as $langCode => $aliasesList ) {
225225
$expected = array_values( array_unique( array_pop( $aliasesList ) ) );

tests/unit/SiteLinkListTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ public function testAddNewSiteLink() {
245245
$list->addNewSiteLink( 'enwiki', 'cats' );
246246
$list->addNewSiteLink( 'dewiki', 'katzen', array( new ItemId( 'Q1' ) ) );
247247

248-
$this->assertTrue( $list->equals( new SiteLinkList( array (
248+
$this->assertTrue( $list->equals( new SiteLinkList( array(
249249
new SiteLink( 'enwiki', 'cats' ),
250250
new SiteLink( 'dewiki', 'katzen', array( new ItemId( 'Q1' ) ) ),
251251
) ) ) );
@@ -257,7 +257,7 @@ public function testAddSiteLink() {
257257
$list->addSiteLink( new SiteLink( 'enwiki', 'cats' ) );
258258
$list->addSiteLink( new SiteLink( 'dewiki', 'katzen' ) );
259259

260-
$this->assertTrue( $list->equals( new SiteLinkList( array (
260+
$this->assertTrue( $list->equals( new SiteLinkList( array(
261261
new SiteLink( 'enwiki', 'cats' ),
262262
new SiteLink( 'dewiki', 'katzen' ),
263263
) ) ) );

tests/unit/Statement/StatementGuidTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function testConstructor( EntityId $entityId, $guid, $expected ) {
2929
$statementGuid = new StatementGuid( $entityId, $guid );
3030

3131
$this->assertEquals( $expected, $statementGuid->getSerialization() );
32-
$this->assertEquals( $entityId, $statementGuid->getEntityId());
32+
$this->assertEquals( $entityId, $statementGuid->getEntityId() );
3333
}
3434

3535
public function provideConstructionData() {

0 commit comments

Comments
 (0)