Code Duplication    Length = 14-15 lines in 2 locations

src/classes/Misc.php 2 locations

@@ 1698-1712 (lines=15) @@
1695
                ];
1696
                break;
1697
1698
            case 'aggregate':
1699
                $tabs = [
1700
                    'definition' => [
1701
                        'title'   => $lang['strdefinition'],
1702
                        'url'     => 'aggregates.php',
1703
                        'urlvars' => [
1704
                            'subject'  => 'aggregate',
1705
                            'aggrname' => Decorator::field('aggrname'),
1706
                            'aggrtype' => Decorator::field('aggrtype'),
1707
                            'action'   => 'properties',
1708
                        ],
1709
                        'icon'    => 'Definition',
1710
                    ],
1711
                ];
1712
                break;
1713
1714
            case 'role':
1715
                $tabs = [
@@ 1714-1727 (lines=14) @@
1711
                ];
1712
                break;
1713
1714
            case 'role':
1715
                $tabs = [
1716
                    'definition' => [
1717
                        'title'   => $lang['strdefinition'],
1718
                        'url'     => 'roles.php',
1719
                        'urlvars' => [
1720
                            'subject'  => 'role',
1721
                            'rolename' => Decorator::field('rolename'),
1722
                            'action'   => 'properties',
1723
                        ],
1724
                        'icon'    => 'Definition',
1725
                    ],
1726
                ];
1727
                break;
1728
1729
            case 'popup':
1730
                $tabs = [