From 397554c0d5ab3692bfeaf990fb0805b53114f381 Mon Sep 17 00:00:00 2001 From: Amir Sarabadani Date: Sat, 19 Aug 2023 04:47:58 +0200 Subject: [PATCH] Fix phpcs error Change-Id: Id5813537ec8d0431a20adebc269ecbbaa6a06c63 --- repo/tests/phpunit/includes/Api/EditEntityTest.php | 2 +- repo/tests/phpunit/includes/Api/GetEntitiesTest.php | 6 +++--- repo/tests/phpunit/includes/Api/ModifyTermTestCase.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/repo/tests/phpunit/includes/Api/EditEntityTest.php b/repo/tests/phpunit/includes/Api/EditEntityTest.php index bc4ae8643c7..3e341faf619 100644 --- a/repo/tests/phpunit/includes/Api/EditEntityTest.php +++ b/repo/tests/phpunit/includes/Api/EditEntityTest.php @@ -802,7 +802,7 @@ public function provideExceptionData() { 'code' => 'invalid-entity-id', ] ] ], 'non existent sitelink' => [ - 'p' => [ 'site' => 'dewiki','title' => 'NonExistent', 'data' => '{}' ], + 'p' => [ 'site' => 'dewiki', 'title' => 'NonExistent', 'data' => '{}' ], 'e' => [ 'exception' => [ 'type' => ApiUsageException::class, 'code' => 'no-such-entity-link', diff --git a/repo/tests/phpunit/includes/Api/GetEntitiesTest.php b/repo/tests/phpunit/includes/Api/GetEntitiesTest.php index 74d732a1dad..1594ad53bee 100644 --- a/repo/tests/phpunit/includes/Api/GetEntitiesTest.php +++ b/repo/tests/phpunit/includes/Api/GetEntitiesTest.php @@ -394,13 +394,13 @@ public static function provideExceptionData() { 'p' => [ 'titles' => 'Berlin' ], 'e' => [ 'exception' => [ 'type' => ApiUsageException::class, 'code' => 'param-missing' ] ] ], [ //6 normalization fails with 2 titles - 'p' => [ 'sites' => 'enwiki', 'titles' => 'Foo|Bar' ,'normalize' => '' ], + 'p' => [ 'sites' => 'enwiki', 'titles' => 'Foo|Bar' , 'normalize' => '' ], 'e' => [ 'exception' => [ 'type' => ApiUsageException::class, 'code' => 'params-illegal' ] ] ], [ //7 normalization fails with 2 sites - 'p' => [ 'sites' => 'enwiki|dewiki', 'titles' => 'Boo' ,'normalize' => '' ], + 'p' => [ 'sites' => 'enwiki|dewiki', 'titles' => 'Boo' , 'normalize' => '' ], 'e' => [ 'exception' => [ 'type' => ApiUsageException::class, 'code' => 'params-illegal' ] ] ], [ //8 normalization fails with 2 sites and 2 titles - 'p' => [ 'sites' => 'enwiki|dewiki', 'titles' => 'Foo|Bar' ,'normalize' => '' ], + 'p' => [ 'sites' => 'enwiki|dewiki', 'titles' => 'Foo|Bar' , 'normalize' => '' ], 'e' => [ 'exception' => [ 'type' => ApiUsageException::class, 'code' => 'params-illegal' ] ] ], [ //9 must request one site, one title, or an equal number of sites and titles 'p' => [ 'sites' => 'dewiki|enwiki', 'titles' => 'Oslo|Berlin|London' ], diff --git a/repo/tests/phpunit/includes/Api/ModifyTermTestCase.php b/repo/tests/phpunit/includes/Api/ModifyTermTestCase.php index aee1f2bb0e2..80b0aa7b090 100644 --- a/repo/tests/phpunit/includes/Api/ModifyTermTestCase.php +++ b/repo/tests/phpunit/includes/Api/ModifyTermTestCase.php @@ -50,7 +50,7 @@ public static function provideData() { 'e' => [ 'value' => [ 'en' => 'Different Value' ] ] ], [ //5 'p' => [ 'language' => 'sgs', 'value' => 'V?sata' ], - 'e' => [ 'value' => [ 'sgs' => 'V?sata','en' => 'Different Value' ] ] ], + 'e' => [ 'value' => [ 'sgs' => 'V?sata', 'en' => 'Different Value' ] ] ], [ //6 'p' => [ 'language' => 'en', 'value' => '' ], 'e' => [ 'value' => [ 'sgs' => 'V?sata' ] ] ],