@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | $customFieldType[$customFieldTypeData->getName()] = $customFieldTypeData->getId(); |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | - $this->transactionAware(function () use ($customFieldType) { |
|
| 74 | + $this->transactionAware(function() use ($customFieldType) { |
|
| 75 | 75 | $customFieldDefService = $this->dic->get(CustomFieldDefService::class); |
| 76 | 76 | |
| 77 | 77 | $queryData = new QueryData(); |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | ); |
| 152 | 152 | |
| 153 | 153 | try { |
| 154 | - $this->transactionAware(function () { |
|
| 154 | + $this->transactionAware(function() { |
|
| 155 | 155 | $customFieldDefService = $this->dic->get(CustomFieldDefService::class); |
| 156 | 156 | |
| 157 | 157 | foreach ($customFieldDefService->getAllBasic() as $item) { |
@@ -106,8 +106,8 @@ discard block |
||
| 106 | 106 | */ |
| 107 | 107 | protected function addCustomFieldsForItem($moduleId, $itemId, Request $request) |
| 108 | 108 | { |
| 109 | - $customFields = $request->analyzeArray('customfield', function ($values) { |
|
| 110 | - return array_map(function ($value) { |
|
| 109 | + $customFields = $request->analyzeArray('customfield', function($values) { |
|
| 110 | + return array_map(function($value) { |
|
| 111 | 111 | return Filter::getString($value); |
| 112 | 112 | }, $values); |
| 113 | 113 | }); |
@@ -165,8 +165,8 @@ discard block |
||
| 165 | 165 | */ |
| 166 | 166 | protected function updateCustomFieldsForItem($moduleId, $itemId, Request $request) |
| 167 | 167 | { |
| 168 | - $customFields = $request->analyzeArray('customfield', function ($values) { |
|
| 169 | - return array_map(function ($value) { |
|
| 168 | + $customFields = $request->analyzeArray('customfield', function($values) { |
|
| 169 | + return array_map(function($value) { |
|
| 170 | 170 | return Filter::getString($value); |
| 171 | 171 | }, $values); |
| 172 | 172 | }); |