logger->getQueries(); $count = count($queries); $totalTime = $this->logger->getTotalTime(); $iconNoQuery = ''; $iconQuery = ''; return '' . '' . ($count > 0 ? $iconQuery : $iconNoQuery) . ' ' . ($count > 0 ? $count . ' q' : '') . ($totalTime > 0 ? ' / ' . number_format($totalTime * 1000, 1, '.', ' ') . ' ms' : '') . '' . ''; } /** * HTML for panel */ public function getPanel(): string { ob_start(); $parameters = $this->logger->getParams(); $queries = $this->logger->getQueries(); // phpcs:ignore $queriesNum = count($queries); // phpcs:ignore $totalTime = $this->logger->getTotalTime(); require __DIR__ . '/templates/panel.phtml'; return (string) ob_get_clean(); } }