Code Duplication    Length = 3-5 lines in 3 locations

src/controllers/SqlController.php 1 location

@@ 68-72 (lines=5) @@
65
        $this->printTitle($lang['strqueryresults']);
66
67
        // Set the schema search path
68
        if (isset($_REQUEST['search_path'])) {
69
            if ($data->setSearchPath(array_map('trim', explode(',', $_REQUEST['search_path']))) != 0) {
70
                return $this->printFooter();
71
            }
72
        }
73
74
        // May as well try to time the query
75
        if (function_exists('microtime')) {

src/controllers/DisplayController.php 1 location

@@ 179-183 (lines=5) @@
176
        }
177
178
        // Set the schema search path
179
        if (isset($_REQUEST['search_path'])) {
180
            if ($data->setSearchPath(array_map('trim', explode(',', $_REQUEST['search_path']))) != 0) {
181
                return;
182
            }
183
        }
184
185
        try {
186
            // Retrieve page from query.  $max_pages is returned by reference.

src/controllers/DataexportController.php 1 location

@@ 105-107 (lines=3) @@
102
            }
103
104
            // Set the schema search path
105
            if (isset($_REQUEST['search_path'])) {
106
                $data->setSearchPath(array_map('trim', explode(',', $_REQUEST['search_path'])));
107
            }
108
109
            // Set up the dump transaction
110
            $status = $data->beginDump();