jenkins-bot has submitted this change and it was merged.

Change subject: Use type-safe compare
......................................................................


Use type-safe compare

Change-Id: I745c24a47a16c504af47d74e485c2bbc4889283a
---
M CharInsert.body.php
1 file changed, 1 insertion(+), 2 deletions(-)

Approvals:
  Nikerabbit: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/CharInsert.body.php b/CharInsert.body.php
index ef0d622..703cfb8 100644
--- a/CharInsert.body.php
+++ b/CharInsert.body.php
@@ -38,7 +38,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( '+' );
@@ -79,5 +79,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: merged
Gerrit-Change-Id: I745c24a47a16c504af47d74e485c2bbc4889283a
Gerrit-PatchSet: 4
Gerrit-Project: mediawiki/extensions/CharInsert
Gerrit-Branch: master
Gerrit-Owner: Siebrand <[email protected]>
Gerrit-Reviewer: Nikerabbit <[email protected]>
Gerrit-Reviewer: Thiemo Mättig (WMDE) <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to