Code Duplication    Length = 8-10 lines in 2 locations

devices/linux/Device_Linux.php 2 locations

@@ 189-196 (lines=8) @@
186
    }
187
188
    
189
    private function mkSsidList() {
190
        $ssids = $this->attributes['internal:SSID'];
191
        $outArray = [];
192
        foreach ($ssids as $ssid => $cipher) {
193
            $outArray[] = "'$ssid'";
194
        }
195
        return '[' . implode(', ', $outArray) . ']';
196
    }
197
    
198
    private function mkDelSsidList() {
199
        $outArray = [];
@@ 198-207 (lines=10) @@
195
        return '[' . implode(', ', $outArray) . ']';
196
    }
197
    
198
    private function mkDelSsidList() {
199
        $outArray = [];
200
        $delSSIDs = $this->attributes['internal:remove_SSID'];
201
        foreach ($delSSIDs as $ssid => $cipher) {
202
            if ($cipher == 'DEL') {
203
                $outArray[] = "'$ssid'";
204
            }
205
        }
206
        return '[' . implode(', ', $outArray) . ']';
207
    }
208
    
209
    private function mkCAfile(){
210
        $out = '';