Code Duplication    Length = 11-11 lines in 2 locations

code/control/LDAPDebugController.php 2 locations

@@ 116-126 (lines=11) @@
113
        return LDAPGroupMapping::get();
114
    }
115
116
    public function Nodes()
117
    {
118
        $groups = $this->ldapService->getNodes(false);
119
        $list = new ArrayList();
120
        foreach ($groups as $record) {
121
            $list->push(new ArrayData(array(
122
                'DN' => $record['dn']
123
            )));
124
        }
125
        return $list;
126
    }
127
128
    public function Groups()
129
    {
@@ 128-138 (lines=11) @@
125
        return $list;
126
    }
127
128
    public function Groups()
129
    {
130
        $groups = $this->ldapService->getGroups(false);
131
        $list = new ArrayList();
132
        foreach ($groups as $record) {
133
            $list->push(new ArrayData(array(
134
                'DN' => $record['dn']
135
            )));
136
        }
137
        return $list;
138
    }
139
140
    public function Users()
141
    {