Completed
Push — development ( a928ed...ed05a0 )
by Claudio
02:29
created
app/Http/Controllers/ShopController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
app/Models/ShopItem.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -93,8 +93,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.