Code Duplication    Length = 4-4 lines in 2 locations

include/onupdate.php 1 location

@@ 98-101 (lines=4) @@
95
        }
96
        //copy blank.png files, if needed
97
        $file = PUBLISHER_ROOT_PATH . '/assets/images/blank.png';
98
        foreach (array_keys($copyFiles) as $i) {
99
            $dest = $copyFiles[$i] . '/blank.png';
100
            PublisherUtilities::copyFile($file, $dest);
101
        }
102
    }
103
104
    $gpermHandler = xoops_getHandler('groupperm');

include/oninstall.php 1 location

@@ 52-55 (lines=4) @@
49
    }
50
51
    $file = PUBLISHER_ROOT_PATH . '/assets/images/blank.png';
52
    foreach (array_keys($copyFiles) as $i) {
53
        $dest = $copyFiles[$i] . '/blank.png';
54
        PublisherUtilities::copyFile($file, $dest);
55
    }
56
57
    return true;
58