Code Duplication    Length = 6-6 lines in 3 locations

devices/ms/Device_Vista7.php 1 location

@@ 199-204 (lines=6) @@
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') {
200
                $profileFileCont .= '<eapTls:DifferentUsername>true</eapTls:DifferentUsername>';
201
                $this->tlsOtherUsername = 1;
202
            } else {
203
                $profileFileCont .= '<eapTls:DifferentUsername>false</eapTls:DifferentUsername>';
204
            }
205
            $profileFileCont .= '
206
</eapTls:EapType>
207
</baseEap:Eap>

devices/ms/Device_W8.php 1 location

@@ 154-159 (lines=6) @@
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') {
155
                $profileFileCont .= '<eapTls:DifferentUsername>true</eapTls:DifferentUsername>';
156
                $this->tlsOtherUsername = 1;
157
            } else {
158
                $profileFileCont .= '<eapTls:DifferentUsername>false</eapTls:DifferentUsername>';
159
            }
160
            $profileFileCont .= '
161
</eapTls:EapType>
162
</baseEap:Eap>

devices/ms/Device_W10.php 1 location

@@ 170-175 (lines=6) @@
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') {
171
                $profileFileCont .= '<eapTls:DifferentUsername>true</eapTls:DifferentUsername>';
172
                $this->tlsOtherUsername = 1;
173
            } else {
174
                $profileFileCont .= '<eapTls:DifferentUsername>false</eapTls:DifferentUsername>';
175
            }
176
            $profileFileCont .= '
177
</eapTls:EapType>
178
</baseEap:Eap>