summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruno Perel <brunoperel@gmail.com>2018-12-09 09:47:08 +0100
committerBruno Perel <brunoperel@gmail.com>2018-12-09 09:47:08 +0100
commit4b3684f16ecb3539057cbba3141473c059141a45 (patch)
tree08645d3c9fd9b4dc87244214f05dd17a4f3e1bc6
parent2d0b364f6424ce433f77e9f876bc7d1a0e0b6281 (diff)
downloadsql-parser-4b3684f16ecb3539057cbba3141473c059141a45.zip
sql-parser-4b3684f16ecb3539057cbba3141473c059141a45.tar.gz
sql-parser-4b3684f16ecb3539057cbba3141473c059141a45.tar.bz2
Fix unused variable
-rw-r--r--src/Utils/Query.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Utils/Query.php b/src/Utils/Query.php
index f928ab3..b43a35e 100644
--- a/src/Utils/Query.php
+++ b/src/Utils/Query.php
@@ -726,12 +726,12 @@ class Query
$ret .= static::getClause($statement, $list, $ops[0][0], -1) . ' ';
// Doing replacements.
- foreach ($ops as $i => $iValue) {
- $ret .= $ops[$i][1] . ' ';
+ foreach ($ops as $i => $clause) {
+ $ret .= $clause[1] . ' ';
// Adding everything between this and next replacement.
if ($i + 1 !== $count) {
- $ret .= static::getClause($statement, $list, $ops[$i][0], $ops[$i + 1][0]) . ' ';
+ $ret .= static::getClause($statement, $list, $clause[0], $ops[$i + 1][0]) . ' ';
}
}