Passed
Push — master ( 4a884d...c9d1fc )
by Jeff
12:14
created
app/Http/Controllers/Admin/Addresses/AddressController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
             $list = $this->addressRepo->searchAddress(request()->input('q'));
54 54
         }
55 55
 
56
-        $addresses = $list->map(function (Address $address) {
56
+        $addresses = $list->map(function(Address $address) {
57 57
             return $this->transformAddress($address);
58 58
         })->all();
59 59
 
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
     {
116 116
         $countries = $this->countryRepo->listCountries();
117 117
 
118
-        $country = $countries->filter(function ($country) {
118
+        $country = $countries->filter(function($country) {
119 119
             return $country == env('SHOP_COUNTRY_ID', '1');
120 120
         })->first();
121 121
 
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/Products/ProductController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         $this->middleware(['permission:create-product, guard:employee'], ['only' => ['create', 'store']]);
83 83
         $this->middleware(['permission:update-product, guard:employee'], ['only' => ['edit', 'update']]);
84 84
         $this->middleware(['permission:delete-product, guard:employee'], ['only' => ['destroy']]);
85
-        $this->middleware(['permission:view-product, guard:employee'], ['only' => [ 'index', 'show']]);
85
+        $this->middleware(['permission:view-product, guard:employee'], ['only' => ['index', 'show']]);
86 86
     }
87 87
 
88 88
     /**
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
             $list = $this->productRepo->searchProduct(request()->input('q'));
99 99
         }
100 100
 
101
-        $products = $list->map(function (Product $item) {
101
+        $products = $list->map(function(Product $item) {
102 102
             return $this->transformProduct($item);
103 103
         })->all();
104 104
 
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
         $product = $this->productRepo->findProductById($id);
178 178
         $productAttributes = $product->attributes()->get();
179 179
 
180
-        $qty = $productAttributes->map(function ($item) {
180
+        $qty = $productAttributes->map(function($item) {
181 181
             return $item->quantity;
182 182
         })->sum();
183 183
 
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
         $product->categories()->sync([]);
259 259
         $productAttr = $product->attributes();
260 260
 
261
-        $productAttr->each(function ($pa) {
261
+        $productAttr->each(function($pa) {
262 262
             DB::table('attribute_value_product_attribute')->where('product_attribute_id', $pa->id)->delete();
263 263
         });
264 264
 
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
         );
349 349
 
350 350
         // save the combinations
351
-        return collect($attributeValues)->each(function ($attributeValueId) use ($productRepo, $productAttribute) {
351
+        return collect($attributeValues)->each(function($attributeValueId) use ($productRepo, $productAttribute) {
352 352
             $attribute = $this->attributeValueRepository->find($attributeValueId);
353 353
             return $productRepo->saveCombination($productAttribute, $attribute);
354 354
         })->count();
Please login to merge, or discard this patch.
app/Http/Controllers/Front/ProductController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
             $list = $this->productRepo->listProducts();
37 37
         }
38 38
 
39
-        $products = $list->where('status', 1)->map(function (Product $item) {
39
+        $products = $list->where('status', 1)->map(function(Product $item) {
40 40
             return $this->transformProduct($item);
41 41
         });
42 42
 
Please login to merge, or discard this patch.
app/Http/Controllers/Front/CheckoutController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@
 block discarded – undo
115 115
         }
116 116
 
117 117
         // Get payment gateways
118
-        $paymentGateways = collect(explode(',', config('payees.name')))->transform(function ($name) {
118
+        $paymentGateways = collect(explode(',', config('payees.name')))->transform(function($name) {
119 119
             return config($name);
120 120
         })->all();
121 121
 
Please login to merge, or discard this patch.
app/Http/Controllers/Front/AccountsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
         $customerRepo = new CustomerRepository($customer);
45 45
         $orders = $customerRepo->findOrders(['*'], 'created_at');
46 46
 
47
-        $orders->transform(function (Order $order) {
47
+        $orders->transform(function(Order $order) {
48 48
             return $this->transformOrder($order);
49 49
         });
50 50
 
Please login to merge, or discard this patch.
app/Http/Controllers/Front/Payments/BankTransferController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 
61 61
                 $rate_id = $request->input('rate');
62 62
                 $rates = $shippingRepo->getRates($request->input('shipment_obj_id'));
63
-                $rate = collect($rates->results)->filter(function ($rate) use ($rate_id) {
63
+                $rate = collect($rates->results)->filter(function($rate) use ($rate_id) {
64 64
                     return $rate->object_id == $rate_id;
65 65
                 })->first();
66 66
 
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 
133 133
         $transaction = Shippo_Transaction::create($details);
134 134
 
135
-        if ($transaction['status'] != 'SUCCESS'){
135
+        if ($transaction['status'] != 'SUCCESS') {
136 136
             Log::error($transaction['messages']);
137 137
             return redirect()->route('checkout.index')->with('error', 'There is an error in the shipment details. Check logs.');
138 138
         }
Please login to merge, or discard this patch.