mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-13 17:56:59 +00:00
Usage of Yoda conditions is not allowed; switch the expression order
Change-Id: I3e3ca5e380521b514062953d4aeb635793819e89
This commit is contained in:
parent
4f72fb13be
commit
dc007663b2
|
@ -1,7 +1,6 @@
|
|||
<?xml version="1.0"?>
|
||||
<ruleset>
|
||||
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
|
||||
<exclude name="Generic.ControlStructures.DisallowYodaConditions.Found" />
|
||||
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPrivate" />
|
||||
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationProtected" />
|
||||
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic" />
|
||||
|
|
|
@ -382,7 +382,7 @@ class MathMathML extends MathRenderer {
|
|||
* @return Title|string
|
||||
*/
|
||||
private function getFallbackImageUrl( $noRender = false ) {
|
||||
if ( 'png' === $this->getMode() && $this->pngPath ) {
|
||||
if ( $this->getMode() === 'png' && $this->pngPath ) {
|
||||
return $this->pngPath;
|
||||
}
|
||||
if ( $this->svgPath ) {
|
||||
|
|
Loading…
Reference in a new issue