@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace LukePOLO\LaraCart; |
| 4 | 4 | |
| 5 | 5 | use Illuminate\Support\ServiceProvider; |
| 6 | -use LukePOLO\LaraCart\Contracts\LaraCartContract; |
|
| 7 | 6 | |
| 8 | 7 | /** |
| 9 | 8 | * Class LaraCartServiceProvider |
@@ -38,21 +38,21 @@ |
||
| 38 | 38 | */ |
| 39 | 39 | public function register() |
| 40 | 40 | { |
| 41 | - $this->app->singleton('laracart', function ($app) { |
|
| 41 | + $this->app->singleton('laracart', function($app) { |
|
| 42 | 42 | return new LaraCart(); |
| 43 | 43 | } |
| 44 | 44 | ); |
| 45 | 45 | |
| 46 | 46 | $this->app->bind( |
| 47 | 47 | LaraCart::HASH, |
| 48 | - function ($app, $data) { |
|
| 48 | + function($app, $data) { |
|
| 49 | 49 | return md5(json_encode($data)); |
| 50 | 50 | } |
| 51 | 51 | ); |
| 52 | 52 | |
| 53 | 53 | $this->app->bind( |
| 54 | 54 | LaraCart::RANHASH, |
| 55 | - function () { |
|
| 55 | + function() { |
|
| 56 | 56 | return str_random(40); |
| 57 | 57 | } |
| 58 | 58 | ); |