@@ -471,7 +471,7 @@ |
||
| 471 | 471 | /** |
| 472 | 472 | * Gets the total amount discounted |
| 473 | 473 | * |
| 474 | - * @param bool|true $format |
|
| 474 | + * @param boolean $format |
|
| 475 | 475 | * |
| 476 | 476 | * @return int|string |
| 477 | 477 | */ |
@@ -37,21 +37,21 @@ |
||
| 37 | 37 | */ |
| 38 | 38 | public function register() |
| 39 | 39 | { |
| 40 | - $this->app->singleton(LaraCart::SERVICE, function ($app) { |
|
| 40 | + $this->app->singleton(LaraCart::SERVICE, function($app) { |
|
| 41 | 41 | return new LaraCart($app['session'], $app['events']); |
| 42 | 42 | } |
| 43 | 43 | ); |
| 44 | 44 | |
| 45 | 45 | $this->app->bind( |
| 46 | 46 | LaraCart::HASH, |
| 47 | - function ($app, $data) { |
|
| 47 | + function($app, $data) { |
|
| 48 | 48 | return md5(json_encode($data)); |
| 49 | 49 | } |
| 50 | 50 | ); |
| 51 | 51 | |
| 52 | 52 | $this->app->bind( |
| 53 | 53 | LaraCart::RANHASH, |
| 54 | - function () { |
|
| 54 | + function() { |
|
| 55 | 55 | return str_random(40); |
| 56 | 56 | } |
| 57 | 57 | ); |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | 15 | if (!(Schema::hasColumn('users', 'cart_session_id'))) { |
| 16 | - Schema::table('users', function (Blueprint $table) { |
|
| 16 | + Schema::table('users', function(Blueprint $table) { |
|
| 17 | 17 | $table->string('cart_session_id')->default(null); |
| 18 | 18 | }); |
| 19 | 19 | } |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | public function down() |
| 28 | 28 | { |
| 29 | 29 | if ((Schema::hasColumn('users', 'cart_session_id'))) { |
| 30 | - Schema::table('users', function (Blueprint $table) { |
|
| 30 | + Schema::table('users', function(Blueprint $table) { |
|
| 31 | 31 | $table->dropColumn('cart_session_id'); |
| 32 | 32 | }); |
| 33 | 33 | } |