Code Duplication    Length = 3-3 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3534-3536 (lines=3) @@
3531
    // UTF-16 (BE)
3532
    /** @noinspection PhpUsageOfSilenceOperatorInspection */
3533
    /** @noinspection SubStrUsedAsStrPosInspection */
3534
    if (substr($str, 0, 2) == @pack('CC', 0xfe, 0xff)) {
3535
      $str = substr($str, 2);
3536
    }
3537
3538
    // UTF-16 (LE)
3539
    /** @noinspection PhpUsageOfSilenceOperatorInspection */
@@ 3541-3543 (lines=3) @@
3538
    // UTF-16 (LE)
3539
    /** @noinspection PhpUsageOfSilenceOperatorInspection */
3540
    /** @noinspection SubStrUsedAsStrPosInspection */
3541
    if (substr($str, 0, 2) == @pack('CC', 0xff, 0xfe)) {
3542
      $str = substr($str, 2);
3543
    }
3544
3545
    return $str;
3546
  }