build: Updating mediawiki/mediawiki-codesniffer to 13.0.0
Change-Id: Ia24dbf015f2b4781683ca980a460d0ac3e85674e
This commit is contained in:
parent
9617de6144
commit
bd741b83bc
16 changed files with 13 additions and 19 deletions
|
|
@ -54,7 +54,7 @@
|
|||
"jakub-onderka/php-parallel-lint": "0.9.2",
|
||||
"jetbrains/phpstorm-stubs": "dev-master#1b9906084d6635456fcf3f3a01f0d7d5b99a578a",
|
||||
"justinrainbow/json-schema": "~5.2",
|
||||
"mediawiki/mediawiki-codesniffer": "0.12.0",
|
||||
"mediawiki/mediawiki-codesniffer": "13.0.0",
|
||||
"monolog/monolog": "~1.22.1",
|
||||
"nikic/php-parser": "2.1.0",
|
||||
"nmred/kafka-php": "0.1.5",
|
||||
|
|
|
|||
|
|
@ -20,8 +20,6 @@
|
|||
* @file
|
||||
*/
|
||||
|
||||
use Wikimedia\Rdbms\IDatabase;
|
||||
|
||||
/**
|
||||
* CommentStoreComment represents a comment stored by CommentStore. The fields
|
||||
* should be considered read-only.
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@
|
|||
* @author Happy-melon
|
||||
* @file
|
||||
*/
|
||||
use Liuggio\StatsdClient\Factory\StatsdDataFactory;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@
|
|||
* @author Daniel Friesen
|
||||
* @file
|
||||
*/
|
||||
use Liuggio\StatsdClient\Factory\StatsdDataFactory;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -21,8 +21,6 @@
|
|||
* @file
|
||||
*/
|
||||
|
||||
use Liuggio\StatsdClient\Factory\StatsdDataFactory;
|
||||
|
||||
/**
|
||||
* Interface for objects which can provide a MediaWiki context on request
|
||||
*
|
||||
|
|
|
|||
|
|
@ -22,7 +22,6 @@
|
|||
* @file
|
||||
*/
|
||||
|
||||
use Liuggio\StatsdClient\Factory\StatsdDataFactory;
|
||||
use MediaWiki\Logger\LoggerFactory;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use Wikimedia\ScopedCallback;
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@
|
|||
* @file
|
||||
* @ingroup SpecialPage
|
||||
*/
|
||||
use MediaWiki\MediaWikiServices;
|
||||
|
||||
/**
|
||||
* XML file reader for the page data importer.
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@
|
|||
* @file
|
||||
* @ingroup Deployment
|
||||
*/
|
||||
use Wikimedia\Rdbms\Field;
|
||||
use Wikimedia\Rdbms\MySQLField;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
|
||||
|
|
|
|||
|
|
@ -1138,6 +1138,7 @@ abstract class Database implements IDatabase, IMaintainableDatabase, LoggerAware
|
|||
*
|
||||
* @param string $error Error text
|
||||
* @param int $errno Error number
|
||||
* @return bool
|
||||
*/
|
||||
protected function wasQueryTimeout( $error, $errno ) {
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
use Liuggio\StatsdClient\Entity\StatsdData;
|
||||
use Liuggio\StatsdClient\Entity\StatsdDataInterface;
|
||||
use Liuggio\StatsdClient\Factory\StatsdDataFactoryInterface;
|
||||
|
||||
/**
|
||||
* @author Addshore
|
||||
|
|
|
|||
|
|
@ -621,31 +621,37 @@ final class Session implements \Countable, \Iterator, \ArrayAccess {
|
|||
* @{
|
||||
*/
|
||||
|
||||
/** @inheritDoc */
|
||||
public function count() {
|
||||
$data = &$this->backend->getData();
|
||||
return count( $data );
|
||||
}
|
||||
|
||||
/** @inheritDoc */
|
||||
public function current() {
|
||||
$data = &$this->backend->getData();
|
||||
return current( $data );
|
||||
}
|
||||
|
||||
/** @inheritDoc */
|
||||
public function key() {
|
||||
$data = &$this->backend->getData();
|
||||
return key( $data );
|
||||
}
|
||||
|
||||
/** @inheritDoc */
|
||||
public function next() {
|
||||
$data = &$this->backend->getData();
|
||||
next( $data );
|
||||
}
|
||||
|
||||
/** @inheritDoc */
|
||||
public function rewind() {
|
||||
$data = &$this->backend->getData();
|
||||
reset( $data );
|
||||
}
|
||||
|
||||
/** @inheritDoc */
|
||||
public function valid() {
|
||||
$data = &$this->backend->getData();
|
||||
return key( $data ) !== null;
|
||||
|
|
@ -678,10 +684,12 @@ final class Session implements \Countable, \Iterator, \ArrayAccess {
|
|||
return $data[$offset];
|
||||
}
|
||||
|
||||
/** @inheritDoc */
|
||||
public function offsetSet( $offset, $value ) {
|
||||
$this->set( $offset, $value );
|
||||
}
|
||||
|
||||
/** @inheritDoc */
|
||||
public function offsetUnset( $offset ) {
|
||||
$this->remove( $offset );
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,8 +23,6 @@
|
|||
|
||||
require_once __DIR__ . '/Maintenance.php';
|
||||
|
||||
use Wikimedia\Rdbms\IDatabase;
|
||||
|
||||
/**
|
||||
* Usage:
|
||||
* populatePPSortKey.php
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@
|
|||
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic" />
|
||||
<exclude name="MediaWiki.Commenting.FunctionComment.MissingParamTag" />
|
||||
<exclude name="MediaWiki.Commenting.FunctionComment.MissingReturn" />
|
||||
<exclude name="MediaWiki.Commenting.FunctionComment.SpacingAfter" />
|
||||
<exclude name="MediaWiki.Commenting.FunctionComment.ParamNameNoMatch" />
|
||||
<exclude name="MediaWiki.Commenting.FunctionComment.ExtraParamComment" />
|
||||
<exclude name="MediaWiki.Commenting.FunctionComment.WrongStyle" />
|
||||
|
|
@ -23,6 +22,9 @@
|
|||
<exclude name="MediaWiki.Files.ClassMatchesFilename.WrongCase" />
|
||||
<exclude name="MediaWiki.Files.ClassMatchesFilename.NotMatch" />
|
||||
<exclude name="MediaWiki.Files.OneClassPerFile.MultipleFound" />
|
||||
<exclude name="MediaWiki.VariableAnalysis.ForbiddenGlobalVariables.ForbiddenGlobal$wgTitle" />
|
||||
<exclude name="MediaWiki.Usage.DeprecatedConstantUsage.NS_IMAGE" />
|
||||
<exclude name="MediaWiki.Usage.DeprecatedConstantUsage.NS_IMAGE_TALK" />
|
||||
</rule>
|
||||
<rule ref="MediaWiki.NamingConventions.PrefixedGlobalFunctions">
|
||||
<properties>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
<?php
|
||||
|
||||
use \Phan\Config;
|
||||
|
||||
// If xdebug is enabled, we need to increase the nesting level for phan
|
||||
ini_set( 'xdebug.max_nesting_level', 1000 );
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
<?php
|
||||
use Liuggio\StatsdClient\Factory\StatsdDataFactory;
|
||||
use MediaWiki\Interwiki\InterwikiLookup;
|
||||
use MediaWiki\Linker\LinkRenderer;
|
||||
use MediaWiki\Linker\LinkRendererFactory;
|
||||
|
|
@ -7,7 +6,6 @@ use MediaWiki\MediaWikiServices;
|
|||
use MediaWiki\Services\DestructibleService;
|
||||
use MediaWiki\Services\SalvageableService;
|
||||
use MediaWiki\Services\ServiceDisabledException;
|
||||
use Wikimedia\Rdbms\LBFactory;
|
||||
|
||||
/**
|
||||
* @covers MediaWiki\MediaWikiServices
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ namespace MediaWiki\Auth;
|
|||
|
||||
use BagOStuff;
|
||||
use HashBagOStuff;
|
||||
use InvalidArgumentException;
|
||||
use Psr\Log\AbstractLogger;
|
||||
use Psr\Log\LoggerInterface;
|
||||
use Psr\Log\NullLogger;
|
||||
|
|
|
|||
Loading…
Reference in a new issue