src/Doctrine/Tracy/Panel.php
private function renderPanelQueries(): string
	{
		if (empty($this->queries)) {
			return '';
		}

		$s = '';
		foreach ($this->queries as $query) {
			[$sql, $params, $time, $types, $source] = $query;
			$q = SqlDumper::dump($sql, $params);
			$q .= $source ? Helpers::editorLink($source[0], $source[1]) : '';
			$s .= '<tr><td>' . sprintf('%0.3f', $time * 1000) . '</td><td class="nette-Doctrine2Panel-sql">' . $q . '</td></tr>';
		}

		return '<table><tr><th>ms</th><th>SQL Statement</th></tr>' . $s . '</table>';
	}
private function renderPanelQueries(): string
	{
		if (empty($this->queries)) {
			return '';
		}

		$s = '';
		foreach ($this->queries as $query) {
			[$sql, $params, $time, $types, $source] = $query;
			$q = SqlDumper::dump($sql, $params);
			$q .= $source ? Helpers::editorLink($source[0], $source[1]) : '';
			$s .= '<tr><td>' . sprintf('%0.3f', $time * 1000) . '</td><td class="nette-Doctrine2Panel-sql">' . $q . '</td></tr>';
		}

		return '<table><tr><th>ms</th><th>SQL Statement</th></tr>' . $s . '</table>';
	}
private function renderPanelQueries ( ) : string { if ( empty ( $ this -> queries ) ) { return '' ; } $ s = '' ; foreach ( $ this -> queries as $ query ) { [ $ sql , $ params , $ time , $ types , $ source ] = $ query ; $ q = SqlDumper :: dump ( $ sql , $ params ) ; $ q .= $ source ? Helpers :: editorLink ( $ source [ 0 ] , $ source [ 1 ] ) : '' ; $ s .= '<tr><td>' . sprintf ( '%0.3f' , $ time * 1000 ) . '</td><td class="nette-Doctrine2Panel-sql">' . $ q . '</td></tr>' ; } return '<table><tr><th>ms</th><th>SQL Statement</th></tr>' . $ s . '</table>' ; }
Renders SQL queries.

@return string
Renders SQL queries .