@@ -19,14 +19,14 @@ discard block |
||
| 19 | 19 | */ |
| 20 | 20 | public function boot() |
| 21 | 21 | { |
| 22 | - QueryBuilder::macro('toRawSql', function () { |
|
| 22 | + QueryBuilder::macro('toRawSql', function() { |
|
| 23 | 23 | /** |
| 24 | 24 | * @var $this QueryBuilder |
| 25 | 25 | */ |
| 26 | 26 | $sql = $this->toSql(); |
| 27 | 27 | $bindings = $this->getBindings(); |
| 28 | 28 | $bindings = $this->getConnection()->prepareBindings($bindings); |
| 29 | - $bindings = array_map(function ($binding) { |
|
| 29 | + $bindings = array_map(function($binding) { |
|
| 30 | 30 | return is_numeric($binding) |
| 31 | 31 | ? $binding |
| 32 | 32 | : "'" . addslashes($binding) . "'"; |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | return sprintf(str_replace('?', '%s', $sql), ...$bindings); |
| 36 | 36 | }); |
| 37 | 37 | |
| 38 | - EloquentBuilder::macro('toRawSql', function () { |
|
| 38 | + EloquentBuilder::macro('toRawSql', function() { |
|
| 39 | 39 | /** |
| 40 | 40 | * @var $this EloquentBuilder |
| 41 | 41 | */ |