Code Duplication    Length = 7-9 lines in 3 locations

devices/ms/Device_W8_10.php 3 locations

@@ 236-244 (lines=9) @@
233
        $profileFileCont .= '</Phase2Authentication>
234
<Phase1Identity>
235
';
236
        if ($this->useAnon) {
237
            $profileFileCont .= '<IdentityPrivacy>true</IdentityPrivacy>
238
';
239
            $profileFileCont .= '<AnonymousIdentity>' . $this->outerId . '</AnonymousIdentity>
240
                ';
241
        } else {
242
            $profileFileCont .= '<IdentityPrivacy>false</IdentityPrivacy>
243
';
244
        }
245
        $profileFileCont .= '</Phase1Identity>
246
</EapTtls>
247
</Config>
@@ 267-273 (lines=7) @@
264
<ClientSideCredential>
265
<allow-save>true</allow-save>
266
';
267
        if ($this->useAnon) {
268
            if ($this->outerUser == '') {
269
                $profileFileCont .= '<AnonymousIdentity>@</AnonymousIdentity>';
270
            } else {
271
                $profileFileCont .= '<AnonymousIdentity>' . $this->outerId . '</AnonymousIdentity>';
272
            }
273
        }
274
        $profileFileCont .= '</ClientSideCredential>
275
';
276
        $profileFileCont .= $this->glTtlsServerValidation();
@@ 318-324 (lines=7) @@
315
<IdentityPrivacy xmlns="http://www.microsoft.com/provisioning/MsPeapConnectionPropertiesV2">
316
<EnableIdentityPrivacy>true</EnableIdentityPrivacy>
317
';
318
            if ($this->outerUser == '') {
319
                $profileFileCont .= '<AnonymousUserName/>
320
';
321
            } else {
322
                $profileFileCont .= '<AnonymousUserName>' . $this->outerUser . '</AnonymousUserName>
323
                ';
324
            }
325
            $profileFileCont .= '</IdentityPrivacy>
326
</PeapExtensions>
327
';