Code Duplication    Length = 6-6 lines in 2 locations

manager/includes/src/Legacy/ManagerApi.php 2 locations

@@ 255-260 (lines=6) @@
252
        $_ = array();
253
        $check_files = trim($check_files);
254
        $check_files = explode("\n", $check_files);
255
        foreach ($check_files as $file) {
256
            $file = trim($file);
257
            $file = MODX_BASE_PATH . $file;
258
            if (!is_file($file)) {
259
                continue;
260
            }
261
            $_[$file] = md5_file($file);
262
        }
263
@@ 278-283 (lines=6) @@
275
        $check_files = trim($check_files);
276
        $check_files = explode("\n", $check_files);
277
        $checksum = unserialize($checksum);
278
        foreach ($check_files as $file) {
279
            $file = trim($file);
280
            $filePath = MODX_BASE_PATH . $file;
281
            if (!is_file($filePath)) {
282
                continue;
283
            }
284
            if (md5_file($filePath) != $checksum[$filePath]) {
285
                $_[] = $file;
286
            }