Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
51 | protected function buildSqlFunction(string $name, array $parameters): string |
||
52 | { |
||
53 | $prepareForBindings = collect($parameters)->implode( |
||
|
|||
54 | fn ($param) => '?, ' |
||
55 | ); |
||
56 | |||
57 | return $this->select . $name . str($prepareForBindings) |
||
58 | ->replaceLast(', ', '') |
||
59 | ->start('(') |
||
60 | ->finish(')'); |
||
61 | } |
||
63 |