@@ -164,8 +164,8 @@ discard block |
||
| 164 | 164 | |
| 165 | 165 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
| 166 | 166 | $html[] = $fieldInformationHtml; |
| 167 | - $html[] = '<div class="form-wizards-wrap">'; |
|
| 168 | - $html[] = '<div class="form-wizards-element">'; |
|
| 167 | + $html[] = '<div class="form-wizards-wrap">'; |
|
| 168 | + $html[] = '<div class="form-wizards-element">'; |
|
| 169 | 169 | |
| 170 | 170 | // Add an empty hidden field which will send a blank value if all items are unselected. |
| 171 | 171 | $html[] = '<input type="hidden" class="select-checkbox" name="' . htmlspecialchars($parameterArray['itemFormElName']) . '" value="">'; |
@@ -189,22 +189,22 @@ discard block |
||
| 189 | 189 | // Render rows |
| 190 | 190 | foreach ($group['items'] as $item) { |
| 191 | 191 | $tableRows[] = '<tr class="' . $item['class'] . '">'; |
| 192 | - $tableRows[] = '<td class="col-checkbox">'; |
|
| 193 | - $tableRows[] = '<input type="checkbox" class="t3js-checkbox" ' |
|
| 192 | + $tableRows[] = '<td class="col-checkbox">'; |
|
| 193 | + $tableRows[] = '<input type="checkbox" class="t3js-checkbox" ' |
|
| 194 | 194 | . 'id="' . $item['id'] . '" ' |
| 195 | 195 | . 'name="' . htmlspecialchars($item['name']) . '" ' |
| 196 | 196 | . 'value="' . htmlspecialchars($item['value']) . '" ' |
| 197 | 197 | . 'onclick="' . htmlspecialchars($sOnChange) . '" ' |
| 198 | 198 | . ($item['checked'] ? 'checked=checked ' : '') |
| 199 | 199 | . ($item['disabled'] ? 'disabled=disabled ' : '') . '>'; |
| 200 | - $tableRows[] = '</td>'; |
|
| 201 | - $tableRows[] = '<td class="col-icon">'; |
|
| 202 | - $tableRows[] = '<label class="label-block" for="' . $item['id'] . '">' . $item['icon'] . '</label>'; |
|
| 203 | - $tableRows[] = '</td>'; |
|
| 204 | - $tableRows[] = '<td class="col-title">'; |
|
| 205 | - $tableRows[] = '<label class="label-block nowrap-disabled" for="' . $item['id'] . '">' . htmlspecialchars($this->appendValueToLabelInDebugMode($item['title'], $item['value']), ENT_COMPAT, 'UTF-8', false) . '</label>'; |
|
| 206 | - $tableRows[] = '</td>'; |
|
| 207 | - $tableRows[] = '<td class="text-right">' . $item['help'] . '</td>'; |
|
| 200 | + $tableRows[] = '</td>'; |
|
| 201 | + $tableRows[] = '<td class="col-icon">'; |
|
| 202 | + $tableRows[] = '<label class="label-block" for="' . $item['id'] . '">' . $item['icon'] . '</label>'; |
|
| 203 | + $tableRows[] = '</td>'; |
|
| 204 | + $tableRows[] = '<td class="col-title">'; |
|
| 205 | + $tableRows[] = '<label class="label-block nowrap-disabled" for="' . $item['id'] . '">' . htmlspecialchars($this->appendValueToLabelInDebugMode($item['title'], $item['value']), ENT_COMPAT, 'UTF-8', false) . '</label>'; |
|
| 206 | + $tableRows[] = '</td>'; |
|
| 207 | + $tableRows[] = '<td class="text-right">' . $item['help'] . '</td>'; |
|
| 208 | 208 | $tableRows[] = '</tr>'; |
| 209 | 209 | } |
| 210 | 210 | |
@@ -225,20 +225,20 @@ discard block |
||
| 225 | 225 | } |
| 226 | 226 | $checkboxId = StringUtility::getUniqueId($groupId); |
| 227 | 227 | $title = htmlspecialchars($this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.toggleall')); |
| 228 | - $html[] = '<div class="table-responsive">'; |
|
| 229 | - $html[] = '<table class="table table-transparent table-hover">'; |
|
| 230 | - $html[] = '<thead>'; |
|
| 231 | - $html[] = '<tr>'; |
|
| 232 | - $html[] = '<th class="col-checkbox">'; |
|
| 233 | - $html[] = '<input type="checkbox" id="' . $checkboxId . '" class="t3js-toggle-checkboxes" data-trigger="hover" data-placement="right" data-title="' . $title . '" data-toggle="tooltip" />'; |
|
| 234 | - $html[] = '</th>'; |
|
| 235 | - $html[] = '<th class="col-title" colspan="2"><label for="' . $checkboxId . '">' . $title . '</label></th>'; |
|
| 236 | - $html[] = '<th class="text-right">' . $resetGroupBtn . '</th>'; |
|
| 237 | - $html[] = '</tr>'; |
|
| 238 | - $html[] = '</thead>'; |
|
| 239 | - $html[] = '<tbody>' . implode(LF, $tableRows) . '</tbody>'; |
|
| 240 | - $html[] = '</table>'; |
|
| 241 | - $html[] = '</div>'; |
|
| 228 | + $html[] = '<div class="table-responsive">'; |
|
| 229 | + $html[] = '<table class="table table-transparent table-hover">'; |
|
| 230 | + $html[] = '<thead>'; |
|
| 231 | + $html[] = '<tr>'; |
|
| 232 | + $html[] = '<th class="col-checkbox">'; |
|
| 233 | + $html[] = '<input type="checkbox" id="' . $checkboxId . '" class="t3js-toggle-checkboxes" data-trigger="hover" data-placement="right" data-title="' . $title . '" data-toggle="tooltip" />'; |
|
| 234 | + $html[] = '</th>'; |
|
| 235 | + $html[] = '<th class="col-title" colspan="2"><label for="' . $checkboxId . '">' . $title . '</label></th>'; |
|
| 236 | + $html[] = '<th class="text-right">' . $resetGroupBtn . '</th>'; |
|
| 237 | + $html[] = '</tr>'; |
|
| 238 | + $html[] = '</thead>'; |
|
| 239 | + $html[] = '<tbody>' . implode(LF, $tableRows) . '</tbody>'; |
|
| 240 | + $html[] = '</table>'; |
|
| 241 | + $html[] = '</div>'; |
|
| 242 | 242 | if (is_array($group['header'])) { |
| 243 | 243 | $html[] = '</div>'; |
| 244 | 244 | } |
@@ -252,13 +252,13 @@ discard block |
||
| 252 | 252 | $html[] = '</div>'; |
| 253 | 253 | } |
| 254 | 254 | |
| 255 | - $html[] = '</div>'; |
|
| 255 | + $html[] = '</div>'; |
|
| 256 | 256 | if (!$disabled && !empty($fieldWizardHtml)) { |
| 257 | - $html[] = '<div class="form-wizards-items-bottom">'; |
|
| 258 | - $html[] = $fieldWizardHtml; |
|
| 259 | - $html[] = '</div>'; |
|
| 257 | + $html[] = '<div class="form-wizards-items-bottom">'; |
|
| 258 | + $html[] = $fieldWizardHtml; |
|
| 259 | + $html[] = '</div>'; |
|
| 260 | 260 | } |
| 261 | - $html[] = '</div>'; |
|
| 261 | + $html[] = '</div>'; |
|
| 262 | 262 | $html[] = '</div>'; |
| 263 | 263 | } |
| 264 | 264 | |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | 'route' => GeneralUtility::_GP('route'), |
| 73 | 73 | 'action' => $this->request->getControllerActionName(), |
| 74 | 74 | 'controller' => $this->request->getControllerName(), |
| 75 | - 'compareGroupUidList' => array_map(static function ($value) { // uid as key and force value to 1 |
|
| 75 | + 'compareGroupUidList' => array_map(static function($value) { // uid as key and force value to 1 |
|
| 76 | 76 | return 1; |
| 77 | 77 | }, array_flip($compareGroupUidList)), |
| 78 | 78 | 'compareGroupList' => !empty($compareGroupUidList) ? $this->backendUserGroupRepository->findByUidList($compareGroupUidList) : [], |
@@ -190,7 +190,7 @@ |
||
| 190 | 190 | { |
| 191 | 191 | $files = scandir(Environment::getPublicPath() . '/'); |
| 192 | 192 | $files = is_array($files) ? $files : []; |
| 193 | - $files = array_filter($files, function ($file) { |
|
| 193 | + $files = array_filter($files, function($file) { |
|
| 194 | 194 | return @is_file(Environment::getPublicPath() . '/' . $file) && preg_match('~^' . self::FIRST_INSTALL_FILE_PATH . '.*~i', $file); |
| 195 | 195 | }); |
| 196 | 196 | return $files; |
@@ -38,49 +38,49 @@ |
||
| 38 | 38 | public function getFactories(): array |
| 39 | 39 | { |
| 40 | 40 | return [ |
| 41 | - SymfonyEventDispatcher::class => [ static::class, 'getSymfonyEventDispatcher' ], |
|
| 42 | - Cache\CacheManager::class => [ static::class, 'getCacheManager' ], |
|
| 43 | - Charset\CharsetConverter::class => [ static::class, 'getCharsetConverter' ], |
|
| 44 | - Configuration\SiteConfiguration::class => [ static::class, 'getSiteConfiguration' ], |
|
| 45 | - Console\CommandApplication::class => [ static::class, 'getConsoleCommandApplication' ], |
|
| 46 | - Console\CommandRegistry::class => [ static::class, 'getConsoleCommandRegistry' ], |
|
| 47 | - Context\Context::class => [ static::class, 'getContext' ], |
|
| 48 | - Crypto\PasswordHashing\PasswordHashFactory::class => [ static::class, 'getPasswordHashFactory' ], |
|
| 49 | - EventDispatcher\EventDispatcher::class => [ static::class, 'getEventDispatcher' ], |
|
| 50 | - EventDispatcher\ListenerProvider::class => [ static::class, 'getEventListenerProvider' ], |
|
| 51 | - Http\MiddlewareStackResolver::class => [ static::class, 'getMiddlewareStackResolver' ], |
|
| 52 | - Http\RequestFactory::class => [ static::class, 'getRequestFactory' ], |
|
| 53 | - Imaging\IconFactory::class => [ static::class, 'getIconFactory' ], |
|
| 54 | - Imaging\IconRegistry::class => [ static::class, 'getIconRegistry' ], |
|
| 55 | - Localization\LanguageServiceFactory::class => [ static::class, 'getLanguageServiceFactory' ], |
|
| 56 | - Localization\LanguageStore::class => [ static::class, 'getLanguageStore' ], |
|
| 57 | - Localization\Locales::class => [ static::class, 'getLocales' ], |
|
| 58 | - Localization\LocalizationFactory::class => [ static::class, 'getLocalizationFactory' ], |
|
| 59 | - Mail\TransportFactory::class => [ static::class, 'getMailTransportFactory' ], |
|
| 60 | - Messaging\FlashMessageService::class => [ static::class, 'getFlashMessageService' ], |
|
| 61 | - Package\FailsafePackageManager::class => [ static::class, 'getFailsafePackageManager' ], |
|
| 62 | - Registry::class => [ static::class, 'getRegistry' ], |
|
| 63 | - Resource\Index\FileIndexRepository::class => [ static::class, 'getFileIndexRepository' ], |
|
| 64 | - Resource\Index\MetaDataRepository::class => [ static::class, 'getMetaDataRepository' ], |
|
| 65 | - Resource\Driver\DriverRegistry::class => [ static::class, 'getDriverRegistry' ], |
|
| 66 | - Resource\ProcessedFileRepository::class => [ static::class, 'getProcessedFileRepository' ], |
|
| 67 | - Resource\ResourceFactory::class => [ static::class, 'getResourceFactory' ], |
|
| 68 | - Resource\StorageRepository::class => [ static::class, 'getStorageRepository' ], |
|
| 69 | - Service\DependencyOrderingService::class => [ static::class, 'getDependencyOrderingService' ], |
|
| 70 | - Service\FlexFormService::class => [ static::class, 'getFlexFormService' ], |
|
| 71 | - Service\OpcodeCacheService::class => [ static::class, 'getOpcodeCacheService' ], |
|
| 72 | - TimeTracker\TimeTracker::class => [ static::class, 'getTimeTracker' ], |
|
| 73 | - TypoScript\Parser\ConstantConfigurationParser::class => [ static::class, 'getTypoScriptConstantConfigurationParser' ], |
|
| 74 | - TypoScript\TypoScriptService::class => [ static::class, 'getTypoScriptService' ], |
|
| 75 | - 'middlewares' => [ static::class, 'getMiddlewares' ], |
|
| 41 | + SymfonyEventDispatcher::class => [static::class, 'getSymfonyEventDispatcher'], |
|
| 42 | + Cache\CacheManager::class => [static::class, 'getCacheManager'], |
|
| 43 | + Charset\CharsetConverter::class => [static::class, 'getCharsetConverter'], |
|
| 44 | + Configuration\SiteConfiguration::class => [static::class, 'getSiteConfiguration'], |
|
| 45 | + Console\CommandApplication::class => [static::class, 'getConsoleCommandApplication'], |
|
| 46 | + Console\CommandRegistry::class => [static::class, 'getConsoleCommandRegistry'], |
|
| 47 | + Context\Context::class => [static::class, 'getContext'], |
|
| 48 | + Crypto\PasswordHashing\PasswordHashFactory::class => [static::class, 'getPasswordHashFactory'], |
|
| 49 | + EventDispatcher\EventDispatcher::class => [static::class, 'getEventDispatcher'], |
|
| 50 | + EventDispatcher\ListenerProvider::class => [static::class, 'getEventListenerProvider'], |
|
| 51 | + Http\MiddlewareStackResolver::class => [static::class, 'getMiddlewareStackResolver'], |
|
| 52 | + Http\RequestFactory::class => [static::class, 'getRequestFactory'], |
|
| 53 | + Imaging\IconFactory::class => [static::class, 'getIconFactory'], |
|
| 54 | + Imaging\IconRegistry::class => [static::class, 'getIconRegistry'], |
|
| 55 | + Localization\LanguageServiceFactory::class => [static::class, 'getLanguageServiceFactory'], |
|
| 56 | + Localization\LanguageStore::class => [static::class, 'getLanguageStore'], |
|
| 57 | + Localization\Locales::class => [static::class, 'getLocales'], |
|
| 58 | + Localization\LocalizationFactory::class => [static::class, 'getLocalizationFactory'], |
|
| 59 | + Mail\TransportFactory::class => [static::class, 'getMailTransportFactory'], |
|
| 60 | + Messaging\FlashMessageService::class => [static::class, 'getFlashMessageService'], |
|
| 61 | + Package\FailsafePackageManager::class => [static::class, 'getFailsafePackageManager'], |
|
| 62 | + Registry::class => [static::class, 'getRegistry'], |
|
| 63 | + Resource\Index\FileIndexRepository::class => [static::class, 'getFileIndexRepository'], |
|
| 64 | + Resource\Index\MetaDataRepository::class => [static::class, 'getMetaDataRepository'], |
|
| 65 | + Resource\Driver\DriverRegistry::class => [static::class, 'getDriverRegistry'], |
|
| 66 | + Resource\ProcessedFileRepository::class => [static::class, 'getProcessedFileRepository'], |
|
| 67 | + Resource\ResourceFactory::class => [static::class, 'getResourceFactory'], |
|
| 68 | + Resource\StorageRepository::class => [static::class, 'getStorageRepository'], |
|
| 69 | + Service\DependencyOrderingService::class => [static::class, 'getDependencyOrderingService'], |
|
| 70 | + Service\FlexFormService::class => [static::class, 'getFlexFormService'], |
|
| 71 | + Service\OpcodeCacheService::class => [static::class, 'getOpcodeCacheService'], |
|
| 72 | + TimeTracker\TimeTracker::class => [static::class, 'getTimeTracker'], |
|
| 73 | + TypoScript\Parser\ConstantConfigurationParser::class => [static::class, 'getTypoScriptConstantConfigurationParser'], |
|
| 74 | + TypoScript\TypoScriptService::class => [static::class, 'getTypoScriptService'], |
|
| 75 | + 'middlewares' => [static::class, 'getMiddlewares'], |
|
| 76 | 76 | ]; |
| 77 | 77 | } |
| 78 | 78 | |
| 79 | 79 | public function getExtensions(): array |
| 80 | 80 | { |
| 81 | 81 | return [ |
| 82 | - EventDispatcherInterface::class => [ static::class, 'provideFallbackEventDispatcher' ], |
|
| 83 | - EventDispatcher\ListenerProvider::class => [ static::class, 'extendEventListenerProvider' ], |
|
| 82 | + EventDispatcherInterface::class => [static::class, 'provideFallbackEventDispatcher'], |
|
| 83 | + EventDispatcher\ListenerProvider::class => [static::class, 'extendEventListenerProvider'], |
|
| 84 | 84 | ] + parent::getExtensions(); |
| 85 | 85 | } |
| 86 | 86 | |
@@ -146,15 +146,15 @@ |
||
| 146 | 146 | $processedTitle = str_replace('\\n', '<br />', htmlspecialchars($fakeParameterArray['fieldConf']['label'])); |
| 147 | 147 | $html = []; |
| 148 | 148 | $html[] = '<div class="form-section">'; |
| 149 | - $html[] = '<div class="form-group t3js-formengine-palette-field t3js-formengine-validation-marker">'; |
|
| 150 | - $html[] = '<label class="t3js-formengine-label">'; |
|
| 151 | - $html[] = BackendUtility::wrapInHelp($parameterArray['_cshKey'], $flexFormFieldName, $processedTitle); |
|
| 152 | - $html[] = $showFieldName ? ('<code>[' . htmlspecialchars($flexFormFieldName) . ']</code>') : ''; |
|
| 153 | - $html[] = '</label>'; |
|
| 154 | - $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
|
| 155 | - $html[] = $childResult['html']; |
|
| 156 | - $html[] = '</div>'; |
|
| 157 | - $html[] = '</div>'; |
|
| 149 | + $html[] = '<div class="form-group t3js-formengine-palette-field t3js-formengine-validation-marker">'; |
|
| 150 | + $html[] = '<label class="t3js-formengine-label">'; |
|
| 151 | + $html[] = BackendUtility::wrapInHelp($parameterArray['_cshKey'], $flexFormFieldName, $processedTitle); |
|
| 152 | + $html[] = $showFieldName ? ('<code>[' . htmlspecialchars($flexFormFieldName) . ']</code>') : ''; |
|
| 153 | + $html[] = '</label>'; |
|
| 154 | + $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
|
| 155 | + $html[] = $childResult['html']; |
|
| 156 | + $html[] = '</div>'; |
|
| 157 | + $html[] = '</div>'; |
|
| 158 | 158 | $html[] = '</div>'; |
| 159 | 159 | $resultArray['html'] .= implode(LF, $html); |
| 160 | 160 | $resultArray = $this->mergeChildReturnIntoExistingResult($resultArray, $childResult, false); |
@@ -115,7 +115,7 @@ |
||
| 115 | 115 | 'description' => trim((string)$item->description), |
| 116 | 116 | ]; |
| 117 | 117 | } |
| 118 | - usort($items, function ($item1, $item2) { |
|
| 118 | + usort($items, function($item1, $item2) { |
|
| 119 | 119 | return new \DateTime($item2['pubDate']) <=> new \DateTime($item1['pubDate']); |
| 120 | 120 | }); |
| 121 | 121 | $items = array_slice($items, 0, $this->options['limit']); |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | ) { |
| 62 | 62 | $this->configuration = $configuration; |
| 63 | 63 | $this->view = $view; |
| 64 | - $this->options = array_merge(['text' => ''], $options); |
|
| 64 | + $this->options = array_merge(['text' => ''], $options); |
|
| 65 | 65 | $this->buttonProvider = $buttonProvider; |
| 66 | 66 | } |
| 67 | 67 | |
@@ -45,20 +45,20 @@ |
||
| 45 | 45 | public function getFactories(): array |
| 46 | 46 | { |
| 47 | 47 | return [ |
| 48 | - 'dashboard.presets' => [ static::class, 'getDashboardPresets' ], |
|
| 49 | - 'dashboard.widgetGroups' => [ static::class, 'getWidgetGroups' ], |
|
| 50 | - 'dashboard.widgets' => [ static::class, 'getWidgets' ], |
|
| 48 | + 'dashboard.presets' => [static::class, 'getDashboardPresets'], |
|
| 49 | + 'dashboard.widgetGroups' => [static::class, 'getWidgetGroups'], |
|
| 50 | + 'dashboard.widgets' => [static::class, 'getWidgets'], |
|
| 51 | 51 | ]; |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | public function getExtensions(): array |
| 55 | 55 | { |
| 56 | 56 | return [ |
| 57 | - DashboardPresetRegistry::class => [ static::class, 'configureDashboardPresetRegistry' ], |
|
| 58 | - WidgetGroupRegistry::class => [ static::class, 'configureWidgetGroupRegistry' ], |
|
| 59 | - 'dashboard.presets' => [ static::class, 'configureDashboardPresets' ], |
|
| 60 | - 'dashboard.widgetGroups' => [ static::class, 'configureWidgetGroups' ], |
|
| 61 | - 'dashboard.widgets' => [ static::class, 'configureWidgets' ] |
|
| 57 | + DashboardPresetRegistry::class => [static::class, 'configureDashboardPresetRegistry'], |
|
| 58 | + WidgetGroupRegistry::class => [static::class, 'configureWidgetGroupRegistry'], |
|
| 59 | + 'dashboard.presets' => [static::class, 'configureDashboardPresets'], |
|
| 60 | + 'dashboard.widgetGroups' => [static::class, 'configureWidgetGroups'], |
|
| 61 | + 'dashboard.widgets' => [static::class, 'configureWidgets'] |
|
| 62 | 62 | ] + parent::getExtensions(); |
| 63 | 63 | } |
| 64 | 64 | |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | |
| 73 | 73 | try { |
| 74 | 74 | $file = GeneralUtility::makeInstance(ResourceFactory::class)->getFileObject($fileUid); |
| 75 | - } catch (FileDoesNotExistException|\InvalidArgumentException $e) { |
|
| 75 | + } catch (FileDoesNotExistException | \InvalidArgumentException $e) { |
|
| 76 | 76 | continue; |
| 77 | 77 | } |
| 78 | 78 | |
@@ -99,8 +99,8 @@ discard block |
||
| 99 | 99 | if ($processedImages !== []) { |
| 100 | 100 | $iconIdentifier = $this->data['systemLanguageRows'][(int)$sysLanguageUid]['flagIconIdentifier'] ?? 'flags-multiple'; |
| 101 | 101 | $html[] = '<div class="t3-form-original-language">'; |
| 102 | - $html[] = $iconFactory->getIcon($iconIdentifier, Icon::SIZE_SMALL)->render(); |
|
| 103 | - $html[] = implode(LF, $processedImages); |
|
| 102 | + $html[] = $iconFactory->getIcon($iconIdentifier, Icon::SIZE_SMALL)->render(); |
|
| 103 | + $html[] = implode(LF, $processedImages); |
|
| 104 | 104 | $html[] = '</div>'; |
| 105 | 105 | } |
| 106 | 106 | } |