@@ -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); |
@@ -292,7 +292,7 @@ discard block |
||
292 | 292 | $direction = strtolower($direction); |
293 | 293 | @usort( |
294 | 294 | $items, |
295 | - function ($item1, $item2) use ($direction) { |
|
295 | + function($item1, $item2) use ($direction) { |
|
296 | 296 | if ($direction === 'desc') { |
297 | 297 | return strcasecmp($item1[0], $item2[0]) <= 0; |
298 | 298 | } |
@@ -304,7 +304,7 @@ discard block |
||
304 | 304 | $direction = strtolower($direction); |
305 | 305 | @usort( |
306 | 306 | $items, |
307 | - function ($item1, $item2) use ($direction) { |
|
307 | + function($item1, $item2) use ($direction) { |
|
308 | 308 | if ($direction === 'desc') { |
309 | 309 | return strcasecmp($item1[1], $item2[1]) <= 0; |
310 | 310 | } |
@@ -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 |
@@ -47,18 +47,18 @@ |
||
47 | 47 | public function getFactories(): array |
48 | 48 | { |
49 | 49 | return [ |
50 | - Application::class => [ static::class, 'getApplication' ], |
|
51 | - RequestHandler::class => [ static::class, 'getRequestHandler' ], |
|
52 | - RouteDispatcher::class => [ static::class, 'getRouteDispatcher' ], |
|
53 | - 'backend.middlewares' => [ static::class, 'getBackendMiddlewares' ], |
|
54 | - 'backend.routes' => [ static::class, 'getBackendRoutes' ], |
|
50 | + Application::class => [static::class, 'getApplication'], |
|
51 | + RequestHandler::class => [static::class, 'getRequestHandler'], |
|
52 | + RouteDispatcher::class => [static::class, 'getRouteDispatcher'], |
|
53 | + 'backend.middlewares' => [static::class, 'getBackendMiddlewares'], |
|
54 | + 'backend.routes' => [static::class, 'getBackendRoutes'], |
|
55 | 55 | ]; |
56 | 56 | } |
57 | 57 | |
58 | 58 | public function getExtensions(): array |
59 | 59 | { |
60 | 60 | return [ |
61 | - Router::class => [ static::class, 'configureBackendRouter' ], |
|
61 | + Router::class => [static::class, 'configureBackendRouter'], |
|
62 | 62 | ] + parent::getExtensions(); |
63 | 63 | } |
64 | 64 |
@@ -584,7 +584,7 @@ discard block |
||
584 | 584 | return ArrayUtility::keepItemsInArray( |
585 | 585 | $items, |
586 | 586 | $result['pageTsConfig']['TCEFORM.'][$table . '.'][$fieldName . '.']['keepItems'], |
587 | - function ($value) { |
|
587 | + function($value) { |
|
588 | 588 | return $value[1]; |
589 | 589 | } |
590 | 590 | ); |
@@ -732,7 +732,7 @@ discard block |
||
732 | 732 | } |
733 | 733 | |
734 | 734 | $allowedStorageIds = array_map( |
735 | - function (ResourceStorage $storage) { |
|
735 | + function(ResourceStorage $storage) { |
|
736 | 736 | return $storage->getUid(); |
737 | 737 | }, |
738 | 738 | $this->getBackendUser()->getFileStorages() |
@@ -740,7 +740,7 @@ discard block |
||
740 | 740 | |
741 | 741 | return array_filter( |
742 | 742 | $items, |
743 | - function (array $item) use ($allowedStorageIds) { |
|
743 | + function(array $item) use ($allowedStorageIds) { |
|
744 | 744 | $itemValue = $item[1] ?? null; |
745 | 745 | return empty($itemValue) |
746 | 746 | || in_array((int)$itemValue, $allowedStorageIds, true); |
@@ -834,7 +834,7 @@ discard block |
||
834 | 834 | } |
835 | 835 | // Sort fields by the translated value |
836 | 836 | if (!empty($excludeArrayTable)) { |
837 | - usort($excludeArrayTable, function (array $array1, array $array2) { |
|
837 | + usort($excludeArrayTable, function(array $array1, array $array2) { |
|
838 | 838 | $array1 = reset($array1); |
839 | 839 | $array2 = reset($array2); |
840 | 840 | if (is_string($array1) && is_string($array2)) { |
@@ -36,15 +36,15 @@ |
||
36 | 36 | public function getFactories(): array |
37 | 37 | { |
38 | 38 | return [ |
39 | - Object\Container\Container::class => [ static::class, 'getObjectContainer' ], |
|
40 | - Object\ObjectManager::class => [ static::class, 'getObjectManager' ], |
|
41 | - SignalSlot\Dispatcher::class => [ static::class, 'getSignalSlotDispatcher' ], |
|
42 | - Configuration\BackendConfigurationManager::class => [ static::class, 'getBackendConfigurationManager' ], |
|
43 | - Configuration\ConfigurationManager::class => [ static::class, 'getConfigurationManager' ], |
|
44 | - Reflection\ReflectionService::class => [ static::class, 'getReflectionService' ], |
|
45 | - Service\EnvironmentService::class => [ static::class, 'getEnvironmentService' ], |
|
46 | - Service\ExtensionService::class => [ static::class, 'getExtensionService' ], |
|
47 | - Security\Cryptography\HashService::class => [ static::class, 'getHashService' ], |
|
39 | + Object\Container\Container::class => [static::class, 'getObjectContainer'], |
|
40 | + Object\ObjectManager::class => [static::class, 'getObjectManager'], |
|
41 | + SignalSlot\Dispatcher::class => [static::class, 'getSignalSlotDispatcher'], |
|
42 | + Configuration\BackendConfigurationManager::class => [static::class, 'getBackendConfigurationManager'], |
|
43 | + Configuration\ConfigurationManager::class => [static::class, 'getConfigurationManager'], |
|
44 | + Reflection\ReflectionService::class => [static::class, 'getReflectionService'], |
|
45 | + Service\EnvironmentService::class => [static::class, 'getEnvironmentService'], |
|
46 | + Service\ExtensionService::class => [static::class, 'getExtensionService'], |
|
47 | + Security\Cryptography\HashService::class => [static::class, 'getHashService'], |
|
48 | 48 | ]; |
49 | 49 | } |
50 | 50 |
@@ -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'), |
@@ -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); |