Code Duplication    Length = 25-25 lines in 2 locations

src/classes/Misc.php 2 locations

@@ 1708-1732 (lines=25) @@
1705
                ];
1706
                break;
1707
1708
            case 'function':
1709
                $tabs = [
1710
                    'definition' => [
1711
                        'title'   => $lang['strdefinition'],
1712
                        'url'     => 'functions.php',
1713
                        'urlvars' => [
1714
                            'subject'      => 'function',
1715
                            'function'     => Decorator::field('function'),
1716
                            'function_oid' => Decorator::field('function_oid'),
1717
                            'action'       => 'properties',
1718
                        ],
1719
                        'icon'    => 'Definition',
1720
                    ],
1721
                    'privileges' => [
1722
                        'title'   => $lang['strprivileges'],
1723
                        'url'     => 'privileges.php',
1724
                        'urlvars' => [
1725
                            'subject'      => 'function',
1726
                            'function'     => Decorator::field('function'),
1727
                            'function_oid' => Decorator::field('function_oid'),
1728
                        ],
1729
                        'icon'    => 'Privileges',
1730
                    ],
1731
                ];
1732
                break;
1733
1734
            case 'aggregate':
1735
                $tabs = [
@@ 1783-1807 (lines=25) @@
1780
                ];
1781
                break;
1782
1783
            case 'column':
1784
                $tabs = [
1785
                    'properties' => [
1786
                        'title'   => $lang['strcolprop'],
1787
                        'url'     => 'colproperties.php',
1788
                        'urlvars' => [
1789
                            'subject' => 'column',
1790
                            'table'   => Decorator::field('table'),
1791
                            'column'  => Decorator::field('column'),
1792
                        ],
1793
                        'icon'    => 'Column',
1794
                    ],
1795
                    'privileges' => [
1796
                        'title'   => $lang['strprivileges'],
1797
                        'url'     => 'privileges.php',
1798
                        'urlvars' => [
1799
                            'subject' => 'column',
1800
                            'table'   => Decorator::field('table'),
1801
                            'column'  => Decorator::field('column'),
1802
                        ],
1803
                        'help'    => 'pg.privilege',
1804
                        'icon'    => 'Privileges',
1805
                    ],
1806
                ];
1807
                break;
1808
1809
            case 'fulltext':
1810
                $tabs = [