Skip to content

Commit f9e6a9c

Browse files
refactor: use string interpolation
1 parent 5468e91 commit f9e6a9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/System/Database/MyQuery/Insert.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ protected function builder(): string
7777
$stringBinds = implode(', ', $strings_binds);
7878
$stringColumn = implode(', ', $columns);
7979

80-
$this->_query = "INSERT INTO $this->_table ($stringColumn) VALUES $stringBinds";
80+
$this->_query = "INSERT INTO {$this->_table} ({$stringColumn}) VALUES {$stringBinds}";
8181

8282
return $this->_query;
8383
}

0 commit comments

Comments
 (0)