src/DebugBar/Storage/PdoStorage.php
protected function getSqlQuery($name, array $vars = array())
    {
        $sql = $this->sqlQueries[$name];
        $vars = array_merge(array('tablename' => $this->tableName), $vars);
        foreach ($vars as $k => $v) {
            $sql = str_replace("%$k%", $v, $sql);
        }
        return $sql;
    }
protected function getSqlQuery($name, array $vars = array())
    {
        $sql = $this->sqlQueries[$name];
        $vars = array_merge(array('tablename' => $this->tableName), $vars);
        foreach ($vars as $k => $v) {
            $sql = str_replace("%$k%", $v, $sql);
        }
        return $sql;
    }
protected function getSqlQuery ( $ name , array $ vars = array ( ) ) { $ sql = $ this -> sqlQueries [ $ name ] ; $ vars = array_merge ( array ( 'tablename' => $ this -> tableName ) , $ vars ) ; foreach ( $ vars as $ k => $ v ) { $ sql = str_replace ( "%$k%" , $ v , $ sql ) ; } return $ sql ; }
Get a SQL Query for a task, with the variables replaced

@param  string $name
@param  array  $vars
@return string
Get a SQL Query for a task with the variables replaced