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_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) . '"

devices/ms/Device_W10.php 1 location

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