Siebrand has uploaded a new change for review.
https://gerrit.wikimedia.org/r/275535
Change subject: Use type-safe compare
......................................................................
Use type-safe compare
Change-Id: I745c24a47a16c504af47d74e485c2bbc4889283a
---
M CharInsert.body.php
1 file changed, 1 insertion(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CharInsert
refs/changes/35/275535/1
diff --git a/CharInsert.body.php b/CharInsert.body.php
index e2d1816..7f96e85 100644
--- a/CharInsert.body.php
+++ b/CharInsert.body.php
@@ -59,7 +59,7 @@
$chars = explode( '+', $data );
if ( count( $chars ) > 1 && $chars[0] !== '' ) {
return self::charInsertChar( $chars[0], $chars[1] );
- } elseif ( count( $chars ) == 1 ) {
+ } elseif ( count( $chars ) === 1 ) {
return self::charInsertChar( $chars[0] );
} else {
return self::charInsertChar( '+' );
@@ -87,5 +87,4 @@
return Sanitizer::decodeCharReferences(
str_replace( $invisibles, $visibles, $text ) );
}
-
}
--
To view, visit https://gerrit.wikimedia.org/r/275535
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I745c24a47a16c504af47d74e485c2bbc4889283a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CharInsert
Gerrit-Branch: master
Gerrit-Owner: Siebrand <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits