Code Duplication    Length = 7-7 lines in 2 locations

src/Xtools/Project.php 2 locations

@@ 68-74 (lines=7) @@
65
     *
66
     * @return string
67
     */
68
    public function getArticlePath()
69
    {
70
        $metadata = $this->getRepository()->getMetadata($this->getUrl());
71
        return isset($metadata['general']['articlePath'])
72
            ? $metadata['general']['articlePath']
73
            : '/wiki/';
74
    }
75
76
    /**
77
     * The URL path to index.php
@@ 83-89 (lines=7) @@
80
     *
81
     * @return string
82
     */
83
    public function getScriptPath()
84
    {
85
        $metadata = $this->getRepository()->getMetadata($this->getUrl());
86
        return isset($metadata['general']['scriptPath'])
87
            ? $metadata['general']['scriptPath']
88
            : '/w/index.php';
89
    }
90
91
    /**
92
     * Get this project's title, the human-language full title of the wiki (e.g. "English