Code Duplication    Length = 25-25 lines in 2 locations

src/classes/Misc.php 2 locations

@@ 1672-1696 (lines=25) @@
1669
                ];
1670
                break;
1671
1672
            case 'function':
1673
                $tabs = [
1674
                    'definition' => [
1675
                        'title'   => $lang['strdefinition'],
1676
                        'url'     => 'functions.php',
1677
                        'urlvars' => [
1678
                            'subject'      => 'function',
1679
                            'function'     => Decorator::field('function'),
1680
                            'function_oid' => Decorator::field('function_oid'),
1681
                            'action'       => 'properties',
1682
                        ],
1683
                        'icon'    => 'Definition',
1684
                    ],
1685
                    'privileges' => [
1686
                        'title'   => $lang['strprivileges'],
1687
                        'url'     => 'privileges.php',
1688
                        'urlvars' => [
1689
                            'subject'      => 'function',
1690
                            'function'     => Decorator::field('function'),
1691
                            'function_oid' => Decorator::field('function_oid'),
1692
                        ],
1693
                        'icon'    => 'Privileges',
1694
                    ],
1695
                ];
1696
                break;
1697
1698
            case 'aggregate':
1699
                $tabs = [
@@ 1747-1771 (lines=25) @@
1744
                ];
1745
                break;
1746
1747
            case 'column':
1748
                $tabs = [
1749
                    'properties' => [
1750
                        'title'   => $lang['strcolprop'],
1751
                        'url'     => 'colproperties.php',
1752
                        'urlvars' => [
1753
                            'subject' => 'column',
1754
                            'table'   => Decorator::field('table'),
1755
                            'column'  => Decorator::field('column'),
1756
                        ],
1757
                        'icon'    => 'Column',
1758
                    ],
1759
                    'privileges' => [
1760
                        'title'   => $lang['strprivileges'],
1761
                        'url'     => 'privileges.php',
1762
                        'urlvars' => [
1763
                            'subject' => 'column',
1764
                            'table'   => Decorator::field('table'),
1765
                            'column'  => Decorator::field('column'),
1766
                        ],
1767
                        'help'    => 'pg.privilege',
1768
                        'icon'    => 'Privileges',
1769
                    ],
1770
                ];
1771
                break;
1772
1773
            case 'fulltext':
1774
                $tabs = [