Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot authored and jiannei committed Dec 30, 2022
1 parent 02e975a commit ee51185
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Providers/LaravelServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ public function register()

public function boot()
{
$formatter = $this->app['config']->get('response.format.0',\Jiannei\Response\Laravel\Support\Format::class);
$config = $this->app['config']->get('response.format.1',[]);
$formatter = $this->app['config']->get('response.format.0', \Jiannei\Response\Laravel\Support\Format::class);
$config = $this->app['config']->get('response.format.1', []);

if (is_string($formatter) && class_exists($formatter)) {
$this->app->bind(\Jiannei\Response\Laravel\Contracts\Format::class, function () use ($formatter,$config) {
$this->app->bind(\Jiannei\Response\Laravel\Contracts\Format::class, function () use ($formatter, $config) {
return new $formatter($config);
});
}
Expand Down

0 comments on commit ee51185

Please sign in to comment.