Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 175-184 (lines=10) @@
172
    /**
173
     * @return string
174
     */
175
    public function getCourseDocumentRelativeWebPath()
176
    {
177
        $url = null;
178
        if ($this->allow()) {
179
            $directory = $this->getCourseDirectory();
180
            $url = api_get_path(REL_COURSE_PATH).$directory.'/document/';
181
        }
182
183
        return $url;
184
    }
185
186
187
    /**
@@ 190-199 (lines=10) @@
187
    /**
188
     * @return string
189
     */
190
    public function getCourseDocumentWebPath()
191
    {
192
        $url = null;
193
        if ($this->allow()) {
194
            $directory = $this->getCourseDirectory();
195
            $url = api_get_path(WEB_COURSE_PATH).$directory.'/document/';
196
        }
197
198
        return $url;
199
    }
200
201
    /**
202
     *