@@ -72,7 +72,7 @@ |
||
| 72 | 72 | DatabaseConfigLoader::class |
| 73 | 73 | ); |
| 74 | 74 | |
| 75 | - $this->app->share(AppDatabaseConfig::class, function (ContainerInterface $app) { |
|
| 75 | + $this->app->share(AppDatabaseConfig::class, function(ContainerInterface $app) { |
|
| 76 | 76 | $env = $app->get(Config::class)->get('app.env', ''); |
| 77 | 77 | return new AppDatabaseConfig($app->get(DatabaseConfigLoaderInterface::class), $env); |
| 78 | 78 | }); |
@@ -68,10 +68,10 @@ |
||
| 68 | 68 | public function register(): void |
| 69 | 69 | { |
| 70 | 70 | $cfg = $this->app->get(Config::class)->get('session', []); |
| 71 | - $this->app->bind(Configuration::class, function (ContainerInterface $app) use ($cfg) { |
|
| 71 | + $this->app->bind(Configuration::class, function(ContainerInterface $app) use ($cfg) { |
|
| 72 | 72 | return new Configuration($cfg); |
| 73 | 73 | }); |
| 74 | - $this->app->bind(SessionHandlerInterface::class, function (ContainerInterface $app) { |
|
| 74 | + $this->app->bind(SessionHandlerInterface::class, function(ContainerInterface $app) { |
|
| 75 | 75 | return new LocalStorage( |
| 76 | 76 | $app->get(Filesystem::class), |
| 77 | 77 | $app->get(Configuration::class) |
@@ -68,19 +68,19 @@ |
||
| 68 | 68 | 'updated_at' => '?date', |
| 69 | 69 | ]); |
| 70 | 70 | |
| 71 | - $mapper->filter('status', function (Query $q, $value) { |
|
| 71 | + $mapper->filter('status', function(Query $q, $value) { |
|
| 72 | 72 | $q->where('status')->is($value); |
| 73 | 73 | }); |
| 74 | 74 | |
| 75 | - $mapper->filter('env', function (Query $q, $value) { |
|
| 75 | + $mapper->filter('env', function(Query $q, $value) { |
|
| 76 | 76 | $q->where('env')->is($value); |
| 77 | 77 | }); |
| 78 | 78 | |
| 79 | - $mapper->filter('module', function (Query $q, $value) { |
|
| 79 | + $mapper->filter('module', function(Query $q, $value) { |
|
| 80 | 80 | $q->where('module')->is($value); |
| 81 | 81 | }); |
| 82 | 82 | |
| 83 | - $mapper->filter('type', function (Query $q, $value) { |
|
| 83 | + $mapper->filter('type', function(Query $q, $value) { |
|
| 84 | 84 | $q->where('type')->is($value); |
| 85 | 85 | }); |
| 86 | 86 | } |
@@ -128,7 +128,7 @@ |
||
| 128 | 128 | ->query() |
| 129 | 129 | ->where('module')->is($group) |
| 130 | 130 | ->where('status')->is('Y') |
| 131 | - ->where(function (WhereStatement $where) use ($env) { |
|
| 131 | + ->where(function(WhereStatement $where) use ($env) { |
|
| 132 | 132 | $where->where('env')->is($env) |
| 133 | 133 | ->orWhere('env')->isNull(); |
| 134 | 134 | }); |