src/Pools/Miner.php
public function columnQuote($column)
    {
        if (empty($column)) {
            return null;
        }
        preg_match('/^(?:(?<table>\w+)\.)?(?<column>\w+)$/iu', $column, $match);
        if (isset($match['table'], $match['column'])) {
            $table = $this->tableQuote($match['table']);
            $match['column'] = str_replace('`', '', $match['column']);
            $column = $this->escapes ? "`{$match['column']}`" : "{$match['column']}";
            return $table ? $table . '.' . $column : $column;
        }
        return $column;
    }
public function columnQuote($column)
    {
        if (empty($column)) {
            return null;
        }
        preg_match('/^(?:(?<table>\w+)\.)?(?<column>\w+)$/iu', $column, $match);
        if (isset($match['table'], $match['column'])) {
            $table = $this->tableQuote($match['table']);
            $match['column'] = str_replace('`', '', $match['column']);
            $column = $this->escapes ? "`{$match['column']}`" : "{$match['column']}";
            return $table ? $table . '.' . $column : $column;
        }
        return $column;
    }
public function columnQuote ( $ column ) { if ( empty ( $ column ) ) { return null ; } preg_match ( '/^(?:(?<table>\w+)\.)?(?<column>\w+)$/iu' , $ column , $ match ) ; if ( isset ( $ match [ 'table' ] , $ match [ 'column' ] ) ) { $ table = $ this -> tableQuote ( $ match [ 'table' ] ) ; $ match [ 'column' ] = str_replace ( '`' , '' , $ match [ 'column' ] ) ; $ column = $ this -> escapes ? "`{$match['column']}`" : "{$match['column']}" ; return $ table ? $ table . '.' . $ column : $ column ; } return $ column ; }
Quotes a column name for use in a query.

@param string $column
The column name.

@return string
Quotes a column name for use in a query .