Code Duplication    Length = 3-3 lines in 3 locations

devices/ms/Device_Vista7.php 1 location

@@ 440-442 (lines=3) @@
437
438
        $fcontents .= '!define ' . $eapStr;
439
        $fcontents .= "\n" . '!define EXECLEVEL "' . $execLevel . '"';
440
        if ($attr['internal:profile_count'][0] > 1) {
441
            $fcontents .= "\n" . '!define USER_GROUP "' . $this->translateString(str_replace('"', '$\\"', $attr['profile:name'][0]), $this->codePage) . '"';
442
        }
443
        $fcontents .= '
444
Caption "' . $this->translateString(sprintf(WindowsCommon::sprint_nsi(_("%s installer for %s")), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], $attr['general:instname'][0]), $this->codePage) . '"
445
!define APPLICATION "' . $this->translateString(sprintf(WindowsCommon::sprint_nsi(_("%s installer for %s")), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], $attr['general:instname'][0]), $this->codePage) . '"

devices/ms/Device_W10.php 1 location

@@ 468-470 (lines=3) @@
465
        $fcontents .= '!define ' . $eapStr;
466
        $fcontents .= "\n" . '!define EXECLEVEL "' . $execLevel . '"';
467
468
        if ($attr['internal:profile_count'][0] > 1) {
469
            $fcontents .= "\n" . '!define USER_GROUP "' . $this->translateString(str_replace('"', '$\\"', $attr['profile:name'][0]), $this->codePage) . '"';
470
        }
471
        $fcontents .= '
472
Caption "' . $this->translateString(sprintf(WindowsCommon::sprint_nsi(_("%s installer for %s")), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], $attr['general:instname'][0]), $this->codePage) . '"
473
!define APPLICATION "' . $this->translateString(sprintf(WindowsCommon::sprint_nsi(_("%s installer for %s")), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], $attr['general:instname'][0]), $this->codePage) . '"

devices/ms/Device_W8.php 1 location

@@ 403-405 (lines=3) @@
400
        $fcontents .= '!define ' . $eapStr;
401
        $fcontents .= "\n" . '!define EXECLEVEL "' . $execLevel . '"';
402
403
        if ($attr['internal:profile_count'][0] > 1) {
404
            $fcontents .= "\n" . '!define USER_GROUP "' . $this->translateString(str_replace('"', '$\\"', $attr['profile:name'][0]), $this->codePage) . '"';
405
        }
406
        $fcontents .= '
407
Caption "' . $this->translateString(sprintf(WindowsCommon::sprint_nsi(_("%s installer for %s")), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], $attr['general:instname'][0]), $this->codePage) . '"
408
!define APPLICATION "' . $this->translateString(sprintf(WindowsCommon::sprint_nsi(_("%s installer for %s")), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], $attr['general:instname'][0]), $this->codePage) . '"