diff options
Diffstat (limited to 'src/Utils')
-rw-r--r-- | src/Utils/BufferedQuery.php | 2 | ||||
-rw-r--r-- | src/Utils/Query.php | 6 |
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; } } |