Code Duplication    Length = 8-8 lines in 2 locations

class/SmallWorldDB.php 1 location

@@ 45-52 (lines=8) @@
42
        }
43
        $start = 0;
44
        $end   = count($employer) - 1;
45
        while ($start <= $end) {
46
            $msg[$start]['employer']    = $employer[$start];
47
            $msg[$start]['position']    = $position[$start];
48
            $msg[$start]['jobstart']    = $jobstart[$start];
49
            $msg[$start]['jobstop']     = $jobstop[$start];
50
            $msg[$start]['description'] = $description[$start];
51
            ++$start;
52
        }
53
        return $msg;
54
    }
55

class/SwDatabase.php 1 location

@@ 58-65 (lines=8) @@
55
        }
56
        $start = 0;
57
        $end   = count($employer) - 1;
58
        while ($start <= $end) {
59
            $msg[$start]['employer']    = $employer[$start];
60
            $msg[$start]['position']    = $position[$start];
61
            $msg[$start]['jobstart']    = $jobstart[$start];
62
            $msg[$start]['jobstop']     = $jobstop[$start];
63
            $msg[$start]['description'] = $description[$start];
64
            ++$start;
65
        }
66
67
        return $msg;
68
    }