Code Duplication    Length = 3-3 lines in 3 locations

src/voku/helper/UTF8.php 3 locations

@@ 675-677 (lines=3) @@
672
  {
673
674
    // UTF-32 (BE)
675
    if (substr($str, 0, 4) == pack('CCCC', 0x00, 0x00, 0xfe, 0xff)) {
676
      $str = substr($str, 4);
677
    }
678
679
    // UTF-32 (LE)
680
    if (substr($str, 0, 4) == pack('CCCC', 0xff, 0xfe, 0x00, 0x00)) {
@@ 680-682 (lines=3) @@
677
    }
678
679
    // UTF-32 (LE)
680
    if (substr($str, 0, 4) == pack('CCCC', 0xff, 0xfe, 0x00, 0x00)) {
681
      $str = substr($str, 4);
682
    }
683
684
    // UTF-8
685
    if (substr($str, 0, 3) == pack('CCC', 0xef, 0xbb, 0xbf)) {
@@ 685-687 (lines=3) @@
682
    }
683
684
    // UTF-8
685
    if (substr($str, 0, 3) == pack('CCC', 0xef, 0xbb, 0xbf)) {
686
      $str = substr($str, 3);
687
    }
688
689
    // UTF-16 (BE)
690
    if (substr($str, 0, 2) == pack('CC', 0xfe, 0xff)) {