@@ -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 | ); |
@@ -230,7 +230,7 @@ |
||
| 230 | 230 | */ |
| 231 | 231 | public function setModel($itemModel) |
| 232 | 232 | { |
| 233 | - if(!class_exists($itemModel)) { |
|
| 233 | + if (!class_exists($itemModel)) { |
|
| 234 | 234 | throw new ModelNotFound(); |
| 235 | 235 | } |
| 236 | 236 | $this->itemModel = $itemModel; |