Code Duplication    Length = 7-7 lines in 2 locations

class/xoopstopic.php 2 locations

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