Code Duplication    Length = 7-7 lines in 2 locations

devices/ms/Device_W8_10.php 2 locations

@@ 272-278 (lines=7) @@
269
<ClientSideCredential>
270
<allow-save>true</allow-save>
271
';
272
        if ($this->useAnon) {
273
            if ($this->outerUser == '') {
274
                $profileFileCont .= '<AnonymousIdentity>@</AnonymousIdentity>';
275
            } else {
276
                $profileFileCont .= '<AnonymousIdentity>' . $this->outerId . '</AnonymousIdentity>';
277
            }
278
        }
279
        $profileFileCont .= '</ClientSideCredential>
280
';
281
        $profileFileCont .= $this->glTtlsServerValidation();
@@ 323-329 (lines=7) @@
320
<IdentityPrivacy xmlns="http://www.microsoft.com/provisioning/MsPeapConnectionPropertiesV2">
321
<EnableIdentityPrivacy>true</EnableIdentityPrivacy>
322
';
323
            if ($this->outerUser == '') {
324
                $profileFileCont .= '<AnonymousUserName/>
325
';
326
            } else {
327
                $profileFileCont .= '<AnonymousUserName>' . $this->outerUser . '</AnonymousUserName>
328
                ';
329
            }
330
            $profileFileCont .= '</IdentityPrivacy>
331
</PeapExtensions>
332
';