@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Cart\ServiceProviders; |
| 5 | 5 | |
@@ -12,14 +12,14 @@ discard block |
||
| 12 | 12 | { |
| 13 | 13 | public function register(Container $container) : void |
| 14 | 14 | { |
| 15 | - $redis = new Client([ |
|
| 15 | + $redis = new Client([ |
|
| 16 | 16 | 'scheme' => config('cart.drivers.redis.scheme'), |
| 17 | 17 | 'host' => config('cart.drivers.redis.host'), |
| 18 | 18 | 'port' => config('cart.drivers.redis.port') |
| 19 | 19 | ]); |
| 20 | 20 | |
| 21 | 21 | $container->instance(Client::class, $redis); |
| 22 | - $container->bind(RedisDriver::class, function () use ($redis) { |
|
| 22 | + $container->bind(RedisDriver::class, function() use ($redis) { |
|
| 23 | 23 | return new RedisDriver($redis); |
| 24 | 24 | }); |
| 25 | 25 | } |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Cart\ServiceProviders; |
| 5 | 5 | |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | */ |
| 16 | 16 | public function register() |
| 17 | 17 | { |
| 18 | - $this->app->bind('cart', function () { |
|
| 18 | + $this->app->bind('cart', function() { |
|
| 19 | 19 | $kernel = new Kernel(); |
| 20 | 20 | $kernel->bootstrapping('laravel'); |
| 21 | 21 | return $kernel->getStorage(); |