dbi->isSuperUser()) { $this->dbi->selectDb('mysql'); } if (! $this->response->isAjax()) { return; } $this->response->addJSON([ 'message' => $this->monitor->getJsonForQueryAnalyzer( $request->getParsedBodyParam('database', ''), $request->getParsedBodyParam('query', ''), ), ]); } }