Skip to content

Commit 8c6128f

Browse files
author
libraryupgrader
committed
build: Updating mediawiki/mediawiki-codesniffer to 41.0.0
Change-Id: I5310cebc4b01bc11f329d10a40a3d276775c6313
1 parent 4ac9f67 commit 8c6128f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"php": ">=7.4"
2323
},
2424
"require-dev": {
25-
"mediawiki/mediawiki-codesniffer": "40.0.1",
25+
"mediawiki/mediawiki-codesniffer": "41.0.0",
2626
"mediawiki/mediawiki-phan-config": "0.12.0",
2727
"mediawiki/minus-x": "1.1.1",
2828
"ockcyp/covers-validator": "1.6.0",

tests/TextCatTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,9 @@ public function testMinInputLength( $testLine, $lang, $res ) {
178178

179179
// should get no results when min input len is more than the length of the string
180180
$this->testcat->setMinInputLength( mb_strlen( $testLine ) + 1 );
181-
$this->assertEquals( array_keys( $this->testcat->classify( $testLine, $res ) ),
182-
[] );
183-
$this->assertEquals( $this->testcat->getResultStatus(), TextCat::STATUSTOOSHORT );
181+
$this->assertEquals( [],
182+
array_keys( $this->testcat->classify( $testLine, $res ) ) );
183+
$this->assertEquals( TextCat::STATUSTOOSHORT, $this->testcat->getResultStatus() );
184184

185185
// reset to defaults
186186
$this->testcat->setMinInputLength( 0 );
@@ -314,9 +314,9 @@ public function testBoostedLangs( $testLine, $res1, $res2, $boost ) {
314314

315315
public function testNoMatch() {
316316
# no xxx.lm model exists, so get no match
317-
$this->assertEquals( array_keys( $this->testcat->classify( "a string", [ "xxx" ] ) ),
318-
[] );
319-
$this->assertEquals( $this->testcat->getResultStatus(), TextCat::STATUSNOMATCH );
317+
$this->assertEquals( [],
318+
array_keys( $this->testcat->classify( "a string", [ "xxx" ] ) ) );
319+
$this->assertEquals( TextCat::STATUSNOMATCH, $this->testcat->getResultStatus() );
320320
}
321321

322322
public function testWordSep() {

0 commit comments

Comments
 (0)