@@ -161,7 +161,7 @@ |
||
| 161 | 161 | throw new \Exception(); |
| 162 | 162 | } |
| 163 | 163 | |
| 164 | - return array_reduce($this->get(), function ($count, $object) { |
|
| 164 | + return array_reduce($this->get(), function($count, $object) { |
|
| 165 | 165 | return $count + $object['quantity']; |
| 166 | 166 | }, 0); |
| 167 | 167 | } |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | Router::plugin( |
| 7 | 7 | 'Cart', |
| 8 | 8 | ['path' => '/cart'], |
| 9 | - function (RouteBuilder $routes) { |
|
| 9 | + function(RouteBuilder $routes) { |
|
| 10 | 10 | $routes->fallbacks(DashedRoute::class); |
| 11 | 11 | } |
| 12 | 12 | ); |