Passed
Branch master (bc4eb6)
by tsms
12:06
created
Category
src/Controller/Component/CartComponent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
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.