@@ -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.aranguent', function ($app) { |
|
| 98 | + $this->app->singleton('command.model.aranguent', function($app) { |
|
| 99 | 99 | return new ModelAranguentCommand($app['files']); |
| 100 | 100 | }); |
| 101 | 101 | } |
@@ -39,10 +39,10 @@ discard block |
||
| 39 | 39 | // Add database driver. |
| 40 | 40 | $this->app->resolving( |
| 41 | 41 | 'db', |
| 42 | - function ($db) { |
|
| 42 | + function($db) { |
|
| 43 | 43 | $db->extend( |
| 44 | 44 | 'arangodb', |
| 45 | - function ($config, $name) { |
|
| 45 | + function($config, $name) { |
|
| 46 | 46 | $config['name'] = $name; |
| 47 | 47 | $connection = new Connection($config); |
| 48 | 48 | $connection->setSchemaGrammar(new SchemaGrammar()); |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | ); |
| 55 | 55 | |
| 56 | 56 | $this->app->resolving( |
| 57 | - function ($app) { |
|
| 57 | + function($app) { |
|
| 58 | 58 | if (class_exists('Illuminate\Foundation\AliasLoader')) { |
| 59 | 59 | $loader = \Illuminate\Foundation\AliasLoader::getInstance(); |
| 60 | 60 | $loader->alias('Eloquent', 'LaravelFreelancerNL\Aranguent\Eloquent\Model'); |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | */ |
| 158 | 158 | public function cursor($query, $bindings = [], $useReadPdo = null, $transactionCollections = null) |
| 159 | 159 | { |
| 160 | - return $this->run($query, $bindings, function ($query, $bindings) use ($transactionCollections) { |
|
| 160 | + return $this->run($query, $bindings, function($query, $bindings) use ($transactionCollections) { |
|
| 161 | 161 | if ($this->pretending()) { |
| 162 | 162 | return []; |
| 163 | 163 | } |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | $query = $query->query; |
| 191 | 191 | } |
| 192 | 192 | |
| 193 | - return $this->run($query, $bindings, function ($query, $bindings) use ($transactionCollections) { |
|
| 193 | + return $this->run($query, $bindings, function($query, $bindings) use ($transactionCollections) { |
|
| 194 | 194 | if ($this->pretending()) { |
| 195 | 195 | return true; |
| 196 | 196 | } |
@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | $query = $query->query; |
| 229 | 229 | } |
| 230 | 230 | |
| 231 | - return $this->run($query, $bindings, function ($query, $bindings) use ($transactionCollections) { |
|
| 231 | + return $this->run($query, $bindings, function($query, $bindings) use ($transactionCollections) { |
|
| 232 | 232 | if ($this->pretending()) { |
| 233 | 233 | return 0; |
| 234 | 234 | } |
@@ -262,7 +262,7 @@ discard block |
||
| 262 | 262 | */ |
| 263 | 263 | public function unprepared($query) |
| 264 | 264 | { |
| 265 | - return $this->run($query, [], function ($query) { |
|
| 265 | + return $this->run($query, [], function($query) { |
|
| 266 | 266 | if ($this->pretending()) { |
| 267 | 267 | return true; |
| 268 | 268 | } |
@@ -336,7 +336,7 @@ discard block |
||
| 336 | 336 | $query = $query->query; |
| 337 | 337 | } |
| 338 | 338 | |
| 339 | - return $this->run($query, $bindings, function ($query, $bindings, $transactionCollections = null) { |
|
| 339 | + return $this->run($query, $bindings, function($query, $bindings, $transactionCollections = null) { |
|
| 340 | 340 | if ($this->pretending()) { |
| 341 | 341 | return []; |
| 342 | 342 | } |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | */ |
| 70 | 70 | public function create($collection, Closure $callback, $config = []) |
| 71 | 71 | { |
| 72 | - $this->build(tap($this->createBlueprint($collection), function ($blueprint) use ($callback, $config) { |
|
| 72 | + $this->build(tap($this->createBlueprint($collection), function($blueprint) use ($callback, $config) { |
|
| 73 | 73 | $blueprint->create($config); |
| 74 | 74 | |
| 75 | 75 | $callback($blueprint); |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | */ |
| 30 | 30 | protected function creating() |
| 31 | 31 | { |
| 32 | - return collect($this->commands)->contains(function ($command) { |
|
| 32 | + return collect($this->commands)->contains(function($command) { |
|
| 33 | 33 | return $command->name === 'create'; |
| 34 | 34 | }); |
| 35 | 35 | } |
@@ -178,7 +178,7 @@ |
||
| 178 | 178 | */ |
| 179 | 179 | public function get($columns = ['*']) |
| 180 | 180 | { |
| 181 | - $results = collect($this->onceWithColumns(Arr::wrap($columns), function () { |
|
| 181 | + $results = collect($this->onceWithColumns(Arr::wrap($columns), function() { |
|
| 182 | 182 | return $this->runSelect(); |
| 183 | 183 | })); |
| 184 | 184 | |
@@ -330,7 +330,7 @@ |
||
| 330 | 330 | */ |
| 331 | 331 | protected function compileWheresToArray($builder) |
| 332 | 332 | { |
| 333 | - $result = collect($builder->wheres)->map(function ($where) use ($builder) { |
|
| 333 | + $result = collect($builder->wheres)->map(function($where) use ($builder) { |
|
| 334 | 334 | if (isset($where['operator'])) { |
| 335 | 335 | $where['operator'] = $this->translateOperator($where['operator']); |
| 336 | 336 | } else { |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | { |
| 31 | 31 | $this->beginTransaction(); |
| 32 | 32 | |
| 33 | - return tap($callback($this), function () use ($options, $attempts) { |
|
| 33 | + return tap($callback($this), function() use ($options, $attempts) { |
|
| 34 | 34 | $this->commit($options, $attempts); |
| 35 | 35 | }); |
| 36 | 36 | } |