Code Duplication    Length = 9-12 lines in 2 locations

devices/ms/Device_W8.php 1 location

@@ 436-444 (lines=9) @@
433
    private function copyFiles($eap) {
434
        $this->loggerInstance->debug(4, "copyFiles start\n");
435
        $this->copyBasicFiles();
436
        switch ($eap["OUTER"]) {
437
            case \core\common\EAP::PWD:
438
                $this->copyPwdFiles();
439
                break;
440
            default:
441
                if (!$this->translateFile('eap_w8.inc', 'cat.NSI', $this->codePage)) {
442
                    throw new Exception("Translating needed file eap_w8.inc failed!");
443
                }
444
        }
445
        $this->loggerInstance->debug(4, "copyFiles end\n");
446
        return TRUE;
447
    }

devices/ms/Device_Vista7.php 1 location

@@ 475-486 (lines=12) @@
472
        $this->loggerInstance->debug(4, "code_page=" . $this->codePage . "\n");
473
        $this->copyBasicFiles();
474
475
        switch ($eap["OUTER"]) {
476
            case \core\common\EAP::TTLS:
477
                $this->copyGeantLinkFiles();
478
                break;
479
            case \core\common\EAP::PWD:
480
                $this->copyPwdFiles();
481
                break;
482
            default:
483
                if (!$this->translateFile('peap_tls.inc', 'cat.NSI', $this->codePage)) {
484
                    throw new Exception("Translating needed file peap_tls.inc failed!");
485
                }
486
        }
487
        $this->loggerInstance->debug(4, "copyFiles end\n");
488
        return TRUE;
489
    }