| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | trait InsertTrait |
||
| 14 | { |
||
| 15 | use HelpersTrait; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * InsertSelect - builds SQL for 'INSERT INTO tablename (field1, field2) FROM SELECT a1, a2 FROM table2' |
||
| 19 | * |
||
| 20 | * @param Builder $query - the Builder to insert into |
||
| 21 | * @param Builder $builder - the Query Builder to select from |
||
| 22 | * @param array $insertColumns - the columns to insert into |
||
| 23 | * @return bool |
||
| 24 | */ |
||
| 25 | public function scopeInsertSelect(Builder $query, Builder $builder, array $insertColumns = []) |
||
| 38 |