Code Duplication    Length = 15-15 lines in 2 locations

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

@@ 3330-3344 (lines=15) @@
3327
   *
3328
   * @return string <p>The resulting string</p>
3329
   */
3330
  public static function lcfirst($str, $encoding = 'UTF-8', $cleanUtf8 = false)
3331
  {
3332
    $strPartTwo = self::substr($str, 1, null, $encoding, $cleanUtf8);
3333
    if ($strPartTwo === false) {
3334
      $strPartTwo = '';
3335
    }
3336
3337
    $strPartOne = self::strtolower(
3338
        (string)self::substr($str, 0, 1, $encoding, $cleanUtf8),
3339
        $encoding,
3340
        $cleanUtf8
3341
    );
3342
3343
    return $strPartOne . $strPartTwo;
3344
  }
3345
3346
  /**
3347
   * alias for "UTF8::lcfirst()"
@@ 7249-7263 (lines=15) @@
7246
   *
7247
   * @return string <p>The resulting string</p>
7248
   */
7249
  public static function ucfirst($str, $encoding = 'UTF-8', $cleanUtf8 = false)
7250
  {
7251
    $strPartTwo = self::substr($str, 1, null, $encoding, $cleanUtf8);
7252
    if ($strPartTwo === false) {
7253
      $strPartTwo = '';
7254
    }
7255
7256
    $strPartOne = self::strtoupper(
7257
        (string)self::substr($str, 0, 1, $encoding, $cleanUtf8),
7258
        $encoding,
7259
        $cleanUtf8
7260
    );
7261
7262
    return $strPartOne . $strPartTwo;
7263
  }
7264
7265
  /**
7266
   * alias for "UTF8::ucfirst()"