@@ -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 | ); |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | return $this->get($entity)['quantity']; |
155 | 155 | } |
156 | 156 | |
157 | - return array_reduce($this->get(), function ($count, $object) { |
|
157 | + return array_reduce($this->get(), function($count, $object) { |
|
158 | 158 | return $count + $object['quantity']; |
159 | 159 | }, 0); |
160 | 160 | } |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | return $this->get($entity)['total']; |
179 | 179 | } |
180 | 180 | |
181 | - return array_reduce($this->get(), function ($total, $object) { |
|
181 | + return array_reduce($this->get(), function($total, $object) { |
|
182 | 182 | return $total + $object['total']; |
183 | 183 | }, 0); |
184 | 184 | } |