build: Updating mediawiki/mediawiki-codesniffer to 0.11.0
Change-Id: I8ce8155621fbfc5cb3dcf5dafbfa89796d0c1f11
This commit is contained in:
parent
2bbb86b868
commit
df1689c717
|
@ -81,7 +81,7 @@ class MathHooks {
|
|||
'MW_MATH_PNG' => 0,
|
||||
'MW_MATH_SOURCE' => 3,
|
||||
'MW_MATH_MATHML' => 5,
|
||||
'MW_MATH_LATEXML'=> 7 ];
|
||||
'MW_MATH_LATEXML' => 7 ];
|
||||
|
||||
return self::mathConstantToString( $mode, $defs, $prefix = 'MW_MATH_', $default );
|
||||
}
|
||||
|
@ -91,7 +91,7 @@ class MathHooks {
|
|||
'png' => 0,
|
||||
'source' => 3,
|
||||
'mathml' => 5,
|
||||
'latexml'=> 7 ];
|
||||
'latexml' => 7 ];
|
||||
|
||||
if ( array_key_exists( $mode, $defs ) ) {
|
||||
return $defs[$mode];
|
||||
|
|
|
@ -37,7 +37,7 @@ class MathInputCheckRestbase extends MathInputCheck {
|
|||
*/
|
||||
public function errorObjectToHtml( stdClass $e, $errorRenderer = null ) {
|
||||
if ( $errorRenderer === null ) {
|
||||
$errorRenderer = new MathSource( $this->inputTeX );
|
||||
$errorRenderer = new MathSource( $this->inputTeX );
|
||||
}
|
||||
if ( isset( $e->error->message ) ) {
|
||||
if ( $e->error->message === 'Illegal TeX function' ) {
|
||||
|
|
|
@ -25,7 +25,7 @@ class MathInputCheckTexvc extends MathInputCheck {
|
|||
$errDetails = htmlspecialchars( substr( $texvcResult, 1 ) );
|
||||
|
||||
if ( $errorRenderer === false ) {
|
||||
$errorRenderer = new MathSource( $this->inputTeX );
|
||||
$errorRenderer = new MathSource( $this->inputTeX );
|
||||
}
|
||||
|
||||
switch ( $texvcStatus ) {
|
||||
|
|
|
@ -122,7 +122,7 @@ class MathRestbaseInterface {
|
|||
private function executeRestbaseCheckRequest( $request ) {
|
||||
$res = null;
|
||||
$serviceClient = $this->getServiceClient();
|
||||
$response = $serviceClient->run( $request );
|
||||
$response = $serviceClient->run( $request );
|
||||
if ( $response['code'] !== 200 ) {
|
||||
$this->log()->info( 'Tex check failed:', [
|
||||
'post' => $request['body'],
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"require-dev": {
|
||||
"jakub-onderka/php-parallel-lint": "0.9.2",
|
||||
"mediawiki/mediawiki-codesniffer": "0.10.1",
|
||||
"mediawiki/mediawiki-codesniffer": "0.11.0",
|
||||
"jakub-onderka/php-console-highlighter": "0.3.2"
|
||||
},
|
||||
"scripts": {
|
||||
|
|
|
@ -88,8 +88,8 @@ class MathHooksTest extends MediaWikiTestCase {
|
|||
'png' => 0,
|
||||
'source' => 3,
|
||||
'mathml' => 5,
|
||||
'latexml'=> 7,
|
||||
'invalid'=> $default
|
||||
'latexml' => 7,
|
||||
'invalid' => $default
|
||||
];
|
||||
|
||||
foreach ( $testCases as $input => $expected ) {
|
||||
|
|
Loading…
Reference in New Issue