| Conditions | 2 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | 16 | public function compileUpsert(Builder $query, array $values, array $target, array $update) |
|
| 19 | { |
||
| 20 | 16 | $sql = $this->compileInsert($query, $values); |
|
|
|
|||
| 21 | |||
| 22 | 16 | $sql .= ' on conflict ('.$this->columnize($target).') do update set '; |
|
| 23 | |||
| 24 | 16 | $columns = collect($update)->map(function ($value, $key) { |
|
| 25 | 16 | return is_numeric($key) |
|
| 26 | 14 | ? $this->wrap($value).' = '.$this->wrapValue('excluded').'.'.$this->wrap($value) |
|
| 27 | 16 | : $this->wrap($key).' = '.$this->parameter($value); |
|
| 28 | 16 | })->implode(', '); |
|
| 29 | |||
| 30 | 16 | return $sql.$columns; |
|
| 31 | } |
||
| 46 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.