@@ -20,8 +20,8 @@ |
||
20 | 20 | public function register() |
21 | 21 | { |
22 | 22 | // Add database driver. |
23 | - $this->app->resolving('db', function ($db) { |
|
24 | - $db->extend('cassandra', function ($config, $name) { |
|
23 | + $this->app->resolving('db', function($db) { |
|
24 | + $db->extend('cassandra', function($config, $name) { |
|
25 | 25 | $config['name'] = $name; |
26 | 26 | return new Connection($config); |
27 | 27 | }); |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | */ |
190 | 190 | public function select($query, $bindings = [], $useReadPdo = true) |
191 | 191 | { |
192 | - return $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) { |
|
192 | + return $this->run($query, $bindings, function($query, $bindings) use ($useReadPdo) { |
|
193 | 193 | if ($this->pretending()) { |
194 | 194 | return []; |
195 | 195 | } |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | */ |
222 | 222 | public function batchStatement($queries = [], $bindings = [], $type = Cassandra::BATCH_LOGGED) |
223 | 223 | { |
224 | - return $this->run($queries, $bindings, function ($queries, $bindings) { |
|
224 | + return $this->run($queries, $bindings, function($queries, $bindings) { |
|
225 | 225 | if ($this->pretending()) { |
226 | 226 | return []; |
227 | 227 | } |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | */ |
247 | 247 | public function statement($query, $bindings = []) |
248 | 248 | { |
249 | - return $this->run($query, $bindings, function ($query, $bindings) { |
|
249 | + return $this->run($query, $bindings, function($query, $bindings) { |
|
250 | 250 | if ($this->pretending()) { |
251 | 251 | return []; |
252 | 252 | } |
@@ -268,7 +268,7 @@ discard block |
||
268 | 268 | */ |
269 | 269 | public function affectingStatement($query, $bindings = []) |
270 | 270 | { |
271 | - return $this->run($query, $bindings, function ($query, $bindings) { |
|
271 | + return $this->run($query, $bindings, function($query, $bindings) { |
|
272 | 272 | if ($this->pretending()) { |
273 | 273 | return 0; |
274 | 274 | } |