Code Duplication    Length = 7-7 lines in 2 locations

include/functions.php 2 locations

@@ 55-61 (lines=7) @@
52
 */
53
function Smallworld_cleanup($text)
54
{
55
    if (is_array($text)) {
56
        foreach ($text as $key => $value) {
57
            $text[$key] = Smallworld_cleanup_string($value);
58
        }
59
    } else {
60
        $text = Smallworld_cleanup_string($text);
61
    }
62
    return $text;
63
}
64
@@ 85-91 (lines=7) @@
82
 */
83
function Smallworld_sanitize($text)
84
{
85
    if (is_array($text)) {
86
        foreach ($text as $key => $value) {
87
            $text[$key] = Smallworld_sanitize_string($value);
88
        }
89
    } else {
90
        $text = Smallworld_sanitize_string($text);
91
    }
92
    return $text;
93
}
94