Passed
Pull Request — master (#12)
by tsms
03:46
created
config/routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
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
 );
Please login to merge, or discard this patch.
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.