Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
8 | 1 | public function build(): string |
|
9 | { |
||
10 | 1 | $quotedColumns = []; |
|
11 | 1 | foreach ($this->list as $col => $val) { |
|
12 | 1 | $quotedColumns[] = $this->quoter->quoteIdentifier($col); |
|
13 | } |
||
14 | |||
15 | return '(' |
||
16 | 1 | . $this->indentCsv($quotedColumns) |
|
17 | 1 | . PHP_EOL . ') VALUES (' |
|
18 | 1 | . $this->indentCsv(array_values($this->list)) |
|
19 | 1 | . PHP_EOL . ')'; |
|
20 | } |
||
21 | } |
||
22 |