From 09caf1d256cbce88de428d58e970674c7af12bc8 Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Wed, 14 Mar 2012 14:22:34 -0400 Subject: [PATCH] Minor formatting cleanup --- sys/db/query_builder.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/sys/db/query_builder.php b/sys/db/query_builder.php index b996688..470a856 100644 --- a/sys/db/query_builder.php +++ b/sys/db/query_builder.php @@ -464,7 +464,7 @@ class Query_Builder { $this->values[] = $v; } - $string = $field.' IN ('.implode(',', $params).') '; + $string = $field . ' IN ('.implode(',', $params).') '; $this->query_map[] = array( 'type' => 'where_in', @@ -494,7 +494,7 @@ class Query_Builder { $this->values[] = $v; } - $string = $field.' IN ('.implode(',', $params).') '; + $string = $field . ' IN ('.implode(',', $params).') '; $this->query_map[] = array( 'type' => 'where_in', @@ -567,7 +567,7 @@ class Query_Builder { // -------------------------------------------------------------------------- // ! Other Query Modifier methods - // --------------------------------------------------------------------------ß + // -------------------------------------------------------------------------- /** * Creates a join phrase in a compiled query @@ -585,7 +585,8 @@ class Query_Builder { 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( @@ -616,7 +617,7 @@ class Query_Builder { $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; }