Code Duplication    Length = 7-7 lines in 2 locations

class/xoopstopic.php 2 locations

@@ 359-365 (lines=7) @@
356
     *
357
     * @return mixed
358
     */
359
    public function getNiceTopicPathFromId($funcURL)
360
    {
361
        $xt  = new MyXoopsObjectTree($this->table, 'topic_id', 'topic_pid');
362
        $ret = $xt->getNicePathFromId($this->topic_id, 'topic_title', $funcURL);
363
364
        return $ret;
365
    }
366
367
    /**
368
     * @return mixed
@@ 370-376 (lines=7) @@
367
    /**
368
     * @return mixed
369
     */
370
    public function getAllChildTopicsId()
371
    {
372
        $xt  = new MyXoopsObjectTree($this->table, 'topic_id', 'topic_pid');
373
        $ret = $xt->getAllChildId($this->topic_id, 'topic_title');
374
375
        return $ret;
376
    }
377
378
    /**
379
     * @return array