Code Duplication    Length = 3-9 lines in 2 locations

main/inc/lib/skill.lib.php 2 locations

@@ 1007-1009 (lines=3) @@
1004
1005
                // In order to paint all members of a family with the same color
1006
                if (empty($skill_id)) {
1007
                    if ($skill['parent_id'] == 1) {
1008
                        $family[$skill['id']] = $this->get_all_children($skill['id']);
1009
                    }
1010
                } else {
1011
                    if ($skill['parent_id'] == $skill_id) {
1012
                        $family[$skill['id']] = $this->get_all_children($skill['id']);
@@ 1010-1018 (lines=9) @@
1007
                    if ($skill['parent_id'] == 1) {
1008
                        $family[$skill['id']] = $this->get_all_children($skill['id']);
1009
                    }
1010
                } else {
1011
                    if ($skill['parent_id'] == $skill_id) {
1012
                        $family[$skill['id']] = $this->get_all_children($skill['id']);
1013
                    }
1014
1015
                    /*if ($skill_id == $skill['id']) {
1016
                        $skill['parent_id'] = 1;
1017
                    }*/
1018
                }
1019
1020
                if (!isset($skill['data']['real_parent_id'])) {
1021
                    $skill['data']['real_parent_id'] = $skill['parent_id'];