@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | */ |
| 155 | 155 | public function cursor($query, $bindings = [], $useReadPdo = null, $transactionCollections = null) |
| 156 | 156 | { |
| 157 | - return $this->run($query, $bindings, function ($query, $bindings) use ($transactionCollections) { |
|
| 157 | + return $this->run($query, $bindings, function($query, $bindings) use ($transactionCollections) { |
|
| 158 | 158 | if ($this->pretending()) { |
| 159 | 159 | return []; |
| 160 | 160 | } |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | $query = $query->query; |
| 188 | 188 | } |
| 189 | 189 | |
| 190 | - return $this->run($query, $bindings, function ($query, $bindings) use ($transactionCollections) { |
|
| 190 | + return $this->run($query, $bindings, function($query, $bindings) use ($transactionCollections) { |
|
| 191 | 191 | if ($this->pretending()) { |
| 192 | 192 | return true; |
| 193 | 193 | } |
@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | $query = $query->query; |
| 225 | 225 | } |
| 226 | 226 | |
| 227 | - return $this->run($query, $bindings, function ($query, $bindings) use ($transactionCollections) { |
|
| 227 | + return $this->run($query, $bindings, function($query, $bindings) use ($transactionCollections) { |
|
| 228 | 228 | if ($this->pretending()) { |
| 229 | 229 | return 0; |
| 230 | 230 | } |
@@ -259,7 +259,7 @@ discard block |
||
| 259 | 259 | */ |
| 260 | 260 | public function unprepared($query) |
| 261 | 261 | { |
| 262 | - return $this->run($query, [], function ($query) { |
|
| 262 | + return $this->run($query, [], function($query) { |
|
| 263 | 263 | if ($this->pretending()) { |
| 264 | 264 | return true; |
| 265 | 265 | } |
@@ -329,7 +329,7 @@ discard block |
||
| 329 | 329 | $query = $query->query; |
| 330 | 330 | } |
| 331 | 331 | |
| 332 | - return $this->run($query, $bindings, function ($query, $bindings, $transactionCollections= null) { |
|
| 332 | + return $this->run($query, $bindings, function($query, $bindings, $transactionCollections = null) { |
|
| 333 | 333 | if ($this->pretending()) { |
| 334 | 334 | return []; |
| 335 | 335 | } |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | */ |
| 57 | 57 | protected function registerRepository() |
| 58 | 58 | { |
| 59 | - $this->app->singleton('migration.repository', function ($app) { |
|
| 59 | + $this->app->singleton('migration.repository', function($app) { |
|
| 60 | 60 | $collection = $app['config']['database.migrations']; |
| 61 | 61 | |
| 62 | 62 | return new DatabaseMigrationRepository($app['db'], $collection); |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | |
| 66 | 66 | protected function registerCreator() |
| 67 | 67 | { |
| 68 | - $this->app->singleton('migration.creator', function ($app) { |
|
| 68 | + $this->app->singleton('migration.creator', function($app) { |
|
| 69 | 69 | return new MigrationCreator($app['files']); |
| 70 | 70 | }); |
| 71 | 71 | } |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | */ |
| 78 | 78 | protected function registerMigrateMakeCommand() |
| 79 | 79 | { |
| 80 | - $this->app->singleton('command.migrate.make', function ($app) { |
|
| 80 | + $this->app->singleton('command.migrate.make', function($app) { |
|
| 81 | 81 | $creator = $app['migration.creator']; |
| 82 | 82 | |
| 83 | 83 | $composer = $app['composer']; |
@@ -88,14 +88,14 @@ discard block |
||
| 88 | 88 | |
| 89 | 89 | protected function registerAranguentConvertMigrationsCommand() |
| 90 | 90 | { |
| 91 | - $this->app->singleton('command.aranguent.convert-migrations', function ($app) { |
|
| 91 | + $this->app->singleton('command.aranguent.convert-migrations', function($app) { |
|
| 92 | 92 | return new AranguentConvertMigrationsCommand($app['migrator']); |
| 93 | 93 | }); |
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | protected function registerMakeModelCommand() |
| 97 | 97 | { |
| 98 | - $this->app->singleton('command.model.make', function ($app) { |
|
| 98 | + $this->app->singleton('command.model.make', function($app) { |
|
| 99 | 99 | return new ModelAranguentCommand($app['files']); |
| 100 | 100 | }); |
| 101 | 101 | } |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | |
| 103 | 103 | $this->prefix = $prefix; |
| 104 | 104 | |
| 105 | - if (! is_null($callback)) { |
|
| 105 | + if (!is_null($callback)) { |
|
| 106 | 106 | $callback($this); |
| 107 | 107 | } |
| 108 | 108 | } |
@@ -248,7 +248,7 @@ discard block |
||
| 248 | 248 | */ |
| 249 | 249 | protected function creating() |
| 250 | 250 | { |
| 251 | - return collect($this->commands)->contains(function ($command) { |
|
| 251 | + return collect($this->commands)->contains(function($command) { |
|
| 252 | 252 | return $command->name === 'create'; |
| 253 | 253 | }); |
| 254 | 254 | } |
@@ -284,7 +284,7 @@ discard block |
||
| 284 | 284 | } |
| 285 | 285 | |
| 286 | 286 | $collections = $this->collectionHandler->getAllCollections(['excludeSystem' => true]); |
| 287 | - if (! isset($collections[$this->collection])) { |
|
| 287 | + if (!isset($collections[$this->collection])) { |
|
| 288 | 288 | $this->collectionHandler->create($this->collection, $options); |
| 289 | 289 | } |
| 290 | 290 | } |