Code Duplication    Length = 3-3 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3578-3580 (lines=3) @@
3575
    // UTF-16 (BE)
3576
    /** @noinspection PhpUsageOfSilenceOperatorInspection */
3577
    /** @noinspection SubStrUsedAsStrPosInspection */
3578
    if (substr($str, 0, 2) == @pack('CC', 0xfe, 0xff)) {
3579
      $str = substr($str, 2);
3580
    }
3581
3582
    // UTF-16 (LE)
3583
    /** @noinspection PhpUsageOfSilenceOperatorInspection */
@@ 3585-3587 (lines=3) @@
3582
    // UTF-16 (LE)
3583
    /** @noinspection PhpUsageOfSilenceOperatorInspection */
3584
    /** @noinspection SubStrUsedAsStrPosInspection */
3585
    if (substr($str, 0, 2) == @pack('CC', 0xff, 0xfe)) {
3586
      $str = substr($str, 2);
3587
    }
3588
3589
    return $str;
3590
  }