Code Duplication    Length = 5-5 lines in 2 locations

backend/controllers/TermController.php 2 locations

@@ 75-79 (lines=5) @@
72
                $term->count = 1;
73
                if ($term->save()) {
74
                    $termRelationship->term_id = $term->id;
75
                    if ($termRelationship->save()) {
76
                        $item = $item
77
                            . '<br />'
78
                            . Html::label(Html::checkbox('termIds[]', true, ['value' => $term->id]) . $term->name);
79
                    }
80
                }
81
            } elseif ($term->save()) {
82
                $item = $item
@@ 81-85 (lines=5) @@
78
                            . Html::label(Html::checkbox('termIds[]', true, ['value' => $term->id]) . $term->name);
79
                    }
80
                }
81
            } elseif ($term->save()) {
82
                $item = $item
83
                    . '<br />'
84
                    . Html::label(Html::checkbox('termIds[]', true, ['value' => $term->id]) . $term->name);
85
            }
86
        }
87
88
        return $item;