@@ -166,7 +166,7 @@ |
||
| 166 | 166 | $connection = $connectionPool->getConnectionByName($connectionName); |
| 167 | 167 | $tablesOnConnection = array_keys(array_filter( |
| 168 | 168 | $tableMap, |
| 169 | - function ($value) use ($connectionName) { |
|
| 169 | + function($value) use ($connectionName) { |
|
| 170 | 170 | return $value === $connectionName; |
| 171 | 171 | } |
| 172 | 172 | )); |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | if (!is_array($pageIdsToClear)) { |
| 68 | 68 | $pageIdsToClear = [(int)$pageIdsToClear]; |
| 69 | 69 | } |
| 70 | - $tags = array_map(function ($item) { |
|
| 70 | + $tags = array_map(function($item) { |
|
| 71 | 71 | return 'pageId_' . $item; |
| 72 | 72 | }, $pageIdsToClear); |
| 73 | 73 | $this->cacheManager->flushCachesInGroupByTags('pages', $tags); |
@@ -271,7 +271,7 @@ |
||
| 271 | 271 | $fieldPaths[] = [$firstLevelFieldName]; |
| 272 | 272 | } else { |
| 273 | 273 | $newFieldPaths = $this->calculateFieldPaths($fieldInformation['error'], $firstLevelFieldName); |
| 274 | - array_walk($newFieldPaths, function (&$value, $key) { |
|
| 274 | + array_walk($newFieldPaths, function(&$value, $key) { |
|
| 275 | 275 | $value = explode('/', $value); |
| 276 | 276 | }); |
| 277 | 277 | $fieldPaths = array_merge($fieldPaths, $newFieldPaths); |
@@ -161,7 +161,7 @@ |
||
| 161 | 161 | */ |
| 162 | 162 | public static function getMessageClosure(LanguageService $languageService, FlashMessageQueue $messageQueue, $isAjaxCall) |
| 163 | 163 | { |
| 164 | - return function () use ($languageService, $messageQueue, $isAjaxCall) { |
|
| 164 | + return function() use ($languageService, $messageQueue, $isAjaxCall) { |
|
| 165 | 165 | /** @var FlashMessage $flashMessage */ |
| 166 | 166 | $flashMessage = GeneralUtility::makeInstance( |
| 167 | 167 | FlashMessage::class, |
@@ -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 |