From 4b3684f16ecb3539057cbba3141473c059141a45 Mon Sep 17 00:00:00 2001 From: Bruno Perel Date: Sun, 9 Dec 2018 09:47:08 +0100 Subject: [PATCH] Fix unused variable --- src/Utils/Query.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Utils/Query.php b/src/Utils/Query.php index f928ab356..b43a35e1f 100644 --- a/src/Utils/Query.php +++ b/src/Utils/Query.php @@ -726,12 +726,12 @@ public static function replaceClauses($statement, $list, array $ops) $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]) . ' '; } }