Code Duplication    Length = 3-3 lines in 2 locations

src/Chamilo/CoreBundle/Entity/Skill.php 2 locations

@@ 233-235 (lines=3) @@
230
    public function getWebIconPath($getSmall = false)
231
    {
232
        if ($getSmall) {
233
            if (empty($this->icon)) {
234
                return \Display::return_icon('badges-default.png', null, null, ICON_SIZE_BIG, null, true);
235
            }
236
237
            return api_get_path(WEB_UPLOAD_PATH) . 'badges/' . sha1($this->name) . '-small.png';
238
        }
@@ 240-242 (lines=3) @@
237
            return api_get_path(WEB_UPLOAD_PATH) . 'badges/' . sha1($this->name) . '-small.png';
238
        }
239
240
        if (empty($this->icon)) {
241
            return \Display::return_icon('badges-default.png', null, null, ICON_SIZE_HUGE, null, true);
242
        }
243
244
        return api_get_path(WEB_UPLOAD_PATH) . "badges/{$this->icon}";
245
    }