Code Duplication    Length = 11-11 lines in 2 locations

htdocs/util2/geodb/make_searchindex.php 1 location

@@ 51-61 (lines=11) @@
48
}
49
mysql_free_result($rs);
50
51
function nonAlpha($str)
52
{
53
    $strLength = mb_strlen($str);
54
    for ($i = 0; $i < $strLength; $i ++) {
55
        if (!((ord(mb_substr($str, $i, 1)) >= ord('a')) && (ord(mb_substr($str, $i, 1)) <= ord('z')))) {
56
            return true;
57
        }
58
    }
59
60
    return false;
61
}
62

htdocs/util2/gns/mksearchindex.php 1 location

@@ 60-70 (lines=11) @@
57
mysql_free_result($rs);
58
59
60
function nonAlpha($str)
61
{
62
    $strLength = mb_strlen($str);
63
    for ($i = 0; $i < $strLength; $i ++) {
64
        if (!((ord(mb_substr($str, $i, 1)) >= ord('a')) && (ord(mb_substr($str, $i, 1)) <= ord('z')))) {
65
            return true;
66
        }
67
    }
68
69
    return false;
70
}
71