Code Duplication    Length = 3-4 lines in 3 locations

devices/ms/Device_Vista7.php 1 location

@@ 470-472 (lines=3) @@
467
!endif
468
';
469
470
        if (isset($this->attributes['media:wired'][0]) && $attr['media:wired'][0] == 'on') {
471
            $fcontents .= '!define WIRED
472
';
473
        }
474
        $fcontents .= '!define PROVIDERID "urn:UUID:' . $this->deviceUUID . '"
475
';

devices/ms/Device_W8.php 1 location

@@ 432-434 (lines=3) @@
429
!endif
430
';
431
432
        if (isset($this->attributes['media:wired'][0]) && $attr['media:wired'][0] == 'on') {
433
            $fcontents .= '!define WIRED
434
        ';
435
        }
436
437
        $fileHandle = fopen('main.nsh', 'w');

devices/ms/Device_W10.php 1 location

@@ 496-499 (lines=4) @@
493
!endif
494
';
495
496
        if (isset($this->attributes['media:wired'][0]) && $attr['media:wired'][0] == 'on') {
497
            $fcontents .= '!define WIRED
498
        ';
499
        }
500
        $fcontents .= '!define PROVIDERID "urn:UUID:' . $this->deviceUUID . '"
501
';
502
        $fileHandle = fopen('main.nsh', 'w');