@@ -700,9 +700,9 @@ |
||
700 | 700 | $iconPath = PathUtility::stripPathSitePrefix($fullPath); |
701 | 701 | $this->iconFileNameCache[$imageType] = $imageInfo->getWidth() |
702 | 702 | ? '<img src="' . $iconPath |
703 | - . '" width="' . $imageInfo->getWidth() |
|
704 | - . '" height="' . $imageInfo->getHeight() |
|
705 | - . '" title="' . htmlspecialchars($alt) . '" alt="" />' |
|
703 | + . '" width="' . $imageInfo->getWidth() |
|
704 | + . '" height="' . $imageInfo->getHeight() |
|
705 | + . '" title="' . htmlspecialchars($alt) . '" alt="" />' |
|
706 | 706 | : ''; |
707 | 707 | } |
708 | 708 | } |
@@ -872,8 +872,8 @@ |
||
872 | 872 | ->bulkInsert( |
873 | 873 | 'index_stat_word', |
874 | 874 | $entries, |
875 | - [ 'word', 'tstamp', 'pageid' ], |
|
876 | - [ \PDO::PARAM_STR, \PDO::PARAM_INT, \PDO::PARAM_INT ] |
|
875 | + ['word', 'tstamp', 'pageid'], |
|
876 | + [\PDO::PARAM_STR, \PDO::PARAM_INT, \PDO::PARAM_INT] |
|
877 | 877 | ); |
878 | 878 | } |
879 | 879 |
@@ -565,7 +565,7 @@ |
||
565 | 565 | } else { |
566 | 566 | $pArray[$cEl['uid']]['_templates'][] = $row; |
567 | 567 | } |
568 | - uasort($pArray, function ($a, $b) { |
|
568 | + uasort($pArray, function($a, $b) { |
|
569 | 569 | return $a['sorting'] - $b['sorting']; |
570 | 570 | }); |
571 | 571 | } |
@@ -78,8 +78,8 @@ discard block |
||
78 | 78 | $html = []; |
79 | 79 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
80 | 80 | $html[] = $fieldInformationHtml; |
81 | - $html[] = '<div class="form-wizards-wrap">'; |
|
82 | - $html[] = '<div class="form-wizards-element">'; |
|
81 | + $html[] = '<div class="form-wizards-wrap">'; |
|
82 | + $html[] = '<div class="form-wizards-element">'; |
|
83 | 83 | foreach ($this->data['parameterArray']['fieldConf']['config']['items'] as $itemNumber => $itemLabelAndValue) { |
84 | 84 | $label = $itemLabelAndValue[0]; |
85 | 85 | $value = $itemLabelAndValue[1]; |
@@ -87,26 +87,26 @@ discard block |
||
87 | 87 | $radioChecked = (string)$value === (string)$this->data['parameterArray']['itemFormElValue'] ? ' checked="checked"' : ''; |
88 | 88 | |
89 | 89 | $html[] = '<div class="radio' . $disabled . '">'; |
90 | - $html[] = '<label for="' . $radioId . '">'; |
|
91 | - $html[] = '<input type="radio"'; |
|
92 | - $html[] = ' name="' . htmlspecialchars($this->data['parameterArray']['itemFormElName']) . '"'; |
|
93 | - $html[] = ' id="' . $radioId . '"'; |
|
94 | - $html[] = ' value="' . htmlspecialchars($value) . '"'; |
|
95 | - $html[] = $radioChecked; |
|
96 | - $html[] = $disabled; |
|
97 | - $html[] = ' onclick="' . htmlspecialchars(implode('', $this->data['parameterArray']['fieldChangeFunc'])) . '"'; |
|
98 | - $html[] = '/>'; |
|
99 | - $html[] = htmlspecialchars($this->appendValueToLabelInDebugMode($label, $value)); |
|
100 | - $html[] = '</label>'; |
|
90 | + $html[] = '<label for="' . $radioId . '">'; |
|
91 | + $html[] = '<input type="radio"'; |
|
92 | + $html[] = ' name="' . htmlspecialchars($this->data['parameterArray']['itemFormElName']) . '"'; |
|
93 | + $html[] = ' id="' . $radioId . '"'; |
|
94 | + $html[] = ' value="' . htmlspecialchars($value) . '"'; |
|
95 | + $html[] = $radioChecked; |
|
96 | + $html[] = $disabled; |
|
97 | + $html[] = ' onclick="' . htmlspecialchars(implode('', $this->data['parameterArray']['fieldChangeFunc'])) . '"'; |
|
98 | + $html[] = '/>'; |
|
99 | + $html[] = htmlspecialchars($this->appendValueToLabelInDebugMode($label, $value)); |
|
100 | + $html[] = '</label>'; |
|
101 | 101 | $html[] = '</div>'; |
102 | 102 | } |
103 | - $html[] = '</div>'; |
|
103 | + $html[] = '</div>'; |
|
104 | 104 | if (!$disabled && !empty($fieldWizardHtml)) { |
105 | - $html[] = '<div class="form-wizards-items-bottom">'; |
|
106 | - $html[] = $fieldWizardHtml; |
|
107 | - $html[] = '</div>'; |
|
105 | + $html[] = '<div class="form-wizards-items-bottom">'; |
|
106 | + $html[] = $fieldWizardHtml; |
|
107 | + $html[] = '</div>'; |
|
108 | 108 | } |
109 | - $html[] = '</div>'; |
|
109 | + $html[] = '</div>'; |
|
110 | 110 | $html[] = '</div>'; |
111 | 111 | |
112 | 112 | $resultArray['html'] = implode(LF, $html); |
@@ -94,7 +94,7 @@ |
||
94 | 94 | return $this->slugFieldNamesPerTable[$tableName] = array_keys( |
95 | 95 | array_filter( |
96 | 96 | $GLOBALS['TCA'][$tableName]['columns'] ?? [], |
97 | - function (array $settings) { |
|
97 | + function(array $settings) { |
|
98 | 98 | return ($settings['config']['type'] ?? null) === 'slug'; |
99 | 99 | } |
100 | 100 | ) |
@@ -125,7 +125,7 @@ |
||
125 | 125 | ($module instanceof ConfigurableInterface && $module->isEnabled()) |
126 | 126 | || !($module instanceof ConfigurableInterface) |
127 | 127 | ) |
128 | - ) { |
|
128 | + ) { |
|
129 | 129 | $module->onSubmit($configurationToSave, $request); |
130 | 130 | } |
131 | 131 | if ($module instanceof SubmoduleProviderInterface) { |
@@ -52,8 +52,8 @@ |
||
52 | 52 | public function __construct(ConfigurationService $configurationService = null, ModuleLoader $moduleLoader = null) |
53 | 53 | { |
54 | 54 | $this->configurationService = $configurationService |
55 | - ?? |
|
56 | - GeneralUtility::makeInstance(ConfigurationService::class); |
|
55 | + ?? |
|
56 | + GeneralUtility::makeInstance(ConfigurationService::class); |
|
57 | 57 | $this->adminPanelModuleConfiguration = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules'] ?? []; |
58 | 58 | $this->moduleLoader = $moduleLoader ?? GeneralUtility::makeInstance(ModuleLoader::class); |
59 | 59 | } |
@@ -81,8 +81,8 @@ |
||
81 | 81 | $this->moduleLoader = $moduleLoader ?? GeneralUtility::makeInstance(ModuleLoader::class); |
82 | 82 | $this->uriBuilder = $uriBuilder ?? GeneralUtility::makeInstance(UriBuilder::class); |
83 | 83 | $this->configurationService = $configurationService |
84 | - ?? |
|
85 | - GeneralUtility::makeInstance(ConfigurationService::class); |
|
84 | + ?? |
|
85 | + GeneralUtility::makeInstance(ConfigurationService::class); |
|
86 | 86 | $this->adminPanelModuleConfiguration = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules'] ?? []; |
87 | 87 | } |
88 | 88 |
@@ -133,12 +133,12 @@ |
||
133 | 133 | $requestId = $request->getAttribute('adminPanelRequestId'); |
134 | 134 | $data = $cache->get($requestId); |
135 | 135 | $moduleResources = ResourceUtility::getAdditionalResourcesForModules($this->modules); |
136 | - $settingsModules = array_filter($this->modules, function (ModuleInterface $module) { |
|
136 | + $settingsModules = array_filter($this->modules, function(ModuleInterface $module) { |
|
137 | 137 | return $module instanceof PageSettingsProviderInterface; |
138 | 138 | }); |
139 | 139 | $parentModules = array_filter( |
140 | 140 | $this->modules, |
141 | - function (ModuleInterface $module) { |
|
141 | + function(ModuleInterface $module) { |
|
142 | 142 | return $module instanceof SubmoduleProviderInterface && $module instanceof ShortInfoProviderInterface; |
143 | 143 | } |
144 | 144 | ); |
@@ -67,7 +67,7 @@ |
||
67 | 67 | }, |
68 | 68 | function ($arguments, $str) { |
69 | 69 | return VersionNumberUtility::convertVersionNumberToInteger(TYPO3_branch) >= |
70 | - VersionNumberUtility::convertVersionNumberToInteger($str); |
|
70 | + VersionNumberUtility::convertVersionNumberToInteger($str); |
|
71 | 71 | } |
72 | 72 | ); |
73 | 73 | } |
@@ -51,10 +51,10 @@ discard block |
||
51 | 51 | { |
52 | 52 | return new ExpressionFunction( |
53 | 53 | 'ip', |
54 | - function () { |
|
54 | + function() { |
|
55 | 55 | // Not implemented, we only use the evaluator |
56 | 56 | }, |
57 | - function ($arguments, $str) { |
|
57 | + function($arguments, $str) { |
|
58 | 58 | if ($str === 'devIP') { |
59 | 59 | $str = trim($GLOBALS['TYPO3_CONF_VARS']['SYS']['devIPmask'] ?? ''); |
60 | 60 | } |
@@ -67,10 +67,10 @@ discard block |
||
67 | 67 | { |
68 | 68 | return new ExpressionFunction( |
69 | 69 | 'compatVersion', |
70 | - function () { |
|
70 | + function() { |
|
71 | 71 | // Not implemented, we only use the evaluator |
72 | 72 | }, |
73 | - function ($arguments, $str) { |
|
73 | + function($arguments, $str) { |
|
74 | 74 | return VersionNumberUtility::convertVersionNumberToInteger(TYPO3_branch) >= |
75 | 75 | VersionNumberUtility::convertVersionNumberToInteger($str); |
76 | 76 | } |
@@ -79,9 +79,9 @@ discard block |
||
79 | 79 | |
80 | 80 | protected function getLikeFunction(): ExpressionFunction |
81 | 81 | { |
82 | - return new ExpressionFunction('like', function () { |
|
82 | + return new ExpressionFunction('like', function() { |
|
83 | 83 | // Not implemented, we only use the evaluator |
84 | - }, function ($arguments, $haystack, $needle) { |
|
84 | + }, function($arguments, $haystack, $needle) { |
|
85 | 85 | $result = StringUtility::searchStringWildcard((string)$haystack, (string)$needle); |
86 | 86 | return $result; |
87 | 87 | }); |
@@ -94,9 +94,9 @@ discard block |
||
94 | 94 | |
95 | 95 | protected function getDateFunction(): ExpressionFunction |
96 | 96 | { |
97 | - return new ExpressionFunction('date', function () { |
|
97 | + return new ExpressionFunction('date', function() { |
|
98 | 98 | // Not implemented, we only use the evaluator |
99 | - }, function ($arguments, $format) { |
|
99 | + }, function($arguments, $format) { |
|
100 | 100 | return GeneralUtility::makeInstance(Context::class) |
101 | 101 | ->getAspect('date')->getDateTime()->format($format); |
102 | 102 | }); |
@@ -104,9 +104,9 @@ discard block |
||
104 | 104 | |
105 | 105 | protected function getFeatureToggleFunction(): ExpressionFunction |
106 | 106 | { |
107 | - return new ExpressionFunction('feature', function () { |
|
107 | + return new ExpressionFunction('feature', function() { |
|
108 | 108 | // Not implemented, we only use the evaluator |
109 | - }, function ($arguments, $featureName) { |
|
109 | + }, function($arguments, $featureName) { |
|
110 | 110 | return GeneralUtility::makeInstance(Features::class) |
111 | 111 | ->isFeatureEnabled($featureName); |
112 | 112 | }); |
@@ -114,9 +114,9 @@ discard block |
||
114 | 114 | |
115 | 115 | public function getTraverseArrayFunction(): ExpressionFunction |
116 | 116 | { |
117 | - return new ExpressionFunction('traverse', function () { |
|
117 | + return new ExpressionFunction('traverse', function() { |
|
118 | 118 | // Not implemented, we only use the evaluator |
119 | - }, function ($arguments, $array, $path) { |
|
119 | + }, function($arguments, $array, $path) { |
|
120 | 120 | if (!is_array($array) || !is_string($path) || $path === '') { |
121 | 121 | return ''; |
122 | 122 | } |
@@ -167,7 +167,7 @@ |
||
167 | 167 | // This callback filters empty strings, array and null but keeps zero integers |
168 | 168 | $parameters = ArrayUtility::filterRecursive( |
169 | 169 | $parameters, |
170 | - function ($item) { |
|
170 | + function($item) { |
|
171 | 171 | return $item !== '' && $item !== [] && $item !== null; |
172 | 172 | } |
173 | 173 | ); |