Toggle navigation
Hot Examples
FR
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Rechercher
Accueil
Barryvdh
Debugbar
DataCollector
QueryCollector
formatSql
Barryvdh\Debugbar\DataCollector\QueryCollector::formatSql PHP Méthode
QueryCollector Class Documentation
Afficher le fichier
Open project: barryvdh/laravel-debugbar
formatSql()
protected
méthode
Removes extra spaces at the beginning and end of the SQL query and its lines.
protected
formatSql
(
string
$sql
) :
string
$sql
string
Résultat
string
protected function formatSql($sql) { return trim(preg_replace("/\\s*\n\\s*/", "\n", $sql)); }
QueryCollector
__construct
addQuery
checkBindings
collect
escapeBindings
findSource
findViewFromHash
formatSql
getName
getTwigInfo
getWidgets
normalizeFilename
performQueryAnalysis
reset
setExplainSource
setFindSource
setRenderSqlWithParams
setShowHints