Code Duplication    Length = 6-6 lines in 2 locations

devices/ms/Device_Vista7.php 1 location

@@ 153-158 (lines=6) @@
150
<ServerSideCredential>
151
';
152
153
            foreach ($caArray as $ca) {
154
                $profileFileCont .= '<CA><format>PEM</format><cert-data>';
155
                $profileFileCont .= base64_encode($ca['der']);
156
                $profileFileCont .= '</cert-data></CA>
157
';
158
            }
159
            $profileFileCont .= "<ServerName>$servers</ServerName>\n";
160
161
            $profileFileCont .= '

devices/ms/Device_W10.php 1 location

@@ 263-268 (lines=6) @@
260
<ServerSideCredential>
261
';
262
263
                foreach ($caArray as $ca) {
264
                    $profileFileCont .= '<CA><format>PEM</format><cert-data>';
265
                    $profileFileCont .= base64_encode($ca['der']);
266
                    $profileFileCont .= '</cert-data></CA>
267
';
268
                }
269
                $profileFileCont .= "<ServerName>$servers</ServerName>\n";
270
271
                $profileFileCont .= '