Code Duplication    Length = 7-7 lines in 3 locations

devices/ms/Device_Vista7.php 1 location

@@ 190-196 (lines=7) @@
187
<eapTls:ServerValidation>
188
<eapTls:DisableUserPromptForServerValidation>true</eapTls:DisableUserPromptForServerValidation>
189
<eapTls:ServerNames>' . $servers . '</eapTls:ServerNames>';
190
            if ($caArray) {
191
                foreach ($caArray as $certAuthority) {
192
                    if ($certAuthority['root']) {
193
                        $profileFileCont .= "<eapTls:TrustedRootCA>" . $certAuthority['sha1'] . "</eapTls:TrustedRootCA>\n";
194
                    }
195
                }
196
            }
197
            $profileFileCont .= '</eapTls:ServerValidation>
198
';
199
            if (isset($attr['eap-specific:tls_use_other_id']) && $attr['eap-specific:tls_use_other_id'][0] == 'on') {

devices/ms/Device_W8.php 1 location

@@ 145-151 (lines=7) @@
142
<eapTls:ServerValidation>
143
<eapTls:DisableUserPromptForServerValidation>true</eapTls:DisableUserPromptForServerValidation>
144
<eapTls:ServerNames>' . $servers . '</eapTls:ServerNames>';
145
            if ($caArray) {
146
                foreach ($caArray as $certAuthority) {
147
                    if ($certAuthority['root']) {
148
                        $profileFileCont .= "<eapTls:TrustedRootCA>" . $certAuthority['sha1'] . "</eapTls:TrustedRootCA>\n";
149
                    }
150
                }
151
            }
152
            $profileFileCont .= '</eapTls:ServerValidation>
153
';
154
            if (isset($attr['eap-specific:tls_use_other_id']) && $attr['eap-specific:tls_use_other_id'][0] == 'on') {

devices/ms/Device_W10.php 1 location

@@ 161-167 (lines=7) @@
158
<eapTls:ServerValidation>
159
<eapTls:DisableUserPromptForServerValidation>true</eapTls:DisableUserPromptForServerValidation>
160
<eapTls:ServerNames>' . $servers . '</eapTls:ServerNames>';
161
            if ($caArray) {
162
                foreach ($caArray as $certAuthority) {
163
                    if ($certAuthority['root']) {
164
                        $profileFileCont .= "<eapTls:TrustedRootCA>" . $certAuthority['sha1'] . "</eapTls:TrustedRootCA>\n";
165
                    }
166
                }
167
            }
168
            $profileFileCont .= '</eapTls:ServerValidation>
169
';
170
            if (isset($attr['eap-specific:tls_use_other_id']) && $attr['eap-specific:tls_use_other_id'][0] == 'on') {