build: Updating mediawiki/mediawiki-codesniffer to 33.0.0

The following sniffs are failing and were disabled:
* Generic.ControlStructures.DisallowYodaConditions.Found
* MediaWiki.Commenting.FunctionComment.ObjectTypeHintParam
* MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationPrivate
* MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationProtected
* MediaWiki.Usage.ExtendClassUsage.FunctionConfigUsage
* MediaWiki.Usage.ExtendClassUsage.FunctionVarUsage

Additional changes:
* Dropped .inc files from .phpcs.xml (T200956).

Change-Id: I2a0a579219607d60c1557d4b700cdf810f07f538
This commit is contained in:
libraryupgrader 2020-11-04 04:01:11 +00:00
parent a1e4882543
commit ce88944fe5
5 changed files with 11 additions and 5 deletions

View file

@ -1,12 +1,18 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<ruleset> <ruleset>
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki"> <rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
<exclude name="Generic.ControlStructures.DisallowYodaConditions.Found" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPrivate" /> <exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPrivate" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationProtected" /> <exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationProtected" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic" /> <exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic" />
<exclude name="MediaWiki.Commenting.FunctionComment.ObjectTypeHintParam" />
<exclude name="MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationPrivate" />
<exclude name="MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationProtected" />
<exclude name="MediaWiki.Usage.ExtendClassUsage.FunctionConfigUsage" />
<exclude name="MediaWiki.Usage.ExtendClassUsage.FunctionVarUsage" />
<exclude name="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment" /> <exclude name="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment" />
</rule> </rule>
<file>.</file> <file>.</file>
<arg name="extensions" value="php,inc" /> <arg name="extensions" value="php" />
<arg name="encoding" value="UTF-8" /> <arg name="encoding" value="UTF-8" />
</ruleset> </ruleset>

View file

@ -12,7 +12,7 @@ class MathLaTeXML extends MathMathML {
protected $defaultAllowedRootElements = [ 'math', 'div', 'table', 'query' ]; protected $defaultAllowedRootElements = [ 'math', 'div', 'table', 'query' ];
/** @var String settings for LaTeXML daemon */ /** @var string settings for LaTeXML daemon */
private $LaTeXMLSettings = ''; private $LaTeXMLSettings = '';
public function __construct( $tex = '', $params = [] ) { public function __construct( $tex = '', $params = [] ) {

View file

@ -1,6 +1,6 @@
{ {
"require-dev": { "require-dev": {
"mediawiki/mediawiki-codesniffer": "31.0.0", "mediawiki/mediawiki-codesniffer": "33.0.0",
"mediawiki/mediawiki-phan-config": "0.10.3", "mediawiki/mediawiki-phan-config": "0.10.3",
"mediawiki/minus-x": "1.1.0", "mediawiki/minus-x": "1.1.0",
"php-parallel-lint/php-console-highlighter": "0.5.0", "php-parallel-lint/php-console-highlighter": "0.5.0",

View file

@ -28,7 +28,7 @@ class MathoidChecker extends BaseChecker {
* @param WANObjectCache $cache * @param WANObjectCache $cache
* @param HttpRequestFactory $httpFactory * @param HttpRequestFactory $httpFactory
* @param LoggerInterface $logger * @param LoggerInterface $logger
* @param String $url * @param string $url
* @param int $timeout * @param int $timeout
* @param string $input * @param string $input
* @param string $type * @param string $type

View file

@ -41,7 +41,7 @@ class MathMathMLCli extends MathMathML {
} }
/** /**
* @param Object $res * @param object $res
* @return bool * @return bool
*/ */
private function initializeFromCliResponse( $res ) { private function initializeFromCliResponse( $res ) {