Code Duplication    Length = 14-15 lines in 2 locations

src/classes/Misc.php 2 locations

@@ 1734-1748 (lines=15) @@
1731
                ];
1732
                break;
1733
1734
            case 'aggregate':
1735
                $tabs = [
1736
                    'definition' => [
1737
                        'title'   => $lang['strdefinition'],
1738
                        'url'     => 'aggregates.php',
1739
                        'urlvars' => [
1740
                            'subject'  => 'aggregate',
1741
                            'aggrname' => Decorator::field('aggrname'),
1742
                            'aggrtype' => Decorator::field('aggrtype'),
1743
                            'action'   => 'properties',
1744
                        ],
1745
                        'icon'    => 'Definition',
1746
                    ],
1747
                ];
1748
                break;
1749
1750
            case 'role':
1751
                $tabs = [
@@ 1750-1763 (lines=14) @@
1747
                ];
1748
                break;
1749
1750
            case 'role':
1751
                $tabs = [
1752
                    'definition' => [
1753
                        'title'   => $lang['strdefinition'],
1754
                        'url'     => 'roles.php',
1755
                        'urlvars' => [
1756
                            'subject'  => 'role',
1757
                            'rolename' => Decorator::field('rolename'),
1758
                            'action'   => 'properties',
1759
                        ],
1760
                        'icon'    => 'Definition',
1761
                    ],
1762
                ];
1763
                break;
1764
1765
            case 'popup':
1766
                $tabs = [