mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-24 07:34:22 +00:00
Start catch
blocks on the same line as the preceding }
Change-Id: Ib3761884bc2ec14640f6e649ca7a704c9cea83ca
This commit is contained in:
parent
2e630542ab
commit
8328544d9c
|
@ -61,8 +61,7 @@ class RestbaseChecker extends BaseChecker {
|
|||
}
|
||||
try {
|
||||
$host = $this->restbaseInterface->getUrl( '' );
|
||||
}
|
||||
catch ( Exception $ignore ) {
|
||||
} catch ( Exception $ignore ) {
|
||||
$host = 'invalid';
|
||||
}
|
||||
return $this->errorObjectToMessage( $err, $host );
|
||||
|
|
|
@ -94,8 +94,7 @@ class MathMathMLCli extends MathMathML {
|
|||
case '-':
|
||||
// we do not know any cases that triggers this error
|
||||
}
|
||||
}
|
||||
catch ( Exception $e ) {
|
||||
} catch ( Exception $e ) {
|
||||
// use default error message
|
||||
}
|
||||
|
||||
|
|
|
@ -712,8 +712,7 @@ abstract class MathRenderer {
|
|||
$this->texSecure = true;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
catch ( MWException $e ) {
|
||||
} catch ( MWException $e ) {
|
||||
}
|
||||
$checkerError = $checker->getError();
|
||||
$this->lastError = $this->getError( $checkerError->getKey(), ...$checkerError->getParams() );
|
||||
|
|
|
@ -82,8 +82,7 @@ class MathRestbaseInterface {
|
|||
try {
|
||||
$mml = $rbi->evaluateContentResponse( 'mml', $results[$j], $requests[$j] );
|
||||
$rbi->mml = $mml;
|
||||
}
|
||||
catch ( Exception $e ) {
|
||||
} catch ( Exception $e ) {
|
||||
}
|
||||
$j++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue