@@ -29,10 +29,10 @@ |
||
29 | 29 | $this->app['config']->get('database-config.cache_key'), |
30 | 30 | function () { |
31 | 31 | return DatabaseConfig::all() |
32 | - ->mapWithKeys(function ($config) { |
|
33 | - return [$config->name => $config->value]; |
|
34 | - }) |
|
35 | - ->all(); |
|
32 | + ->mapWithKeys(function ($config) { |
|
33 | + return [$config->name => $config->value]; |
|
34 | + }) |
|
35 | + ->all(); |
|
36 | 36 | } |
37 | 37 | ); |
38 | 38 |
@@ -27,9 +27,9 @@ |
||
27 | 27 | // Load database config |
28 | 28 | $databaseConfig = $this->app['cache']->rememberForever( |
29 | 29 | $this->app['config']->get('database-config.cache_key'), |
30 | - function () { |
|
30 | + function() { |
|
31 | 31 | return DatabaseConfig::all() |
32 | - ->mapWithKeys(function ($config) { |
|
32 | + ->mapWithKeys(function($config) { |
|
33 | 33 | return [$config->name => $config->value]; |
34 | 34 | }) |
35 | 35 | ->all(); |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -if (! function_exists('array_merge_recursive_distinct')) { |
|
3 | +if (!function_exists('array_merge_recursive_distinct')) { |
|
4 | 4 | /** |
5 | 5 | * Recursively merge two config arrays - retain distinct values and overwrite existing values |
6 | 6 | * @see http://docs.php.net/manual/da/function.array-merge-recursive.php#92195 |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create(config('database-config.table'), function (Blueprint $table) { |
|
16 | + Schema::create(config('database-config.table'), function(Blueprint $table) { |
|
17 | 17 | $table->string('name')->primary(); |
18 | 18 | $table->json('value')->nullable(); |
19 | 19 | $table->timestamps(); |