Code Duplication    Length = 4-4 lines in 2 locations

devices/ms/Device_W8.php 1 location

@@ 109-112 (lines=4) @@
106
            return;
107
        }
108
        $useAnon = $attr['internal:use_anon_outer'] [0];
109
        if ($useAnon) {
110
            $outerUser = $attr['internal:anon_local_value'][0];
111
            $outerId = $outerUser . '@' . $attr['internal:realm'][0];
112
        }
113
//   $servers = preg_quote(implode(';',$attr['eap:server_name']));
114
        $servers = implode(';', $attr['eap:server_name']);
115

devices/ms/Device_W10.php 1 location

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