Code Duplication    Length = 7-7 lines in 3 locations

src/Xtools/Project.php 3 locations

@@ 152-158 (lines=7) @@
149
     *
150
     * @return string
151
     */
152
    public function getArticlePath()
153
    {
154
        $metadata = $this->getMetadata();
155
        return isset($metadata['general']['articlePath'])
156
            ? $metadata['general']['articlePath']
157
            : '/wiki/$1';
158
    }
159
160
    /**
161
     * The URL path of the directory that contains index.php, with no trailing slash.
@@ 168-174 (lines=7) @@
165
     *
166
     * @return string
167
     */
168
    public function getScriptPath()
169
    {
170
        $metadata = $this->getMetadata();
171
        return isset($metadata['general']['scriptPath'])
172
            ? $metadata['general']['scriptPath']
173
            : '/w';
174
    }
175
176
    /**
177
     * The URL path to index.php
@@ 225-231 (lines=7) @@
222
     * Get the title of the Main Page.
223
     * @return string
224
     */
225
    public function getMainPage()
226
    {
227
        $metadata = $this->getMetadata();
228
        return isset($metadata['general']['mainpage'])
229
            ? $metadata['general']['mainpage']
230
            : '';
231
    }
232
233
    /**
234
     * Get a list of users who are in one of the given user groups.