@@ -142,16 +142,16 @@ |
||
| 142 | 142 | $html = []; |
| 143 | 143 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
| 144 | 144 | $html[] = $fieldInformationHtml; |
| 145 | - $html[] = '<div class="form-wizards-wrap">'; |
|
| 146 | - $html[] = '<div class="form-wizards-element">'; |
|
| 147 | - $html[] = $elementHtml; |
|
| 148 | - $html[] = '</div>'; |
|
| 145 | + $html[] = '<div class="form-wizards-wrap">'; |
|
| 146 | + $html[] = '<div class="form-wizards-element">'; |
|
| 147 | + $html[] = $elementHtml; |
|
| 148 | + $html[] = '</div>'; |
|
| 149 | 149 | if (!$disabled && !empty($fieldWizardHtml)) { |
| 150 | - $html[] = '<div class="form-wizards-items-bottom">'; |
|
| 151 | - $html[] = $fieldWizardHtml; |
|
| 152 | - $html[] = '</div>'; |
|
| 150 | + $html[] = '<div class="form-wizards-items-bottom">'; |
|
| 151 | + $html[] = $fieldWizardHtml; |
|
| 152 | + $html[] = '</div>'; |
|
| 153 | 153 | } |
| 154 | - $html[] = '</div>'; |
|
| 154 | + $html[] = '</div>'; |
|
| 155 | 155 | $html[] = '</div>'; |
| 156 | 156 | |
| 157 | 157 | $resultArray['html'] = implode(LF, $html); |
@@ -189,7 +189,7 @@ |
||
| 189 | 189 | // All implementations of getTreeList allow to pass the ids negative to include them into the result |
| 190 | 190 | // otherwise only childpages are returned |
| 191 | 191 | $storagePids = GeneralUtility::intExplode(',', $frameworkConfiguration['persistence']['storagePid']); |
| 192 | - array_walk($storagePids, function (&$storagePid) { |
|
| 192 | + array_walk($storagePids, function(&$storagePid) { |
|
| 193 | 193 | if ($storagePid > 0) { |
| 194 | 194 | $storagePid = -$storagePid; |
| 195 | 195 | } |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | // check for required options being set |
| 62 | 62 | array_walk( |
| 63 | 63 | $this->supportedOptions, |
| 64 | - function ($supportedOptionData, $supportedOptionName, $options) { |
|
| 64 | + function($supportedOptionData, $supportedOptionName, $options) { |
|
| 65 | 65 | if (isset($supportedOptionData[3]) && !array_key_exists($supportedOptionName, $options)) { |
| 66 | 66 | throw new InvalidValidationOptionsException('Required validation option not set: ' . $supportedOptionName, 1339163922); |
| 67 | 67 | } |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | // merge with default values |
| 73 | 73 | $this->options = array_merge( |
| 74 | 74 | array_map( |
| 75 | - function ($value) { |
|
| 75 | + function($value) { |
|
| 76 | 76 | return $value[0]; |
| 77 | 77 | }, |
| 78 | 78 | $this->supportedOptions |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | public function renderTceformsSelectDropdown(&$PA) |
| 44 | 44 | { |
| 45 | 45 | $allowedStorageIds = array_map( |
| 46 | - function (ResourceStorage $storage) { |
|
| 46 | + function(ResourceStorage $storage) { |
|
| 47 | 47 | return $storage->getUid(); |
| 48 | 48 | }, |
| 49 | 49 | $this->getBackendUserAuthentication()->getFileStorages() |
@@ -126,7 +126,7 @@ |
||
| 126 | 126 | try { |
| 127 | 127 | $input = new ArrayInput($this->getParameters(true), $schedulableCommand->getDefinition()); |
| 128 | 128 | $arguments = $input->__toString(); |
| 129 | - } catch (\Symfony\Component\Console\Exception\RuntimeException|InvalidArgumentException $e) { |
|
| 129 | + } catch (\Symfony\Component\Console\Exception\RuntimeException | InvalidArgumentException $e) { |
|
| 130 | 130 | return $label . "\n" |
| 131 | 131 | . sprintf( |
| 132 | 132 | $this->getLanguageService()->sL('LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:msg.errorParsingArguments'), |
@@ -103,7 +103,7 @@ |
||
| 103 | 103 | $beforeSubstitution = $content; |
| 104 | 104 | $content = preg_replace_callback( |
| 105 | 105 | '/\\{\\$(.[^}]*)\\}/', |
| 106 | - function (array $matches) use ($siteSettings): string { |
|
| 106 | + function(array $matches) use ($siteSettings): string { |
|
| 107 | 107 | return isset($siteSettings[$matches[1]]) && !is_array($siteSettings[$matches[1]]) |
| 108 | 108 | ? (string)$siteSettings[$matches[1]] : $matches[0]; |
| 109 | 109 | }, |
@@ -49,9 +49,9 @@ discard block |
||
| 49 | 49 | |
| 50 | 50 | protected function getLoginUserFunction(): ExpressionFunction |
| 51 | 51 | { |
| 52 | - return new ExpressionFunction('loginUser', function () { |
|
| 52 | + return new ExpressionFunction('loginUser', function() { |
|
| 53 | 53 | // Not implemented, we only use the evaluator |
| 54 | - }, function ($arguments, $str) { |
|
| 54 | + }, function($arguments, $str) { |
|
| 55 | 55 | $user = $arguments['frontend']->user ?? $arguments['backend']->user; |
| 56 | 56 | if ($user->isLoggedIn) { |
| 57 | 57 | foreach (GeneralUtility::trimExplode(',', $str, true) as $test) { |
@@ -66,9 +66,9 @@ discard block |
||
| 66 | 66 | |
| 67 | 67 | protected function getTSFEFunction(): ExpressionFunction |
| 68 | 68 | { |
| 69 | - return new ExpressionFunction('getTSFE', function () { |
|
| 69 | + return new ExpressionFunction('getTSFE', function() { |
|
| 70 | 70 | // Not implemented, we only use the evaluator |
| 71 | - }, function ($arguments) { |
|
| 71 | + }, function($arguments) { |
|
| 72 | 72 | if (($GLOBALS['TSFE'] ?? null) instanceof TypoScriptFrontendController) { |
| 73 | 73 | return $GLOBALS['TSFE']; |
| 74 | 74 | } |
@@ -78,9 +78,9 @@ discard block |
||
| 78 | 78 | |
| 79 | 79 | protected function getUsergroupFunction(): ExpressionFunction |
| 80 | 80 | { |
| 81 | - return new ExpressionFunction('usergroup', function () { |
|
| 81 | + return new ExpressionFunction('usergroup', function() { |
|
| 82 | 82 | // Not implemented, we only use the evaluator |
| 83 | - }, function ($arguments, $str) { |
|
| 83 | + }, function($arguments, $str) { |
|
| 84 | 84 | $user = $arguments['frontend']->user ?? $arguments['backend']->user; |
| 85 | 85 | $groupList = $user->userGroupList ?? ''; |
| 86 | 86 | // '0,-1' is the default usergroups string when not logged in! |
@@ -99,10 +99,10 @@ discard block |
||
| 99 | 99 | { |
| 100 | 100 | return new ExpressionFunction( |
| 101 | 101 | 'session', |
| 102 | - function () { |
|
| 102 | + function() { |
|
| 103 | 103 | // Not implemented, we only use the evaluator |
| 104 | 104 | }, |
| 105 | - function ($arguments, $str) { |
|
| 105 | + function($arguments, $str) { |
|
| 106 | 106 | $retVal = null; |
| 107 | 107 | $keyParts = explode('|', $str); |
| 108 | 108 | $sessionKey = array_shift($keyParts); |
@@ -129,10 +129,10 @@ discard block |
||
| 129 | 129 | { |
| 130 | 130 | return new ExpressionFunction( |
| 131 | 131 | 'site', |
| 132 | - function () { |
|
| 132 | + function() { |
|
| 133 | 133 | // Not implemented, we only use the evaluator |
| 134 | 134 | }, |
| 135 | - function ($arguments, $str) { |
|
| 135 | + function($arguments, $str) { |
|
| 136 | 136 | /** @var RequestWrapper $requestWrapper */ |
| 137 | 137 | $requestWrapper = $arguments['request']; |
| 138 | 138 | $site = $requestWrapper->getSite(); |
@@ -151,10 +151,10 @@ discard block |
||
| 151 | 151 | { |
| 152 | 152 | return new ExpressionFunction( |
| 153 | 153 | 'siteLanguage', |
| 154 | - function () { |
|
| 154 | + function() { |
|
| 155 | 155 | // Not implemented, we only use the evaluator |
| 156 | 156 | }, |
| 157 | - function ($arguments, $str) { |
|
| 157 | + function($arguments, $str) { |
|
| 158 | 158 | /** @var RequestWrapper $requestWrapper */ |
| 159 | 159 | $requestWrapper = $arguments['request']; |
| 160 | 160 | $siteLanguage = $requestWrapper->getSiteLanguage(); |
@@ -55,20 +55,20 @@ discard block |
||
| 55 | 55 | if ($tableName === '*') { |
| 56 | 56 | $label = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.allTables'); |
| 57 | 57 | $allowedTablesHtml[] = '<span>'; |
| 58 | - $allowedTablesHtml[] = htmlspecialchars($label); |
|
| 58 | + $allowedTablesHtml[] = htmlspecialchars($label); |
|
| 59 | 59 | $allowedTablesHtml[] = '</span>'; |
| 60 | 60 | } else { |
| 61 | 61 | $label = $languageService->sL($GLOBALS['TCA'][$tableName]['ctrl']['title']); |
| 62 | 62 | $icon = $iconFactory->getIconForRecord($tableName, [], Icon::SIZE_SMALL)->render(); |
| 63 | 63 | if ((bool)($config['fieldControl']['elementBrowser']['disabled'] ?? false)) { |
| 64 | 64 | $allowedTablesHtml[] = '<span class="tablelist-item-nolink">'; |
| 65 | - $allowedTablesHtml[] = $icon; |
|
| 66 | - $allowedTablesHtml[] = htmlspecialchars($label); |
|
| 65 | + $allowedTablesHtml[] = $icon; |
|
| 66 | + $allowedTablesHtml[] = htmlspecialchars($label); |
|
| 67 | 67 | $allowedTablesHtml[] = '</span>'; |
| 68 | 68 | } else { |
| 69 | 69 | $allowedTablesHtml[] = '<a href="#" class="btn btn-default t3js-element-browser" data-mode="db" data-params="' . htmlspecialchars($itemName . '|||' . $tableName) . '">'; |
| 70 | - $allowedTablesHtml[] = $icon; |
|
| 71 | - $allowedTablesHtml[] = htmlspecialchars($label); |
|
| 70 | + $allowedTablesHtml[] = $icon; |
|
| 71 | + $allowedTablesHtml[] = htmlspecialchars($label); |
|
| 72 | 72 | $allowedTablesHtml[] = '</a>'; |
| 73 | 73 | } |
| 74 | 74 | } |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | |
| 77 | 77 | $html = []; |
| 78 | 78 | $html[] = '<div class="help-block">'; |
| 79 | - $html[] = implode(LF, $allowedTablesHtml); |
|
| 79 | + $html[] = implode(LF, $allowedTablesHtml); |
|
| 80 | 80 | $html[] = '</div>'; |
| 81 | 81 | |
| 82 | 82 | $result['html'] = implode(LF, $html); |
@@ -263,7 +263,7 @@ |
||
| 263 | 263 | if ($this->languageUid > 0) { |
| 264 | 264 | $row = $this->pageRepository->getPageOverlay($row, $this->languageUid); |
| 265 | 265 | } |
| 266 | - $row = $this->enrichWithRelationFields($row['_PAGES_OVERLAY_UID'] ?? $uid, $row); |
|
| 266 | + $row = $this->enrichWithRelationFields($row['_PAGES_OVERLAY_UID'] ?? $uid, $row); |
|
| 267 | 267 | self::$pageRecordCache[$currentCacheIdentifier] = $row; |
| 268 | 268 | } |
| 269 | 269 | } |