Code Duplication    Length = 11-11 lines in 2 locations

htdocs/modules/system/class/module.php 2 locations

@@ 378-388 (lines=11) @@
375
                        $mperm->setVar('gperm_itemid', $module->getVar('mid'));
376
                        $mperm->setVar('gperm_name', 'module_admin');
377
                        $mperm->setVar('gperm_modid', 1);
378
                        if (!$gperm_handler->insert($mperm)) {
379
                            $this->trace[]['sub'] = '<span class="red">' . sprintf(
380
                                SystemLocale::EF_GROUP_ID_ADMIN_ACCESS_RIGHT_NOT_ADDED,
381
                                '<strong>' . $mygroup . '</strong>'
382
                            ) . '</span>';
383
                        } else {
384
                            $this->trace[]['sub'] = sprintf(
385
                                SystemLocale::SF_GROUP_ID_ADMIN_ACCESS_RIGHT_ADDED,
386
                                '<strong>' . $mygroup . '</strong>'
387
                            );
388
                        }
389
                        unset($mperm);
390
                    }
391
                    $mperm = $gperm_handler->create();
@@ 396-406 (lines=11) @@
393
                    $mperm->setVar('gperm_itemid', $module->getVar('mid'));
394
                    $mperm->setVar('gperm_name', 'module_read');
395
                    $mperm->setVar('gperm_modid', 1);
396
                    if (!$gperm_handler->insert($mperm)) {
397
                        $this->trace[]['sub'] = '<span class="red">' . sprintf(
398
                            SystemLocale::EF_GROUP_ID_USER_ACCESS_RIGHT_NOT_ADDED,
399
                            '<strong>' . $mygroup . '</strong>'
400
                        ) . '</span>';
401
                    } else {
402
                        $this->trace[]['sub'] = sprintf(
403
                            SystemLocale::SF_GROUP_ID_USER_ACCESS_RIGHT_ADDED,
404
                            '<strong>' . $mygroup . '</strong>'
405
                        );
406
                    }
407
                    unset($mperm);
408
                    foreach ($blocks as $blc) {
409
                        $bperm = $gperm_handler->create();