Code Duplication    Length = 4-4 lines in 2 locations

devices/ms/Device_W8.php 1 location

@@ 106-109 (lines=4) @@
103
            throw new Exception("this method only allows TLS, PEAP, TTLS-PAP, TTLS-MSCHAPv2 or EAP-pwd");
104
        }
105
        $useAnon = $attr['internal:use_anon_outer'] [0];
106
        if ($useAnon) {
107
            $outerUser = $attr['internal:anon_local_value'][0];
108
            $outerId = $outerUser . '@' . $attr['internal:realm'][0];
109
        }
110
//   $servers = preg_quote(implode(';',$attr['eap:server_name']));
111
        $servers = implode(';', $attr['eap:server_name']);
112

devices/ms/Device_W10.php 1 location

@@ 118-121 (lines=4) @@
115
            \core\common\EAP::EAPTYPE_SILVERBULLET]), new Exception("prepareEapConfig called for an EAP type it cannot handle!"));
116
117
        $useAnon = $attr['internal:use_anon_outer'] [0];
118
        if ($useAnon) {
119
            $outerUser = $attr['internal:anon_local_value'][0];
120
            $outerId = $outerUser . '@' . $attr['internal:realm'][0];
121
        }
122
//   $servers = preg_quote(implode(';',$attr['eap:server_name']));
123
        $servers = implode(';', $attr['eap:server_name']);
124
        $caArray = $attr['internal:CAs'][0];