Code Duplication    Length = 7-7 lines in 2 locations

LDAP/class.LDAPServer.php 1 location

@@ 173-179 (lines=7) @@
170
    private function fixChildArray(&$array, $key, &$entity)
171
    {
172
        $count = count($array);
173
        for($i = 0; $i < $count; $i++)
174
        {
175
            if(isset($array[$i]))
176
            {
177
                $entity[$key][$i] = $array[$i];
178
            }
179
        }
180
    }
181
182
    private function fixObject($object, &$delete = false)

Serialize/class.ExcelSerializer.php 1 location

@@ 19-25 (lines=7) @@
16
        {
17
            $count = count($array);
18
        }
19
        for($i = 0; $i < $count; $i++)
20
        {
21
            if(isset($array[$i]))
22
            {
23
                $sheat->setCellValueByColumnAndRow($i+1, $row, $array[$i]);
24
            }
25
        }
26
    }
27
28
    public function serializeData(&$type, $array)