@@ -82,7 +82,7 @@ |
||
82 | 82 | $bindings = $this->cleanBindings( |
83 | 83 | array_merge( |
84 | 84 | Arr::flatten($values, 1), |
85 | - collect($update)->reject(function ($value, $key) { |
|
85 | + collect($update)->reject(function($value, $key) { |
|
86 | 86 | return is_int($key); |
87 | 87 | })->all() |
88 | 88 | ) |
@@ -51,20 +51,20 @@ |
||
51 | 51 | |
52 | 52 | $sql = 'merge '.$this->wrapTable($query->from).' '; |
53 | 53 | |
54 | - $parameters = collect($values)->map(function ($record) { |
|
54 | + $parameters = collect($values)->map(function($record) { |
|
55 | 55 | return '('.$this->parameterize($record).')'; |
56 | 56 | })->implode(', '); |
57 | 57 | |
58 | 58 | $sql .= 'using (values '.$parameters.') '.$this->wrapTable('laravel_source').' ('.$columns.') '; |
59 | 59 | |
60 | - $on = collect($target)->map(function ($column) use ($query) { |
|
60 | + $on = collect($target)->map(function($column) use ($query) { |
|
61 | 61 | return $this->wrap('laravel_source.'.$column).' = '.$this->wrap($query->from.'.'.$column); |
62 | 62 | })->implode(' and '); |
63 | 63 | |
64 | 64 | $sql .= 'on '.$on.' '; |
65 | 65 | |
66 | 66 | if ($update) { |
67 | - $update = collect($update)->map(function ($value, $key) { |
|
67 | + $update = collect($update)->map(function($value, $key) { |
|
68 | 68 | return is_numeric($key) |
69 | 69 | ? $this->wrap($value).' = '.$this->wrap('laravel_source.'.$value) |
70 | 70 | : $this->wrap($key).' = '.$this->parameter($value); |
@@ -23,7 +23,7 @@ |
||
23 | 23 | { |
24 | 24 | $sql = $this->compileInsert($query, $values).' on duplicate key update '; |
25 | 25 | |
26 | - $columns = collect($update)->map(function ($value, $key) { |
|
26 | + $columns = collect($update)->map(function($value, $key) { |
|
27 | 27 | return is_numeric($key) |
28 | 28 | ? $this->wrap($value).' = values('.$this->wrap($value).')' |
29 | 29 | : $this->wrap($key).' = '.$this->parameter($value); |
@@ -21,7 +21,7 @@ |
||
21 | 21 | |
22 | 22 | $sql .= ' on conflict ('.$this->columnize($target).') do update set '; |
23 | 23 | |
24 | - $columns = collect($update)->map(function ($value, $key) { |
|
24 | + $columns = collect($update)->map(function($value, $key) { |
|
25 | 25 | return is_numeric($key) |
26 | 26 | ? $this->wrap($value).' = '.$this->wrapValue('excluded').'.'.$this->wrap($value) |
27 | 27 | : $this->wrap($key).' = '.$this->parameter($value); |
@@ -14,7 +14,7 @@ |
||
14 | 14 | */ |
15 | 15 | public function register() |
16 | 16 | { |
17 | - $this->app->singleton('db.factory', function ($app) { |
|
17 | + $this->app->singleton('db.factory', function($app) { |
|
18 | 18 | return new ConnectionFactory($app); |
19 | 19 | }); |
20 | 20 | } |