build: Updating mediawiki/mediawiki-codesniffer to 16.0.0

The following sniffs are failing and were disabled:
* MediaWiki.Commenting.MissingCovers.MissingCovers

Change-Id: I07b2cf945f44fd5532812a712f7dd40d2f208be2
This commit is contained in:
libraryupgrader 2018-02-15 13:57:18 +00:00
parent 9808ec80dc
commit 6d1a6ffb01
5 changed files with 6 additions and 5 deletions

View file

@ -5,6 +5,7 @@
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationProtected" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingParamComment" />
<exclude name="MediaWiki.Commenting.MissingCovers.MissingCovers" />
<exclude name="MediaWiki.Files.ClassMatchesFilename.NotMatch" />
<exclude name="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment" />
<exclude name="Squiz.Scope.MethodScope.Missing" />

View file

@ -1,7 +1,7 @@
{
"require-dev": {
"jakub-onderka/php-parallel-lint": "0.9.2",
"mediawiki/mediawiki-codesniffer": "15.0.0",
"mediawiki/mediawiki-codesniffer": "16.0.0",
"mediawiki/minus-x": "0.2.1",
"jakub-onderka/php-console-highlighter": "0.3.2"
},

View file

@ -92,7 +92,7 @@ foreach ( $pats as $k => $pp ) {
foreach ( str_split( $pp[1] ) as $p ) {
$re2[] = $pats[$p][0];
}
$re2 = join( '|', $re2 );
$re2 = implode( '|', $re2 );
}
fprintf( $fh, "\t[0x%02x] = {\n", ord( $k ) );
@ -132,7 +132,7 @@ foreach ( $pats as $k => $pp ) {
$check = array_merge( $check, $ranges[$k] );
}
if ( $check ) {
$body .= "\treturn " . join( " or\n\t\t", $check );
$body .= "\treturn " . implode( " or\n\t\t", $check );
fprintf( $fh, "setmetatable( pats[0x%02x], { __index = function ( t, k )\n%s\nend } )\n",
ord( $k ), $body );
}

View file

@ -96,7 +96,7 @@ class Scribunto_LuaCommonTests extends Scribunto_LuaEngineTestBase {
$leakedGlobals = array_diff( $actualGlobals, self::$allowedGlobals );
$this->assertEquals( 0, count( $leakedGlobals ),
'The following globals are leaked: ' . join( ' ', $leakedGlobals )
'The following globals are leaked: ' . implode( ' ', $leakedGlobals )
);
}

View file

@ -56,7 +56,7 @@ class Scribunto_LuaUstringLibraryTests extends Scribunto_LuaEngineTestBase {
foreach ( $chars as &$c ) {
$c = sprintf( "%x", $c );
}
$e = "$e\t" . join( "\t", $chars );
$e = "$e\t" . implode( "\t", $chars );
}
$actual = $dataProvider->runNorm( $c1, $c2, $c3, $c4, $c5 );
$this->assertSame( $expected, $actual );