Code Duplication    Length = 11-11 lines in 2 locations

code/control/LDAPDebugController.php 2 locations

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