diff --git a/src/Controller/ProfilerController.php b/src/Controller/ProfilerController.php index 8cf2ab45..b9cba948 100644 --- a/src/Controller/ProfilerController.php +++ b/src/Controller/ProfilerController.php @@ -87,9 +87,9 @@ public function explainAction($token, $connectionName, $query) /** * Renders the profiler panel for the given token. * - * @param string $token The profiler token + * @param string $token The profiler token * @param string $connectionName - * @param int $query + * @param int $query * * @return Response A Response instance */ @@ -97,14 +97,14 @@ public function runAction($token, $connectionName, $query) { $this->profiler->disable(); - $profile = $this->profiler->loadProfile($token); + $profile = $this->profiler->loadProfile($token); $collector = $profile->getCollector('db'); assert($collector instanceof DoctrineDataCollector); $queries = $collector->getQueries(); - if (!isset($queries[$connectionName][$query])) { + if (! isset($queries[$connectionName][$query])) { return new Response('This query does not exist.'); } @@ -112,9 +112,9 @@ public function runAction($token, $connectionName, $query) $connection = $this->registry->getConnection($connectionName); - $result = $connection->executeQuery($query["sql"]); + $result = $connection->executeQuery($query['sql']); - return new Response($this->twig->render('@Doctrine/Collector/run.html.twig', ["result" => $result->fetchAllAssociative()])); + return new Response($this->twig->render('@Doctrine/Collector/run.html.twig', ['result' => $result->fetchAllAssociative()])); } /**