Code Duplication    Length = 10-10 lines in 2 locations

src/Chamilo/CoreBundle/Component/Editor/Driver/CourseDriver.php 2 locations

@@ 192-201 (lines=10) @@
189
    /**
190
     * @return string
191
     */
192
    public function getCourseDocumentRelativeWebPath()
193
    {
194
        $url = null;
195
        if ($this->allow()) {
196
            $directory = $this->getCourseDirectory();
197
            $url = api_get_path(REL_COURSE_PATH).$directory.'/document/';
198
        }
199
200
        return $url;
201
    }
202
203
204
    /**
@@ 207-216 (lines=10) @@
204
    /**
205
     * @return string
206
     */
207
    public function getCourseDocumentWebPath()
208
    {
209
        $url = null;
210
        if ($this->allow()) {
211
            $directory = $this->getCourseDirectory();
212
            $url = api_get_path(WEB_COURSE_PATH).$directory.'/document/';
213
        }
214
215
        return $url;
216
    }
217
218
    /**
219
     *