Code Duplication    Length = 5-7 lines in 2 locations

includes/libraries/protect/AntiXSS/UTF8.php 2 locations

@@ 1296-1300 (lines=5) @@
1293
   */
1294
  public static function decimal_to_chr($int)
1295
  {
1296
    if (Bootup::is_php('5.4') === true) {
1297
      $flags = ENT_QUOTES | ENT_HTML5;
1298
    } else {
1299
      $flags = ENT_QUOTES;
1300
    }
1301
1302
    return self::html_entity_decode('&#' . $int . ';', $flags);
1303
  }
@@ 2263-2269 (lines=7) @@
2260
      $encoding = self::normalize_encoding($encoding, 'UTF-8');
2261
    }
2262
2263
    if ($flags === null) {
2264
      if (Bootup::is_php('5.4') === true) {
2265
        $flags = ENT_QUOTES | ENT_HTML5;
2266
      } else {
2267
        $flags = ENT_QUOTES;
2268
      }
2269
    }
2270
2271
    do {
2272
      $str_compare = $str;