@@ -468,7 +468,7 @@ |
||
| 468 | 468 | } |
| 469 | 469 | } |
| 470 | 470 | // sort providers |
| 471 | - uasort($providers, function ($a, $b) { |
|
| 471 | + uasort($providers, function($a, $b) { |
|
| 472 | 472 | return $b['sorting'] - $a['sorting']; |
| 473 | 473 | }); |
| 474 | 474 | $this->loginProviders = $providers; |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | // check for required options being set |
| 67 | 67 | array_walk( |
| 68 | 68 | $this->supportedOptions, |
| 69 | - function ($supportedOptionData, $supportedOptionName, $options) { |
|
| 69 | + function($supportedOptionData, $supportedOptionName, $options) { |
|
| 70 | 70 | if (isset($supportedOptionData[3]) && $supportedOptionData[3] === true && !array_key_exists($supportedOptionName, $options)) { |
| 71 | 71 | throw new InvalidValidationOptionsException('Required validation option not set: ' . $supportedOptionName, 1379981891); |
| 72 | 72 | } |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | // merge with default values |
| 78 | 78 | $this->options = array_merge( |
| 79 | 79 | array_map( |
| 80 | - function ($value) { |
|
| 80 | + function($value) { |
|
| 81 | 81 | return $value[0]; |
| 82 | 82 | }, |
| 83 | 83 | $this->supportedOptions |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | public function splitIntoBlock($tag, $content, $eliminateExtraEndTags = false) |
| 52 | 52 | { |
| 53 | 53 | $tags = array_unique(GeneralUtility::trimExplode(',', $tag, true)); |
| 54 | - array_walk($tags, function (&$tag) { |
|
| 54 | + array_walk($tags, function(&$tag) { |
|
| 55 | 55 | $tag = preg_quote($tag, '/'); |
| 56 | 56 | }); |
| 57 | 57 | $regexStr = '/\\<\\/?(' . implode('|', $tags) . ')(\\s*\\>|\\s[^\\>]*\\>)/si'; |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | public function splitTags($tag, $content) |
| 158 | 158 | { |
| 159 | 159 | $tags = GeneralUtility::trimExplode(',', $tag, true); |
| 160 | - array_walk($tags, function (&$tag) { |
|
| 160 | + array_walk($tags, function(&$tag) { |
|
| 161 | 161 | $tag = preg_quote($tag, '/'); |
| 162 | 162 | }); |
| 163 | 163 | $regexStr = '/\\<(' . implode('|', $tags) . ')(\\s[^>]*)?\\/?>/si'; |
@@ -832,7 +832,7 @@ discard block |
||
| 832 | 832 | if ($cacheKey && isset($this->caseShift_cache[$cacheKey])) { |
| 833 | 833 | $str = $this->caseShift_cache[$cacheKey]; |
| 834 | 834 | } else { |
| 835 | - array_walk($str, function (&$value) { |
|
| 835 | + array_walk($str, function(&$value) { |
|
| 836 | 836 | $value = strtoupper($value); |
| 837 | 837 | }); |
| 838 | 838 | if ($cacheKey) { |
@@ -228,7 +228,7 @@ |
||
| 228 | 228 | } |
| 229 | 229 | } |
| 230 | 230 | |
| 231 | - uasort($allowedStages, function (StageRecord $first, StageRecord $second) { |
|
| 231 | + uasort($allowedStages, function(StageRecord $first, StageRecord $second) { |
|
| 232 | 232 | return $first->determineOrder($second); |
| 233 | 233 | }); |
| 234 | 234 | return $this->prepareStagesArray($allowedStages); |
@@ -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, |
@@ -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); |
@@ -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 | |