Code Duplication    Length = 9-9 lines in 2 locations

class/oledrion_utils.php 1 location

@@ 1644-1652 (lines=9) @@
1641
     * @return mixed  If the copy succeed, the new filename else false
1642
     * @since 2.1
1643
     */
1644
    public function duplicateFile($path, $filename)
1645
    {
1646
        $newName = static::createUploadName($path, $filename);
1647
        if (copy($path . '/' . $filename, $path . '/' . $newName)) {
1648
            return $newName;
1649
        } else {
1650
            return false;
1651
        }
1652
    }
1653
1654
    /**
1655
     * Load a language file

class/utility.php 1 location

@@ 1787-1795 (lines=9) @@
1784
     * @return mixed  If the copy succeed, the new filename else false
1785
     * @since 2.1
1786
     */
1787
    public static function duplicateFile($path, $filename)
1788
    {
1789
        $newName = self::createUploadName($path, $filename);
1790
        if (copy($path . '/' . $filename, $path . '/' . $newName)) {
1791
            return $newName;
1792
        } else {
1793
            return false;
1794
        }
1795
    }
1796
1797
    /**
1798
     * Load a language file