Code Duplication    Length = 5-5 lines in 2 locations

src/controllers/PrivilegesController.php 2 locations

@@ 76-80 (lines=5) @@
73
        $this->printMsg($msg);
74
75
        // Determine whether object should be ref'd by name or oid.
76
        if (isset($_REQUEST[$_REQUEST['subject'] . '_oid'])) {
77
            $object = $_REQUEST[$_REQUEST['subject'] . '_oid'];
78
        } else {
79
            $object = $_REQUEST[$_REQUEST['subject']];
80
        }
81
82
        // Get the privileges on the object, given its type
83
        if ($_REQUEST['subject'] == 'column') {
@@ 380-384 (lines=5) @@
377
            echo "</form>\n";
378
        } else {
379
            // Determine whether object should be ref'd by name or oid.
380
            if (isset($_REQUEST[$_REQUEST['subject'] . '_oid'])) {
381
                $object = $_REQUEST[$_REQUEST['subject'] . '_oid'];
382
            } else {
383
                $object = $_REQUEST[$_REQUEST['subject']];
384
            }
385
386
            if (isset($_REQUEST['table'])) {
387
                $table = $_REQUEST['table'];