Skip to content

Commit 1071ef6

Browse files
committed
Resolved #38 Insert Batch Helper - clean
1 parent 5cb3b24 commit 1071ef6

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/Helper/InsertBatchHelper.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ public function prepareInsert(string $table, array $columns, array $updateCols):
4545
{
4646
$sql = "INSERT INTO " . $table . " (" . trim(
4747
implode(
48-
', ',
49-
$this->arrayMapAssoc(
50-
function ($k, $v) {
51-
return ltrim($k, ':');
52-
},
53-
$columns
54-
)
48+
', ',
49+
$this->arrayMapAssoc(
50+
function ($k, $v) {
51+
return ltrim($k, ':');
52+
},
53+
$columns
5554
)
55+
)
5656
) . ")";
5757
/**
5858
* Search if query string already exist

0 commit comments

Comments
 (0)