@@ -69,14 +69,14 @@ |
||
69 | 69 | |
70 | 70 | $html = []; |
71 | 71 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
72 | - $html[] = $fieldInformationHtml; |
|
73 | - $html[] = '<div class="form-wizards-wrap">'; |
|
74 | - $html[] = '<div class="form-wizards-element">'; |
|
75 | - $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
|
76 | - $html[] = '<input class="form-control" value="' . htmlspecialchars($itemValue) . '" type="text" disabled>'; |
|
77 | - $html[] = '</div>'; |
|
78 | - $html[] = '</div>'; |
|
79 | - $html[] = '</div>'; |
|
72 | + $html[] = $fieldInformationHtml; |
|
73 | + $html[] = '<div class="form-wizards-wrap">'; |
|
74 | + $html[] = '<div class="form-wizards-element">'; |
|
75 | + $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
|
76 | + $html[] = '<input class="form-control" value="' . htmlspecialchars($itemValue) . '" type="text" disabled>'; |
|
77 | + $html[] = '</div>'; |
|
78 | + $html[] = '</div>'; |
|
79 | + $html[] = '</div>'; |
|
80 | 80 | $html[] = '</div>'; |
81 | 81 | |
82 | 82 | $resultArray['html'] = implode(LF, $html); |
@@ -108,7 +108,7 @@ |
||
108 | 108 | |
109 | 109 | public function __toString() |
110 | 110 | { |
111 | - $filterNonPersistentKeys = function ($key) { |
|
111 | + $filterNonPersistentKeys = function($key) { |
|
112 | 112 | if (in_array($key, ['id', 'title', 'allowedAspectRatios', 'coverAreas'], true)) { |
113 | 113 | return false; |
114 | 114 | } |
@@ -414,7 +414,7 @@ discard block |
||
414 | 414 | $requestArguments = $this->request->getArguments(); |
415 | 415 | |
416 | 416 | $propertyPathsForWhichPropertyMappingShouldHappen = []; |
417 | - $registerPropertyPaths = function ($propertyPath) use (&$propertyPathsForWhichPropertyMappingShouldHappen) { |
|
417 | + $registerPropertyPaths = function($propertyPath) use (&$propertyPathsForWhichPropertyMappingShouldHappen) { |
|
418 | 418 | $propertyPathParts = explode('.', $propertyPath); |
419 | 419 | $accumulatedPropertyPathParts = []; |
420 | 420 | foreach ($propertyPathParts as $propertyPathPart) { |
@@ -462,7 +462,7 @@ discard block |
||
462 | 462 | } |
463 | 463 | |
464 | 464 | // The more parts the path has, the more early it is processed |
465 | - usort($propertyPathsForWhichPropertyMappingShouldHappen, function ($a, $b) { |
|
465 | + usort($propertyPathsForWhichPropertyMappingShouldHappen, function($a, $b) { |
|
466 | 466 | return substr_count($b, '.') - substr_count($a, '.'); |
467 | 467 | }); |
468 | 468 |
@@ -172,8 +172,8 @@ |
||
172 | 172 | |
173 | 173 | // Check for remaining edges in the graph |
174 | 174 | $cycles = []; |
175 | - array_walk($dependencyGraph, function ($dependencies, $fromId) use (&$cycles) { |
|
176 | - array_walk($dependencies, function ($dependency, $toId) use (&$cycles, $fromId) { |
|
175 | + array_walk($dependencyGraph, function($dependencies, $fromId) use (&$cycles) { |
|
176 | + array_walk($dependencies, function($dependency, $toId) use (&$cycles, $fromId) { |
|
177 | 177 | if ($dependency) { |
178 | 178 | $cycles[] = $fromId . '->' . $toId; |
179 | 179 | } |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | foreach ($headers as $name => $headerValues) { |
320 | 320 | $this->validateHeaderName($name); |
321 | 321 | // check if all values are correct |
322 | - array_walk($headerValues, function ($value, $key, Message $messageObject) { |
|
322 | + array_walk($headerValues, function($value, $key, Message $messageObject) { |
|
323 | 323 | if (!$messageObject->isValidHeaderValue($value)) { |
324 | 324 | throw new \InvalidArgumentException('Invalid header value for header "' . $key . '"', 1436717268); |
325 | 325 | } |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | */ |
360 | 360 | protected function arrayContainsOnlyStrings(array $data) |
361 | 361 | { |
362 | - return array_reduce($data, function ($original, $item) { |
|
362 | + return array_reduce($data, function($original, $item) { |
|
363 | 363 | return is_string($item) ? $original : false; |
364 | 364 | }, true); |
365 | 365 | } |
@@ -373,7 +373,7 @@ discard block |
||
373 | 373 | */ |
374 | 374 | protected function validateHeaderValues(array $values) |
375 | 375 | { |
376 | - array_walk($values, function ($value, $key, Message $messageObject) { |
|
376 | + array_walk($values, function($value, $key, Message $messageObject) { |
|
377 | 377 | if (!$messageObject->isValidHeaderValue($value)) { |
378 | 378 | throw new \InvalidArgumentException('Invalid header value for header "' . $key . '"', 1436717269); |
379 | 379 | } |
@@ -286,7 +286,7 @@ |
||
286 | 286 | // VERY simple quoting of tags is sufficient here for performance. Tags are already |
287 | 287 | // validated to not contain any bad characters, e.g. they are automatically generated |
288 | 288 | // inside this class and suffixed with a pure integer enforced by DB. |
289 | - $quotedTagList = array_map(function ($value) { |
|
289 | + $quotedTagList = array_map(function($value) { |
|
290 | 290 | return '\'' . $value . '\''; |
291 | 291 | }, $tags); |
292 | 292 |
@@ -432,7 +432,7 @@ |
||
432 | 432 | { |
433 | 433 | if (isset($wizardGroup[$key])) { |
434 | 434 | $wizardGroup[$key] = GeneralUtility::trimExplode(',', $wizardGroup[$key]); |
435 | - $wizardGroup[$key] = array_map(function ($s) { |
|
435 | + $wizardGroup[$key] = array_map(function($s) { |
|
436 | 436 | return $s . '.'; |
437 | 437 | }, $wizardGroup[$key]); |
438 | 438 | } |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | { |
195 | 195 | return array_filter( |
196 | 196 | $record, |
197 | - function (string $propertyName): bool { |
|
197 | + function(string $propertyName): bool { |
|
198 | 198 | return $propertyName[0] !== '_'; |
199 | 199 | }, |
200 | 200 | ARRAY_FILTER_USE_KEY |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | { |
212 | 212 | return array_filter( |
213 | 213 | $propertyNames, |
214 | - function (string $propertyName): bool { |
|
214 | + function(string $propertyName): bool { |
|
215 | 215 | return $propertyName[0] !== '_'; |
216 | 216 | } |
217 | 217 | ); |
@@ -248,7 +248,7 @@ |
||
248 | 248 | continue; |
249 | 249 | } |
250 | 250 | |
251 | - usort($formElementsByGroup[$groupName], function ($a, $b) { |
|
251 | + usort($formElementsByGroup[$groupName], function($a, $b) { |
|
252 | 252 | return $a['sorting'] - $b['sorting']; |
253 | 253 | }); |
254 | 254 | unset($formElementsByGroup[$groupName]['sorting']); |