Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3861-3867 (lines=7) @@
3858
      return array();
3859
    }
3860
3861
    if (ctype_digit((string)$var1)) {
3862
      $start = (int)$var1;
3863
    } elseif (ctype_xdigit($var1)) {
3864
      $start = (int)self::hex_to_int($var1);
3865
    } else {
3866
      $start = self::ord($var1);
3867
    }
3868
3869
    if (!$start) {
3870
      return array();
@@ 3873-3879 (lines=7) @@
3870
      return array();
3871
    }
3872
3873
    if (ctype_digit((string)$var2)) {
3874
      $end = (int)$var2;
3875
    } elseif (ctype_xdigit($var2)) {
3876
      $end = (int)self::hex_to_int($var2);
3877
    } else {
3878
      $end = self::ord($var2);
3879
    }
3880
3881
    if (!$end) {
3882
      return array();