Code Duplication    Length = 11-11 lines in 2 locations

src/Control/LDAPDebugController.php 2 locations

@@ 135-145 (lines=11) @@
132
        return LDAPGroupMapping::get();
133
    }
134
135
    public function Nodes()
136
    {
137
        $groups = $this->ldapService->getNodes(false);
138
        $list = new ArrayList();
139
        foreach ($groups as $record) {
140
            $list->push(new ArrayData([
141
                'DN' => $record['dn']
142
            ]));
143
        }
144
        return $list;
145
    }
146
147
    public function Groups()
148
    {
@@ 147-157 (lines=11) @@
144
        return $list;
145
    }
146
147
    public function Groups()
148
    {
149
        $groups = $this->ldapService->getGroups(false);
150
        $list = new ArrayList();
151
        foreach ($groups as $record) {
152
            $list->push(new ArrayData([
153
                'DN' => $record['dn']
154
            ]));
155
        }
156
        return $list;
157
    }
158
159
    public function Users()
160
    {