Code Duplication    Length = 6-6 lines in 3 locations

devices/ms/Device_W8.php 1 location

@@ 151-156 (lines=6) @@
148
            }
149
            $profileFileCont .= '</eapTls:ServerValidation>
150
';
151
            if (isset($attr['eap-specific:tls_use_other_id']) && $attr['eap-specific:tls_use_other_id'][0] == 'on') {
152
                $profileFileCont .= '<eapTls:DifferentUsername>true</eapTls:DifferentUsername>';
153
                $this->tlsOtherUsername = 1;
154
            } else {
155
                $profileFileCont .= '<eapTls:DifferentUsername>false</eapTls:DifferentUsername>';
156
            }
157
            $profileFileCont .= '
158
</eapTls:EapType>
159
</baseEap:Eap>

devices/ms/Device_Vista7.php 1 location

@@ 200-205 (lines=6) @@
197
            }
198
            $profileFileCont .= '</eapTls:ServerValidation>
199
';
200
            if (isset($attr['eap-specific:tls_use_other_id']) && $attr['eap-specific:tls_use_other_id'][0] == 'on') {
201
                $profileFileCont .= '<eapTls:DifferentUsername>true</eapTls:DifferentUsername>';
202
                $this->tlsOtherUsername = 1;
203
            } else {
204
                $profileFileCont .= '<eapTls:DifferentUsername>false</eapTls:DifferentUsername>';
205
            }
206
            $profileFileCont .= '
207
</eapTls:EapType>
208
</baseEap:Eap>

devices/ms/Device_W10.php 1 location

@@ 169-174 (lines=6) @@
166
            }
167
            $profileFileCont .= '</eapTls:ServerValidation>
168
';
169
            if (isset($attr['eap-specific:tls_use_other_id']) && $attr['eap-specific:tls_use_other_id'][0] == 'on') {
170
                $profileFileCont .= '<eapTls:DifferentUsername>true</eapTls:DifferentUsername>';
171
                $this->tlsOtherUsername = 1;
172
            } else {
173
                $profileFileCont .= '<eapTls:DifferentUsername>false</eapTls:DifferentUsername>';
174
            }
175
            $profileFileCont .= '
176
</eapTls:EapType>
177
</baseEap:Eap>