Code Duplication    Length = 4-5 lines in 2 locations

src/Controller/Admin/Shop/Itemgroupadmin.php 2 locations

@@ 153-157 (lines=5) @@
150
                    $querybuilder->execute();
151
                    $iLastInsertID = $this->dbal->lastInsertId();
152
                    \HaaseIT\HCSF\Helper::redirectToPage('/_admin/itemgroupadmin.html?action=editgroup&added&gid='.$iLastInsertID);
153
                } else {
154
                    $this->P->cb_customdata['err'] = $aErr;
155
                    $this->P->cb_customdata['showform'] = 'add';
156
                    $this->P->cb_customdata['group'] = $this->admin_prepareGroup('add');
157
                }
158
            } else {
159
                $this->P->cb_customdata['showform'] = 'add';
160
                $this->P->cb_customdata['group'] = $this->admin_prepareGroup('add');
@@ 158-161 (lines=4) @@
155
                    $this->P->cb_customdata['showform'] = 'add';
156
                    $this->P->cb_customdata['group'] = $this->admin_prepareGroup('add');
157
                }
158
            } else {
159
                $this->P->cb_customdata['showform'] = 'add';
160
                $this->P->cb_customdata['group'] = $this->admin_prepareGroup('add');
161
            }
162
        } else {
163
            if (!$return .= $this->admin_showItemgroups($this->admin_getItemgroups(''))) {
164
                $this->P->cb_customdata['err']['nogroupsavaliable'] = true;