Completed
Pull Request — master (#5)
by tsms
02:11
created
src/Controller/Component/CartComponent.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.