@@ -98,8 +98,9 @@ |
||
| 98 | 98 | { |
| 99 | 99 | $shopCategories = []; |
| 100 | 100 | |
| 101 | - foreach (explode(',', $this->attributes['categories']) as $shopCategory) |
|
| 102 | - $shopCategories[] = ShopCategory::find($shopCategory)->category; |
|
| 101 | + foreach (explode(',', $this->attributes['categories']) as $shopCategory) { |
|
| 102 | + $shopCategories[] = ShopCategory::find($shopCategory)->category; |
|
| 103 | + } |
|
| 103 | 104 | |
| 104 | 105 | return $shopCategories; |
| 105 | 106 | } |
@@ -67,8 +67,9 @@ |
||
| 67 | 67 | { |
| 68 | 68 | $paymentMethods = []; |
| 69 | 69 | |
| 70 | - foreach (PaymentCategory::where('country_code', $countryCode)->get(['payment_type']) as $paymentMethod) |
|
| 71 | - $paymentMethods[] = $paymentMethod->payment_type; |
|
| 70 | + foreach (PaymentCategory::where('country_code', $countryCode)->get(['payment_type']) as $paymentMethod) { |
|
| 71 | + $paymentMethods[] = $paymentMethod->payment_type; |
|
| 72 | + } |
|
| 72 | 73 | |
| 73 | 74 | $this->paymentCategories = $paymentMethods; |
| 74 | 75 | } |