Passed
Push — master ( 2b90a1...723ac1 )
by Martin
20:58
created
app/Http/Controllers/Admin/PriceListController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,11 +41,11 @@
 block discarded – undo
41 41
         $list->categories()->detach();
42 42
 
43 43
         // Only attach categories if submitted (not required)
44
-        if($validated['categories']) {
45
-            foreach( $validated['categories'] as $category )
44
+        if ($validated['categories']) {
45
+            foreach ($validated['categories'] as $category)
46 46
             {
47 47
                 // Attach only the given categories to the list
48
-                $list->categories()->attach( $category['id'], ['priority' => $category['priority']] );
48
+                $list->categories()->attach($category['id'], ['priority' => $category['priority']]);
49 49
             }
50 50
         }
51 51
 
Please login to merge, or discard this patch.