mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-23 23:25:02 +00:00
build: Upgrade mediawiki-codesniffer to v28.0.0
Change-Id: I620a56f9edab3a751c7c41cd76ef401aac5d3b79
This commit is contained in:
parent
15352b3751
commit
6e8ca25d46
|
@ -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" />
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
use MediaWiki\Logger\LoggerFactory;
|
||||
use \MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
|
|
|
@ -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 ) );
|
||||
|
|
|
@ -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 ) {
|
||||
|
|
|
@ -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." );
|
||||
|
|
|
@ -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." );
|
||||
|
|
|
@ -31,7 +31,7 @@ class MathMathMLTest extends MediaWikiTestCase {
|
|||
self::$timeout = $timeout;
|
||||
}
|
||||
|
||||
protected function setUp() {
|
||||
protected function setUp() : void {
|
||||
parent::setUp();
|
||||
$this->setMwGlobals( 'wgMathoidCli', false );
|
||||
}
|
||||
|
|
|
@ -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." );
|
||||
|
|
|
@ -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." );
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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" );
|
||||
|
|
Loading…
Reference in a new issue