@@ -148,7 +148,7 @@ |
||
| 148 | 148 | * @TODO: Ability of custom this shit |
| 149 | 149 | * |
| 150 | 150 | * @param Request $request |
| 151 | - * @return mixed |
|
| 151 | + * @return JsonResponse |
|
| 152 | 152 | */ |
| 153 | 153 | public function getWall(Request $request): JsonResponse |
| 154 | 154 | { |
@@ -93,8 +93,9 @@ discard block |
||
| 93 | 93 | { |
| 94 | 94 | $paymentMethods = []; |
| 95 | 95 | |
| 96 | - if (!array_key_exists('payment_methods', $this->attributes)) |
|
| 97 | - return $paymentMethods; |
|
| 96 | + if (!array_key_exists('payment_methods', $this->attributes)) { |
|
| 97 | + return $paymentMethods; |
|
| 98 | + } |
|
| 98 | 99 | |
| 99 | 100 | foreach (explode(',', $this->attributes['payment_methods']) as $shopCategory): |
| 100 | 101 | $paymentMethod = PaymentMethod::where('localizationKey', $shopCategory)->first(); |
@@ -115,8 +116,9 @@ discard block |
||
| 115 | 116 | { |
| 116 | 117 | $shopCategories = []; |
| 117 | 118 | |
| 118 | - foreach (explode(',', $this->attributes['categories']) as $shopCategory) |
|
| 119 | - $shopCategories[] = ShopCategory::find($shopCategory)->category; |
|
| 119 | + foreach (explode(',', $this->attributes['categories']) as $shopCategory) { |
|
| 120 | + $shopCategories[] = ShopCategory::find($shopCategory)->category; |
|
| 121 | + } |
|
| 120 | 122 | |
| 121 | 123 | return $shopCategories; |
| 122 | 124 | } |