build: Upgrade mediawiki-codesniffer to v28.0.0

Change-Id: I620a56f9edab3a751c7c41cd76ef401aac5d3b79
This commit is contained in:
James D. Forrester 2019-10-11 10:45:11 -07:00
parent 15352b3751
commit 6e8ca25d46
12 changed files with 15 additions and 12 deletions

View file

@ -6,6 +6,9 @@
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationProtected" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic" />
<exclude name="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment" />
<exclude name="PSR12.Properties.ConstantVisibility.NotFound" />
<exclude name="MediaWiki.Commenting.PhpunitAnnotations.ForbiddenExpectedException" />
<exclude name="MediaWiki.Commenting.PhpunitAnnotations.ForbiddenExpectedExceptionMessage" />
</rule>
<file>.</file>
<arg name="extensions" value="php,php5,inc" />

View file

@ -1,7 +1,7 @@
{
"require-dev": {
"jakub-onderka/php-parallel-lint": "1.0.0",
"mediawiki/mediawiki-codesniffer": "26.0.0",
"mediawiki/mediawiki-codesniffer": "28.0.0",
"jakub-onderka/php-console-highlighter": "0.3.2",
"mediawiki/minus-x": "0.3.1",
"mediawiki/mediawiki-phan-config": "0.6.1"

View file

@ -1,7 +1,7 @@
<?php
use MediaWiki\Logger\LoggerFactory;
use \MediaWiki\MediaWikiServices;
use MediaWiki\MediaWikiServices;
/**
* Created by PhpStorm.

View file

@ -25,7 +25,7 @@ class MathDataUpdaterTest extends MediaWikiTestCase {
/**
* @inheritDoc
*/
protected function setUp() {
protected function setUp() : void {
parent::setUp();
$this->mathProperty = new PropertyId( 'P' . DummyPropertyDataTypeLookup::$mathId );
$this->otherProperty = new PropertyId( 'P' . ( DummyPropertyDataTypeLookup::$mathId + 1 ) );

View file

@ -24,7 +24,7 @@ class MathFormatterTest extends MediaWikiTestCase {
self::$hasRestbase = $rbi->checkBackend( true );
}
protected function setUp() {
protected function setUp() : void {
parent::setUp();
if ( !self::$hasRestbase ) {

View file

@ -21,7 +21,7 @@ class MathInputCheckRestbaseTest extends MediaWikiTestCase {
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp() {
protected function setUp() : void {
parent::setUp();
if ( !self::$hasRestbase ) {
$this->markTestSkipped( "Can not connect to Restbase Math interface." );

View file

@ -26,7 +26,7 @@ class MathMLRdfBuilderTest extends MediaWikiTestCase {
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp() {
protected function setUp() : void {
parent::setUp();
if ( !self::$hasRestbase ) {
$this->markTestSkipped( "Can not connect to Restbase Math interface." );

View file

@ -31,7 +31,7 @@ class MathMathMLTest extends MediaWikiTestCase {
self::$timeout = $timeout;
}
protected function setUp() {
protected function setUp() : void {
parent::setUp();
$this->setMwGlobals( 'wgMathoidCli', false );
}

View file

@ -25,7 +25,7 @@ class MathRendererTest extends MediaWikiTestCase {
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp() {
protected function setUp() : void {
parent::setUp();
if ( !self::$hasRestbase ) {
$this->markTestSkipped( "Can not connect to Restbase Math interface." );

View file

@ -23,7 +23,7 @@ class MathRestbaseInterfaceTest extends MediaWikiTestCase {
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp() {
protected function setUp() : void {
parent::setUp();
if ( !self::$hasRestbase ) {
$this->markTestSkipped( "Can not connect to Restbase Math interface." );

View file

@ -25,7 +25,7 @@ class MathValidatorTest extends MediaWikiTestCase {
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp() {
protected function setUp() : void {
parent::setUp();
if ( !self::$hasRestbase ) {
@ -33,7 +33,7 @@ class MathValidatorTest extends MediaWikiTestCase {
}
}
protected function tearDown() {
protected function tearDown() : void {
parent::tearDown();
}

View file

@ -23,7 +23,7 @@ class MathoidCliTest extends MediaWikiTestCase {
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp() {
protected function setUp() : void {
parent::setUp();
if ( !self::$hasMathoidCli ) {
$this->markTestSkipped( "No mathoid cli configured on server" );