Code Duplication    Length = 6-6 lines in 2 locations

class/SmallWorldDB.php 1 location

@@ 102-107 (lines=6) @@
99
        }
100
        $start = 0;
101
        $end   = count($screenname_type) - 1;
102
        while ($start <= $end) {
103
            $msg[$start]['screenname']      = $screenname_type[$start];
104
            $msg[$start]['screenname_type'] = $arr06[$screenname[$start]];
105
            $msg[$start]['link']            = "<span class='smallworld_website'>" . Smallworld_sociallinks($screenname[$start], $msg[$start]['screenname']);
106
            ++$start;
107
        }
108
        return $msg;
109
    }
110

class/SwDatabase.php 1 location

@@ 137-142 (lines=6) @@
134
        */
135
        $start = 0;
136
        $end   = count($screenname_type);
137
        while ($start < $end) {
138
            $msg[$start]['screenname']      = $screenname_type[$start];
139
            $msg[$start]['screenname_type'] = $arr06[$screenname[$start]];
140
            $msg[$start]['link']            = "<span class='smallworld_website'>" . smallworld_sociallinks($screenname[$start], $msg[$start]['screenname']);
141
            ++$start;
142
        }
143
144
        return $msg;
145
    }