Code Duplication    Length = 3-3 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 690-692 (lines=3) @@
687
    }
688
689
    // UTF-16 (BE)
690
    if (substr($str, 0, 2) == pack('CC', 0xfe, 0xff)) {
691
      $str = substr($str, 2);
692
    }
693
694
    // UTF-16 (LE)
695
    if (substr($str, 0, 2) == pack('CC', 0xff, 0xfe)) {
@@ 695-697 (lines=3) @@
692
    }
693
694
    // UTF-16 (LE)
695
    if (substr($str, 0, 2) == pack('CC', 0xff, 0xfe)) {
696
      $str = substr($str, 2);
697
    }
698
699
    return $str;
700
  }