GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix unused variable · phpmyadmin/sql-parser@4b3684f

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src/Utils
    • Query.php
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/Utils/Query.php‎

Copy file name to clipboardExpand all lines: src/Utils/Query.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -726,12 +726,12 @@ public static function replaceClauses($statement, $list, array $ops)
726726
$ret .= static::getClause($statement, $list, $ops[0][0], -1) . ' ';
727727

728728
// Doing replacements.
729-
foreach ($ops as $i => $iValue) {
730-
$ret .= $ops[$i][1] . ' ';
729+
foreach ($ops as $i => $clause) {
730+
$ret .= $clause[1] . ' ';
731731

732732
// Adding everything between this and next replacement.
733733
if ($i + 1 !== $count) {
734-
$ret .= static::getClause($statement, $list, $ops[$i][0], $ops[$i + 1][0]) . ' ';
734+
$ret .= static::getClause($statement, $list, $clause[0], $ops[$i + 1][0]) . ' ';
735735
}
736736
}
737737

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.