@@ -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 | ); |
@@ -726,7 +726,7 @@ |
||
| 726 | 726 | $itemOptions[$option] = $itemModel->$option; |
| 727 | 727 | } |
| 728 | 728 | |
| 729 | - return array_filter($itemOptions, function ($value) { |
|
| 729 | + return array_filter($itemOptions, function($value) { |
|
| 730 | 730 | if ($value !== false && empty($value)) { |
| 731 | 731 | return false; |
| 732 | 732 | } |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | if ($this->lineItem === false) { |
| 80 | 80 | $this->itemHash = null; |
| 81 | 81 | |
| 82 | - $cartItemArray = (array) $this; |
|
| 82 | + $cartItemArray = (array)$this; |
|
| 83 | 83 | |
| 84 | 84 | unset($cartItemArray['options']['qty']); |
| 85 | 85 | |