Code Duplication    Length = 9-9 lines in 2 locations

class/file.php 2 locations

@@ 331-339 (lines=9) @@
328
    /**
329
     * @return string
330
     */
331
    public function getFileUrl()
332
    {
333
        $hModule            = xoops_getHandler('module');
334
        $hModConfig         = xoops_getHandler('config');
335
        $smartPartnerModule =& $hModule->getByDirname('smartpartner');
336
        $smartPartnerConfig = &$hModConfig->getConfigsByCat(0, $smartPartnerModule->getVar('mid'));
337
338
        return smartpartner_getUploadDir(false) . $this->filename();
339
    }
340
341
    /**
342
     * @return string
@@ 344-352 (lines=9) @@
341
    /**
342
     * @return string
343
     */
344
    public function getFilePath()
345
    {
346
        $hModule            = xoops_getHandler('module');
347
        $hModConfig         = xoops_getHandler('config');
348
        $smartPartnerModule =& $hModule->getByDirname('smartpartner');
349
        $smartPartnerConfig = &$hModConfig->getConfigsByCat(0, $smartPartnerModule->getVar('mid'));
350
351
        return smartpartner_getUploadDir() . $this->filename();
352
    }
353
354
    /**
355
     * @return string