mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Editcount
synced 2024-11-23 15:57:19 +00:00
Add phan
Change-Id: I7329f96fb36be043979a82b98d3bf2937a6c1f0e
This commit is contained in:
parent
6c8a2f0549
commit
9abed275c3
3
.phan/config.php
Normal file
3
.phan/config.php
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
return require __DIR__ . '/../vendor/mediawiki/mediawiki-phan-config/src/config.php';
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"mediawiki/mediawiki-codesniffer": "38.0.0",
|
"mediawiki/mediawiki-codesniffer": "38.0.0",
|
||||||
|
"mediawiki/mediawiki-phan-config": "0.11.1",
|
||||||
"mediawiki/minus-x": "1.1.1",
|
"mediawiki/minus-x": "1.1.1",
|
||||||
"php-parallel-lint/php-console-highlighter": "0.5.0",
|
"php-parallel-lint/php-console-highlighter": "0.5.0",
|
||||||
"php-parallel-lint/php-parallel-lint": "1.3.1"
|
"php-parallel-lint/php-parallel-lint": "1.3.1"
|
||||||
|
@ -15,6 +16,7 @@
|
||||||
"minus-x fix .",
|
"minus-x fix .",
|
||||||
"phpcbf"
|
"phpcbf"
|
||||||
],
|
],
|
||||||
"phpcs": "phpcs -sp"
|
"phpcs": "phpcs -sp",
|
||||||
|
"phan": "phan -d . --long-progress-bar"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,6 +33,7 @@ class Editcount extends IncludableSpecialPage {
|
||||||
} else {
|
} else {
|
||||||
$out = $contLang->formatNum( $this->editsInNs( $user, $namespace ) );
|
$out = $contLang->formatNum( $this->editsInNs( $user, $namespace ) );
|
||||||
}
|
}
|
||||||
|
// @phan-suppress-next-line SecurityCheck-XSS
|
||||||
$this->getOutput()->addHTML( $out );
|
$this->getOutput()->addHTML( $out );
|
||||||
} else {
|
} else {
|
||||||
$nscount = $this->editsByNs( $user );
|
$nscount = $this->editsByNs( $user );
|
||||||
|
|
|
@ -51,6 +51,7 @@ class EditcountHTML extends Editcount {
|
||||||
$out .= '
|
$out .= '
|
||||||
</table>
|
</table>
|
||||||
</form>';
|
</form>';
|
||||||
|
// @phan-suppress-next-line SecurityCheck-XSS
|
||||||
$this->getOutput()->addHTML( $out );
|
$this->getOutput()->addHTML( $out );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue