Code Duplication    Length = 3-3 lines in 3 locations

src/voku/helper/UTF8.php 3 locations

@@ 665-667 (lines=3) @@
662
  {
663
664
    // UTF-32 (BE)
665
    if (substr($str, 0, 4) == pack('CCCC', 0x00, 0x00, 0xfe, 0xff)) {
666
      $str = substr($str, 4);
667
    }
668
669
    // UTF-32 (LE)
670
    if (substr($str, 0, 4) == pack('CCCC', 0xff, 0xfe, 0x00, 0x00)) {
@@ 670-672 (lines=3) @@
667
    }
668
669
    // UTF-32 (LE)
670
    if (substr($str, 0, 4) == pack('CCCC', 0xff, 0xfe, 0x00, 0x00)) {
671
      $str = substr($str, 4);
672
    }
673
674
    // UTF-8
675
    if (substr($str, 0, 3) == pack('CCC', 0xef, 0xbb, 0xbf)) {
@@ 675-677 (lines=3) @@
672
    }
673
674
    // UTF-8
675
    if (substr($str, 0, 3) == pack('CCC', 0xef, 0xbb, 0xbf)) {
676
      $str = substr($str, 3);
677
    }
678
679
    // UTF-16 (BE)
680
    if (substr($str, 0, 2) == pack('CC', 0xfe, 0xff)) {