Minor formatting cleanup

This commit is contained in:
Timothy Warren 2012-03-14 14:22:34 -04:00
parent 4683311f61
commit 09caf1d256
1 changed files with 6 additions and 5 deletions

View File

@ -464,7 +464,7 @@ class Query_Builder {
$this->values[] = $v; $this->values[] = $v;
} }
$string = $field.' IN ('.implode(',', $params).') '; $string = $field . ' IN ('.implode(',', $params).') ';
$this->query_map[] = array( $this->query_map[] = array(
'type' => 'where_in', 'type' => 'where_in',
@ -494,7 +494,7 @@ class Query_Builder {
$this->values[] = $v; $this->values[] = $v;
} }
$string = $field.' IN ('.implode(',', $params).') '; $string = $field . ' IN ('.implode(',', $params).') ';
$this->query_map[] = array( $this->query_map[] = array(
'type' => 'where_in', 'type' => 'where_in',
@ -567,7 +567,7 @@ class Query_Builder {
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
// ! Other Query Modifier methods // ! Other Query Modifier methods
// --------------------------------------------------------------------------ß // --------------------------------------------------------------------------
/** /**
* Creates a join phrase in a compiled query * Creates a join phrase in a compiled query
@ -585,7 +585,8 @@ class Query_Builder {
if (preg_match('/([\[\w\.]+)([\W\s]+)(.+)/', $condition, $matches)) if (preg_match('/([\[\w\.]+)([\W\s]+)(.+)/', $condition, $matches))
{ {
$condition = $this->db->quote_ident($matches[0]).' '.$matches[1].' '.$this->db->quote_ident($matches[2]); $condition = $this->db->quote_ident($matches[0]) . ' ' . $matches[1] .
' ' . $this->db->quote_ident($matches[2]);
} }
$this->query_map[] = array( $this->query_map[] = array(
@ -616,7 +617,7 @@ class Query_Builder {
$this->group_array[] = $this->db->quote_ident($field); $this->group_array[] = $this->db->quote_ident($field);
} }
$this->group_string = ' GROUP BY '.implode(', ', $this->group_array); $this->group_string = ' GROUP BY ' . implode(', ', $this->group_array);
return $this; return $this;
} }