summaryrefslogtreecommitdiffstats
path: root/src/Utils
diff options
context:
space:
mode:
authorDan Ungureanu <udan1107@gmail.com>2015-08-11 21:25:43 +0300
committerDan Ungureanu <udan1107@gmail.com>2015-08-11 21:25:43 +0300
commit685d8027d8feed78e6ff89a05db85b2c848371cc (patch)
treefdece64402371abd7d69e2baf9535db0f4814325 /src/Utils
parentcb3d5408fc8a9e973542d19ae3013725ac9727c2 (diff)
downloadsql-parser-685d8027d8feed78e6ff89a05db85b2c848371cc.zip
sql-parser-685d8027d8feed78e6ff89a05db85b2c848371cc.tar.gz
sql-parser-685d8027d8feed78e6ff89a05db85b2c848371cc.tar.bz2
Coding style fixes.
Diffstat (limited to 'src/Utils')
-rw-r--r--src/Utils/BufferedQuery.php2
-rw-r--r--src/Utils/Query.php6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/Utils/BufferedQuery.php b/src/Utils/BufferedQuery.php
index e983188..e308fb2 100644
--- a/src/Utils/BufferedQuery.php
+++ b/src/Utils/BufferedQuery.php
@@ -180,7 +180,7 @@ class BufferedQuery
*/
$loopLen = $end ? $len : $len - 16;
- for (; $i < $loopLen; ++$i) {
+ for (; $i < $loopLen; ++$i) {
/*
* Handling special parses statuses.
diff --git a/src/Utils/Query.php b/src/Utils/Query.php
index 4a9ea01..6aff11d 100644
--- a/src/Utils/Query.php
+++ b/src/Utils/Query.php
@@ -51,7 +51,7 @@ class Query
* @var array
*/
public static $FUNCTIONS = array(
- 'SUM','AVG','STD','STDDEV','MIN','MAX','BIT_OR','BIT_AND'
+ 'SUM', 'AVG', 'STD', 'STDDEV', 'MIN', 'MAX', 'BIT_OR', 'BIT_AND'
);
/**
@@ -572,10 +572,10 @@ class Query
} elseif (is_string($type)) {
if ($clauses[$type] > $clauseIdx) {
$firstClauseIdx = $clauseIdx + 1;
- $lastClauseIdx = $clauses[$type] - 1 ;
+ $lastClauseIdx = $clauses[$type] - 1;
} else {
$firstClauseIdx = $clauses[$type] + 1;
- $lastClauseIdx = $clauseIdx - 1 ;
+ $lastClauseIdx = $clauseIdx - 1;
}
}