Completed
Push — development ( 2fad51...a387f8 )
by Claudio
02:44
created
app/Models/ShopItem.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,8 +98,9 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
app/Models/ShopInventory.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,8 +67,9 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.