Code Duplication    Length = 8-8 lines in 2 locations

class/references_articles.php 2 locations

@@ 239-246 (lines=8) @@
236
     *
237
     * @return string    L'url du fichier attaché sinon une chaine vide
238
     */
239
    public function getAttachmentUrl()
240
    {
241
        if (xoops_trim($this->getVar('article_attached_file')) != '' && $this->attachmentExists()) {
242
            return references_utils::getModuleOption('attached_url') . '/' . $this->getVar('article_attached_file');
243
        } else {
244
            return '';
245
        }
246
    }
247
248
    /**
249
     * Retourne le chemin du fichier attaché
@@ 253-260 (lines=8) @@
250
     *
251
     * @return string    Le chemin du fichier attaché sinon une chaine vide
252
     */
253
    public function getAttachmentPath()
254
    {
255
        if (xoops_trim($this->getVar('article_attached_file')) != '' && $this->attachmentExists()) {
256
            return references_utils::getModuleOption('attached_path') . DIRECTORY_SEPARATOR . $this->getVar('article_attached_file');
257
        } else {
258
            return '';
259
        }
260
    }
261
262
    /**
263
     * Supprime le fichier attaché à un article