Skip to content

Commit

Permalink
Fix unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
bperel committed Dec 9, 2018
1 parent 2d0b364 commit 4b3684f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Utils/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]) . ' ';
}
}

Expand Down

0 comments on commit 4b3684f

Please sign in to comment.