@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | public function getDescription(): string |
107 | 107 | { |
108 | 108 | return 'Form definition files need to be named *.form.yaml to have a way of distinguishing form yaml ' . |
109 | - 'configuration files from other yaml configuration files. This wizard will analyze and rename found files.'; |
|
109 | + 'configuration files from other yaml configuration files. This wizard will analyze and rename found files.'; |
|
110 | 110 | } |
111 | 111 | |
112 | 112 | /** |
@@ -187,8 +187,8 @@ discard block |
||
187 | 187 | } else { |
188 | 188 | $this->output->writeln( |
189 | 189 | '<warning>There are references to form definitions which are located in extensions and thus cannot be renamed automatically by this wizard.' |
190 | - . 'This form definitions from extensions that do not end with .form.yaml have to be renamed by hand!' |
|
191 | - . 'After that you can run this wizard again to migrate the references.</warning>' |
|
190 | + . 'This form definitions from extensions that do not end with .form.yaml have to be renamed by hand!' |
|
191 | + . 'After that you can run this wizard again to migrate the references.</warning>' |
|
192 | 192 | ); |
193 | 193 | } |
194 | 194 | } |
@@ -345,7 +345,7 @@ discard block |
||
345 | 345 | $success = false; |
346 | 346 | $this->output->writeln(sprintf( |
347 | 347 | '<error>Failed to rename form definition "%s" to "%s". You have to be rename it by hand!. ' |
348 | - . 'After that you can run this wizard again to migrate the references.</error>', |
|
348 | + . 'After that you can run this wizard again to migrate the references.</error>', |
|
349 | 349 | $formDefinitionInformation['persistenceIdentifier'], |
350 | 350 | $this->getNewPersistenceIdentifier($formDefinitionInformation['persistenceIdentifier']) |
351 | 351 | )); |
@@ -373,7 +373,7 @@ discard block |
||
373 | 373 | */ |
374 | 374 | protected function getFormDefinitionsInformationFromStorages(): array |
375 | 375 | { |
376 | - $formDefinitionsInformation = []; |
|
376 | + $formDefinitionsInformation = []; |
|
377 | 377 | |
378 | 378 | foreach ($this->persistenceManager->retrieveYamlFilesFromStorageFolders() as $file) { |
379 | 379 | $persistenceIdentifier = $file->getCombinedIdentifier(); |
@@ -399,7 +399,7 @@ discard block |
||
399 | 399 | */ |
400 | 400 | protected function getFormDefinitionsInformationFromExtensions(): array |
401 | 401 | { |
402 | - $formDefinitionsInformation = []; |
|
402 | + $formDefinitionsInformation = []; |
|
403 | 403 | |
404 | 404 | foreach ($this->persistenceManager->retrieveYamlFilesFromExtensionFolders() as $persistenceIdentifier => $_) { |
405 | 405 | try { |
@@ -603,7 +603,7 @@ discard block |
||
603 | 603 | |
604 | 604 | return array_filter( |
605 | 605 | $flexform['data'], |
606 | - function ($key) { |
|
606 | + function($key) { |
|
607 | 607 | return $key !== 'sDEF' && strlen($key) === 32; |
608 | 608 | }, |
609 | 609 | ARRAY_FILTER_USE_KEY |
@@ -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 | ); |
@@ -155,7 +155,7 @@ |
||
155 | 155 | $incompleteWizards = $upgradeWizardsService->getUpgradeWizardsList(); |
156 | 156 | $incompleteWizards = array_filter( |
157 | 157 | $incompleteWizards, |
158 | - function ($wizard) { |
|
158 | + function($wizard) { |
|
159 | 159 | return $wizard['shouldRenderWizard']; |
160 | 160 | } |
161 | 161 | ); |
@@ -196,7 +196,7 @@ |
||
196 | 196 | $attributes = array_merge($attributes, $options['additionalAttributes']); |
197 | 197 | } |
198 | 198 | if (isset($options['data']) && is_array($options['data'])) { |
199 | - array_walk($options['data'], function (&$value, $key) use (&$attributes) { |
|
199 | + array_walk($options['data'], function(&$value, $key) use (&$attributes) { |
|
200 | 200 | $attributes['data-' . $key] = $value; |
201 | 201 | }); |
202 | 202 | } |
@@ -180,7 +180,7 @@ |
||
180 | 180 | if (isset($options['data']) && is_array($options['data'])) { |
181 | 181 | array_walk( |
182 | 182 | $options['data'], |
183 | - function (&$value, $key) use (&$attributes) { |
|
183 | + function(&$value, $key) use (&$attributes) { |
|
184 | 184 | $attributes['data-' . $key] = $value; |
185 | 185 | } |
186 | 186 | ); |
@@ -88,8 +88,8 @@ |
||
88 | 88 | public function getDescription(): string |
89 | 89 | { |
90 | 90 | return 'The extension "rsaauth" adds a public/private key based encryption for Backend and Frontend' |
91 | - . ' login passwords. The approach is limited and has various flaws. The extension is fully' |
|
92 | - . ' obsolete if the instance uses HTTPS.'; |
|
91 | + . ' login passwords. The approach is limited and has various flaws. The extension is fully' |
|
92 | + . ' obsolete if the instance uses HTTPS.'; |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | /** |
@@ -88,7 +88,7 @@ |
||
88 | 88 | public function getDescription(): string |
89 | 89 | { |
90 | 90 | return 'The extension "taskcenter" adds a view for Backend users to run configured tasks.' |
91 | - . ' It is only useful if properly configured.'; |
|
91 | + . ' It is only useful if properly configured.'; |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | /** |
@@ -117,16 +117,16 @@ discard block |
||
117 | 117 | if ($config['readOnly']) { |
118 | 118 | $html = []; |
119 | 119 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
120 | - $html[] = $fieldInformationHtml; |
|
121 | - $html[] = '<div class="form-wizards-wrap">'; |
|
122 | - $html[] = '<div class="form-wizards-element">'; |
|
123 | - $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
|
124 | - $html[] = '<textarea class="form-control" rows="' . $rows . '" disabled>'; |
|
125 | - $html[] = htmlspecialchars($itemValue); |
|
126 | - $html[] = '</textarea>'; |
|
127 | - $html[] = '</div>'; |
|
128 | - $html[] = '</div>'; |
|
129 | - $html[] = '</div>'; |
|
120 | + $html[] = $fieldInformationHtml; |
|
121 | + $html[] = '<div class="form-wizards-wrap">'; |
|
122 | + $html[] = '<div class="form-wizards-element">'; |
|
123 | + $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
|
124 | + $html[] = '<textarea class="form-control" rows="' . $rows . '" disabled>'; |
|
125 | + $html[] = htmlspecialchars($itemValue); |
|
126 | + $html[] = '</textarea>'; |
|
127 | + $html[] = '</div>'; |
|
128 | + $html[] = '</div>'; |
|
129 | + $html[] = '</div>'; |
|
130 | 130 | $html[] = '</div>'; |
131 | 131 | $resultArray['html'] = implode(LF, $html); |
132 | 132 | return $resultArray; |
@@ -196,26 +196,26 @@ discard block |
||
196 | 196 | |
197 | 197 | $html = []; |
198 | 198 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
199 | - $html[] = $fieldInformationHtml; |
|
200 | - $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
|
201 | - $html[] = '<div class="form-wizards-wrap">'; |
|
202 | - $html[] = '<div class="form-wizards-element">'; |
|
203 | - $html[] = '<textarea ' . GeneralUtility::implodeAttributes($attributes, true) . '>' . htmlspecialchars($itemValue) . '</textarea>'; |
|
204 | - $html[] = '</div>'; |
|
199 | + $html[] = $fieldInformationHtml; |
|
200 | + $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
|
201 | + $html[] = '<div class="form-wizards-wrap">'; |
|
202 | + $html[] = '<div class="form-wizards-element">'; |
|
203 | + $html[] = '<textarea ' . GeneralUtility::implodeAttributes($attributes, true) . '>' . htmlspecialchars($itemValue) . '</textarea>'; |
|
204 | + $html[] = '</div>'; |
|
205 | 205 | if (!empty($fieldControlHtml)) { |
206 | - $html[] = '<div class="form-wizards-items-aside">'; |
|
207 | - $html[] = '<div class="btn-group">'; |
|
208 | - $html[] = $fieldControlHtml; |
|
209 | - $html[] = '</div>'; |
|
210 | - $html[] = '</div>'; |
|
206 | + $html[] = '<div class="form-wizards-items-aside">'; |
|
207 | + $html[] = '<div class="btn-group">'; |
|
208 | + $html[] = $fieldControlHtml; |
|
209 | + $html[] = '</div>'; |
|
210 | + $html[] = '</div>'; |
|
211 | 211 | } |
212 | 212 | if (!empty($fieldWizardHtml)) { |
213 | 213 | $html[] = '<div class="form-wizards-items-bottom">'; |
214 | 214 | $html[] = $fieldWizardHtml; |
215 | 215 | $html[] = '</div>'; |
216 | 216 | } |
217 | - $html[] = '</div>'; |
|
218 | - $html[] = '</div>'; |
|
217 | + $html[] = '</div>'; |
|
218 | + $html[] = '</div>'; |
|
219 | 219 | $html[] = '</div>'; |
220 | 220 | |
221 | 221 | $resultArray['requireJsModules'][] = ['TYPO3/CMS/Backend/FormEngine/Element/TextTableElement' => ' |