Passed
Push — master ( 81a345...8ff05f )
by Matthijs
01:44
created
src/Services/Order/Entity/OrderRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
 
76 76
     public function orderProductsByClientId($clientId, $shopId)
77 77
     {
78
-        return $this->modelOrderProduct->with(array('product'))->whereHas('Order', function ($query) use ($clientId, $shopId) {
78
+        return $this->modelOrderProduct->with(array('product'))->whereHas('Order', function($query) use ($clientId, $shopId) {
79 79
             $query->where('client_id', '=', $clientId)->where('shop_id', '=', $shopId);
80 80
         });
81 81
     }
Please login to merge, or discard this patch.
src/Services/Order/OrderService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
     {
110 110
         $attributes['shop_id'] = $shopId;
111 111
         $attributes['client_id'] = $attributes['user_id'];
112
-        $client  = ClientService::selectOneByShopIdAndId($shopId, $attributes['user_id']);
112
+        $client = ClientService::selectOneByShopIdAndId($shopId, $attributes['user_id']);
113 113
 
114 114
         $this->repo->getModel()->fill($attributes);
115 115
         $this->repo->getModel()->save();
Please login to merge, or discard this patch.