@@ -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 | } |