@@ -20,12 +20,12 @@ discard block |
||
| 20 | 20 | { |
| 21 | 21 | $this->publishes( |
| 22 | 22 | [ |
| 23 | - __DIR__ . '/config/laracart.php' => config_path('laracart.php'), |
|
| 23 | + __DIR__.'/config/laracart.php' => config_path('laracart.php'), |
|
| 24 | 24 | ] |
| 25 | 25 | ); |
| 26 | 26 | |
| 27 | 27 | $this->mergeConfigFrom( |
| 28 | - __DIR__ . '/config/laracart.php', |
|
| 28 | + __DIR__.'/config/laracart.php', |
|
| 29 | 29 | 'laracart' |
| 30 | 30 | ); |
| 31 | 31 | |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | if (!$this->migrationHasAlreadyBeenPublished()) { |
| 36 | 36 | $timestamp = date('Y_m_d_His', time()); |
| 37 | 37 | $this->publishes([ |
| 38 | - __DIR__ . '/../resources/migrations/add_cart_session_id_to_users_table.php.stub' => database_path('migrations/' . $timestamp . '_add_cart_session_id_to_users_table.php'), |
|
| 38 | + __DIR__.'/../resources/migrations/add_cart_session_id_to_users_table.php.stub' => database_path('migrations/'.$timestamp.'_add_cart_session_id_to_users_table.php'), |
|
| 39 | 39 | ], 'migrations'); |
| 40 | 40 | } |
| 41 | 41 | } |
@@ -47,21 +47,21 @@ discard block |
||
| 47 | 47 | */ |
| 48 | 48 | public function register() |
| 49 | 49 | { |
| 50 | - $this->app->singleton(LaraCart::SERVICE, function ($app) { |
|
| 50 | + $this->app->singleton(LaraCart::SERVICE, function($app) { |
|
| 51 | 51 | return new LaraCart($app['session'], $app['events'], $app['auth']); |
| 52 | 52 | } |
| 53 | 53 | ); |
| 54 | 54 | |
| 55 | 55 | $this->app->bind( |
| 56 | 56 | LaraCart::HASH, |
| 57 | - function ($app, $data) { |
|
| 57 | + function($app, $data) { |
|
| 58 | 58 | return md5(json_encode($data)); |
| 59 | 59 | } |
| 60 | 60 | ); |
| 61 | 61 | |
| 62 | 62 | $this->app->bind( |
| 63 | 63 | LaraCart::RANHASH, |
| 64 | - function () { |
|
| 64 | + function() { |
|
| 65 | 65 | return str_random(40); |
| 66 | 66 | } |
| 67 | 67 | ); |