@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | public function getFormFieldsHandleJsonRepeaters($object, $fields) |
52 | 52 | { |
53 | 53 | |
54 | - foreach($this->jsonRepeaters as $repeater) { |
|
54 | + foreach ($this->jsonRepeaters as $repeater) { |
|
55 | 55 | if (isset($fields[$repeater]) && !empty($fields[$repeater])) { |
56 | 56 | $fields = $this->getJsonRepeater($fields, $repeater, $fields[$repeater]); |
57 | 57 | } |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | $repeatersConfig = config('twill.block_editor.repeaters'); |
67 | 67 | |
68 | 68 | |
69 | - foreach($serializedData as $index => $repeaterItem) { |
|
69 | + foreach ($serializedData as $index => $repeaterItem) { |
|
70 | 70 | $id = $repeaterItem['id'] ?? $index; |
71 | 71 | |
72 | 72 | $repeaters[] = [ |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | |
84 | 84 | $itemFields = Arr::except($repeaterItem, ['id', 'repeaters', 'files', 'medias', 'browsers', 'blocks']); |
85 | 85 | |
86 | - foreach($itemFields as $index => $value) { |
|
86 | + foreach ($itemFields as $index => $value) { |
|
87 | 87 | $repeatersFields[] = [ |
88 | 88 | 'name' => "blocks[$id][$index]", |
89 | 89 | 'value' => $value |