We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25e4950 commit 4bcbab7Copy full SHA for 4bcbab7
5 files changed
src/SiteLinkList.php
@@ -123,7 +123,7 @@ public function count() {
123
*/
124
public function getBySiteId( $siteId ) {
125
if ( !$this->hasLinkWithSiteId( $siteId ) ) {
126
- throw new OutOfBoundsException( 'SiteLink with siteId "' . $siteId . '" not found' );
+ throw new OutOfBoundsException( 'SiteLink with siteId "' . $siteId . '" not found' );
127
}
128
129
return $this->siteLinks[$siteId];
tests/unit/ByPropertyIdArrayTest.php
@@ -257,7 +257,7 @@ public function moveProvider() {
257
$argLists[] = array( $c, $c[1], 0, array( $c[1], $c[0], $c[2], $c[3], $c[4], $c[5] ) );
258
$argLists[] = array( $c, $c[1], 1, $c );
259
$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] ) ); //
+ $argLists[] = array( $c, $c[1], 3, array( $c[2], $c[3], $c[4], $c[0], $c[1], $c[5] ) );
261
$argLists[] = array( $c, $c[1], 4, array( $c[2], $c[3], $c[4], $c[0], $c[1], $c[5] ) );
262
$argLists[] = array( $c, $c[1], 5, array( $c[2], $c[3], $c[4], $c[0], $c[1], $c[5] ) );
263
$argLists[] = array( $c, $c[1], 6, array( $c[2], $c[3], $c[4], $c[5], $c[0], $c[1] ) );
tests/unit/Entity/EntityTest.php
@@ -218,8 +218,8 @@ public function testSetEmptyAlias( array $aliasesLists ) {
218
$entity->setAliases( $langCode, $aliases );
219
220
221
- $entity->setAliases( 'zh', array( 'wind', 'air', '', 'fire') );
222
- $entity->setAliases( 'zu', array( '', '') );
+ $entity->setAliases( 'zh', array( 'wind', 'air', '', 'fire' ) );
+ $entity->setAliases( 'zu', array( '', '' ) );
223
224
foreach ( $aliasesLists as $langCode => $aliasesList ) {
225
$expected = array_values( array_unique( array_pop( $aliasesList ) ) );
tests/unit/SiteLinkListTest.php
@@ -245,7 +245,7 @@ public function testAddNewSiteLink() {
245
$list->addNewSiteLink( 'enwiki', 'cats' );
246
$list->addNewSiteLink( 'dewiki', 'katzen', array( new ItemId( 'Q1' ) ) );
247
248
- $this->assertTrue( $list->equals( new SiteLinkList( array (
+ $this->assertTrue( $list->equals( new SiteLinkList( array(
249
new SiteLink( 'enwiki', 'cats' ),
250
new SiteLink( 'dewiki', 'katzen', array( new ItemId( 'Q1' ) ) ),
251
) ) ) );
@@ -257,7 +257,7 @@ public function testAddSiteLink() {
$list->addSiteLink( new SiteLink( 'enwiki', 'cats' ) );
$list->addSiteLink( new SiteLink( 'dewiki', 'katzen' ) );
new SiteLink( 'dewiki', 'katzen' ),
tests/unit/Statement/StatementGuidTest.php
@@ -29,7 +29,7 @@ public function testConstructor( EntityId $entityId, $guid, $expected ) {
29
$statementGuid = new StatementGuid( $entityId, $guid );
30
31
$this->assertEquals( $expected, $statementGuid->getSerialization() );
32
- $this->assertEquals( $entityId, $statementGuid->getEntityId());
+ $this->assertEquals( $entityId, $statementGuid->getEntityId() );
33
34
35
public function provideConstructionData() {
0 commit comments