Code Duplication    Length = 6-6 lines in 2 locations

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 .= '

devices/ms/Device_Vista7.php 1 location

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