@@ -475,7 +475,7 @@ |
||
| 475 | 475 | if ($sortby === 'uid') { |
| 476 | 476 | usort( |
| 477 | 477 | $this->itemArray, |
| 478 | - function ($a, $b) { |
|
| 478 | + function($a, $b) { |
|
| 479 | 479 | return $a['id'] < $b['id'] ? -1 : 1; |
| 480 | 480 | } |
| 481 | 481 | ); |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | |
| 39 | 39 | // Map array to correct keys |
| 40 | 40 | $allSessions = array_map( |
| 41 | - function ($session) { |
|
| 41 | + function($session) { |
|
| 42 | 42 | return [ |
| 43 | 43 | 'id' => $session['ses_id'], |
| 44 | 44 | 'ip' => $session['ses_iplock'], |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | ); |
| 51 | 51 | |
| 52 | 52 | // Sort by timestamp |
| 53 | - usort($allSessions, function ($session1, $session2) { |
|
| 53 | + usort($allSessions, function($session1, $session2) { |
|
| 54 | 54 | return $session1['timestamp'] <=> $session2['timestamp']; |
| 55 | 55 | }); |
| 56 | 56 | |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | |
| 70 | 70 | return array_filter( |
| 71 | 71 | $allActive, |
| 72 | - function ($session) use ($backendUser) { |
|
| 72 | + function($session) use ($backendUser) { |
|
| 73 | 73 | return (int)$session['ses_userid'] === $backendUser->getUid(); |
| 74 | 74 | } |
| 75 | 75 | ); |
@@ -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); |
@@ -2832,7 +2832,7 @@ |
||
| 2832 | 2832 | $tempCommaReplacementString = '###KASPER###'; |
| 2833 | 2833 | |
| 2834 | 2834 | // replace every "," wrapped in "()" by a "unique" string |
| 2835 | - $string = preg_replace_callback('/\((?>[^()]|(?R))*\)/', function ($result) use ($tempCommaReplacementString) { |
|
| 2835 | + $string = preg_replace_callback('/\((?>[^()]|(?R))*\)/', function($result) use ($tempCommaReplacementString) { |
|
| 2836 | 2836 | return str_replace(',', $tempCommaReplacementString, $result[0]); |
| 2837 | 2837 | }, $string); |
| 2838 | 2838 | |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | // check for required options being set |
| 61 | 61 | array_walk( |
| 62 | 62 | $this->supportedOptions, |
| 63 | - function ($supportedOptionData, $supportedOptionName, $options) { |
|
| 63 | + function($supportedOptionData, $supportedOptionName, $options) { |
|
| 64 | 64 | if (isset($supportedOptionData[3]) && !array_key_exists($supportedOptionName, $options)) { |
| 65 | 65 | throw new \TYPO3\CMS\Extbase\Validation\Exception\InvalidValidationOptionsException('Required validation option not set: ' . $supportedOptionName, 1339163922); |
| 66 | 66 | } |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | // merge with default values |
| 72 | 72 | $this->options = array_merge( |
| 73 | 73 | array_map( |
| 74 | - function ($value) { |
|
| 74 | + function($value) { |
|
| 75 | 75 | return $value[0]; |
| 76 | 76 | }, |
| 77 | 77 | $this->supportedOptions |
@@ -361,7 +361,7 @@ |
||
| 361 | 361 | } |
| 362 | 362 | } |
| 363 | 363 | } |
| 364 | - usort($changeLog, function ($a, $b) { |
|
| 364 | + usort($changeLog, function($a, $b) { |
|
| 365 | 365 | if ($a['tstamp'] < $b['tstamp']) { |
| 366 | 366 | return 1; |
| 367 | 367 | } |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | return array_keys( |
| 84 | 84 | array_filter( |
| 85 | 85 | $GLOBALS['TCA'][$tableName]['columns'] ?? [], |
| 86 | - function (array $fieldConfiguration) { |
|
| 86 | + function(array $fieldConfiguration) { |
|
| 87 | 87 | return !empty( |
| 88 | 88 | $fieldConfiguration['config'] |
| 89 | 89 | ['behaviour']['allowLanguageSynchronization'] |
@@ -291,7 +291,7 @@ discard block |
||
| 291 | 291 | } |
| 292 | 292 | return array_filter( |
| 293 | 293 | $fieldNames, |
| 294 | - function ($fieldName) use ($desiredState) { |
|
| 294 | + function($fieldName) use ($desiredState) { |
|
| 295 | 295 | return $this->states[$fieldName] === $desiredState; |
| 296 | 296 | } |
| 297 | 297 | ); |
@@ -96,7 +96,7 @@ |
||
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | // Remove any item that is not an array (means, the stored uid is not available anymore) |
| 99 | - $mostRecentUsers = array_filter($mostRecentUsers, function ($record) { |
|
| 99 | + $mostRecentUsers = array_filter($mostRecentUsers, function($record) { |
|
| 100 | 100 | return is_array($record); |
| 101 | 101 | }); |
| 102 | 102 | |
@@ -188,7 +188,7 @@ |
||
| 188 | 188 | |
| 189 | 189 | if ($methodValidateAnnotations === null) { |
| 190 | 190 | $validateAnnotations = $this->getMethodValidateAnnotations($className, $methodName); |
| 191 | - $methodValidateAnnotations = array_map(function ($validateAnnotation) { |
|
| 191 | + $methodValidateAnnotations = array_map(function($validateAnnotation) { |
|
| 192 | 192 | return [ |
| 193 | 193 | 'type' => $validateAnnotation['validatorName'], |
| 194 | 194 | 'options' => $validateAnnotation['validatorOptions'], |