@@ -111,58 +111,58 @@ |
||
| 111 | 111 | $thisSlugId = 't3js-form-field-slug-id' . StringUtility::getUniqueId(); |
| 112 | 112 | $mainFieldHtml = []; |
| 113 | 113 | $mainFieldHtml[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
| 114 | - $mainFieldHtml[] = $fieldInformationHtml; |
|
| 115 | - $mainFieldHtml[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px" id="' . htmlspecialchars($thisSlugId) . '">'; |
|
| 116 | - $mainFieldHtml[] = '<div class="form-wizards-wrap">'; |
|
| 117 | - $mainFieldHtml[] = '<div class="form-wizards-element">'; |
|
| 118 | - $mainFieldHtml[] = '<div class="input-group">'; |
|
| 119 | - $mainFieldHtml[] = ($baseUrl ? '<span class="input-group-addon">' . htmlspecialchars($baseUrl) . '</span>' : ''); |
|
| 114 | + $mainFieldHtml[] = $fieldInformationHtml; |
|
| 115 | + $mainFieldHtml[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px" id="' . htmlspecialchars($thisSlugId) . '">'; |
|
| 116 | + $mainFieldHtml[] = '<div class="form-wizards-wrap">'; |
|
| 117 | + $mainFieldHtml[] = '<div class="form-wizards-element">'; |
|
| 118 | + $mainFieldHtml[] = '<div class="input-group">'; |
|
| 119 | + $mainFieldHtml[] = ($baseUrl ? '<span class="input-group-addon">' . htmlspecialchars($baseUrl) . '</span>' : ''); |
|
| 120 | 120 | // We deal with 3 fields here: a readonly field for current / default values, an input |
| 121 | 121 | // field to manipulate the value, and the final hidden field used to send the value |
| 122 | - $mainFieldHtml[] = '<input'; |
|
| 123 | - $mainFieldHtml[] = ' class="form-control t3js-form-field-slug-readonly"'; |
|
| 124 | - $mainFieldHtml[] = ' data-toggle="tooltip"'; |
|
| 125 | - $mainFieldHtml[] = ' data-title="' . htmlspecialchars($itemValue) . '"'; |
|
| 126 | - $mainFieldHtml[] = ' value="' . htmlspecialchars($itemValue) . '"'; |
|
| 127 | - $mainFieldHtml[] = ' readonly'; |
|
| 128 | - $mainFieldHtml[] = ' />'; |
|
| 129 | - $mainFieldHtml[] = '<input type="text"'; |
|
| 130 | - $mainFieldHtml[] = ' id="' . htmlspecialchars(StringUtility::getUniqueId('formengine-input-')) . '"'; |
|
| 131 | - $mainFieldHtml[] = ' class="form-control t3js-form-field-slug-input hidden"'; |
|
| 132 | - $mainFieldHtml[] = ' placeholder="' . htmlspecialchars($row['slug'] ?? '/') . '"'; |
|
| 133 | - $mainFieldHtml[] = ' data-formengine-validation-rules="' . htmlspecialchars($this->getValidationDataAsJsonString($config)) . '"'; |
|
| 134 | - $mainFieldHtml[] = ' data-formengine-input-params="' . htmlspecialchars(json_encode(['field' => $parameterArray['itemFormElName'], 'evalList' => implode(',', $evalList)])) . '"'; |
|
| 135 | - $mainFieldHtml[] = ' data-formengine-input-name="' . htmlspecialchars($parameterArray['itemFormElName']) . '"'; |
|
| 136 | - $mainFieldHtml[] = ' />'; |
|
| 137 | - $mainFieldHtml[] = '<span class="input-group-btn">'; |
|
| 138 | - $mainFieldHtml[] = '<button class="btn btn-default t3js-form-field-slug-toggle" type="button" title="' . htmlspecialchars($toggleButtonTitle) . '">'; |
|
| 139 | - $mainFieldHtml[] = $this->iconFactory->getIcon('actions-version-workspaces-preview-link', Icon::SIZE_SMALL)->render(); |
|
| 140 | - $mainFieldHtml[] = '</button>'; |
|
| 141 | - $mainFieldHtml[] = '<button class="btn btn-default t3js-form-field-slug-recreate" type="button" title="' . htmlspecialchars($recreateButtonTitle) . '">'; |
|
| 142 | - $mainFieldHtml[] = $this->iconFactory->getIcon('actions-refresh', Icon::SIZE_SMALL)->render(); |
|
| 143 | - $mainFieldHtml[] = '</button>'; |
|
| 144 | - $mainFieldHtml[] = '</span>'; |
|
| 145 | - $mainFieldHtml[] = '<input type="hidden"'; |
|
| 146 | - $mainFieldHtml[] = ' class="t3js-form-field-slug-hidden"'; |
|
| 147 | - $mainFieldHtml[] = ' name="' . htmlspecialchars($parameterArray['itemFormElName']) . '"'; |
|
| 148 | - $mainFieldHtml[] = ' value="' . htmlspecialchars($itemValue) . '"'; |
|
| 149 | - $mainFieldHtml[] = ' />'; |
|
| 150 | - $mainFieldHtml[] = '</div>'; |
|
| 151 | - $mainFieldHtml[] = '</div>'; |
|
| 122 | + $mainFieldHtml[] = '<input'; |
|
| 123 | + $mainFieldHtml[] = ' class="form-control t3js-form-field-slug-readonly"'; |
|
| 124 | + $mainFieldHtml[] = ' data-toggle="tooltip"'; |
|
| 125 | + $mainFieldHtml[] = ' data-title="' . htmlspecialchars($itemValue) . '"'; |
|
| 126 | + $mainFieldHtml[] = ' value="' . htmlspecialchars($itemValue) . '"'; |
|
| 127 | + $mainFieldHtml[] = ' readonly'; |
|
| 128 | + $mainFieldHtml[] = ' />'; |
|
| 129 | + $mainFieldHtml[] = '<input type="text"'; |
|
| 130 | + $mainFieldHtml[] = ' id="' . htmlspecialchars(StringUtility::getUniqueId('formengine-input-')) . '"'; |
|
| 131 | + $mainFieldHtml[] = ' class="form-control t3js-form-field-slug-input hidden"'; |
|
| 132 | + $mainFieldHtml[] = ' placeholder="' . htmlspecialchars($row['slug'] ?? '/') . '"'; |
|
| 133 | + $mainFieldHtml[] = ' data-formengine-validation-rules="' . htmlspecialchars($this->getValidationDataAsJsonString($config)) . '"'; |
|
| 134 | + $mainFieldHtml[] = ' data-formengine-input-params="' . htmlspecialchars(json_encode(['field' => $parameterArray['itemFormElName'], 'evalList' => implode(',', $evalList)])) . '"'; |
|
| 135 | + $mainFieldHtml[] = ' data-formengine-input-name="' . htmlspecialchars($parameterArray['itemFormElName']) . '"'; |
|
| 136 | + $mainFieldHtml[] = ' />'; |
|
| 137 | + $mainFieldHtml[] = '<span class="input-group-btn">'; |
|
| 138 | + $mainFieldHtml[] = '<button class="btn btn-default t3js-form-field-slug-toggle" type="button" title="' . htmlspecialchars($toggleButtonTitle) . '">'; |
|
| 139 | + $mainFieldHtml[] = $this->iconFactory->getIcon('actions-version-workspaces-preview-link', Icon::SIZE_SMALL)->render(); |
|
| 140 | + $mainFieldHtml[] = '</button>'; |
|
| 141 | + $mainFieldHtml[] = '<button class="btn btn-default t3js-form-field-slug-recreate" type="button" title="' . htmlspecialchars($recreateButtonTitle) . '">'; |
|
| 142 | + $mainFieldHtml[] = $this->iconFactory->getIcon('actions-refresh', Icon::SIZE_SMALL)->render(); |
|
| 143 | + $mainFieldHtml[] = '</button>'; |
|
| 144 | + $mainFieldHtml[] = '</span>'; |
|
| 145 | + $mainFieldHtml[] = '<input type="hidden"'; |
|
| 146 | + $mainFieldHtml[] = ' class="t3js-form-field-slug-hidden"'; |
|
| 147 | + $mainFieldHtml[] = ' name="' . htmlspecialchars($parameterArray['itemFormElName']) . '"'; |
|
| 148 | + $mainFieldHtml[] = ' value="' . htmlspecialchars($itemValue) . '"'; |
|
| 149 | + $mainFieldHtml[] = ' />'; |
|
| 150 | + $mainFieldHtml[] = '</div>'; |
|
| 151 | + $mainFieldHtml[] = '</div>'; |
|
| 152 | 152 | if (!empty($fieldControlHtml)) { |
| 153 | - $mainFieldHtml[] = '<div class="form-wizards-items-aside">'; |
|
| 154 | - $mainFieldHtml[] = '<div class="btn-group">'; |
|
| 155 | - $mainFieldHtml[] = $fieldControlHtml; |
|
| 156 | - $mainFieldHtml[] = '</div>'; |
|
| 157 | - $mainFieldHtml[] = '</div>'; |
|
| 153 | + $mainFieldHtml[] = '<div class="form-wizards-items-aside">'; |
|
| 154 | + $mainFieldHtml[] = '<div class="btn-group">'; |
|
| 155 | + $mainFieldHtml[] = $fieldControlHtml; |
|
| 156 | + $mainFieldHtml[] = '</div>'; |
|
| 157 | + $mainFieldHtml[] = '</div>'; |
|
| 158 | 158 | } |
| 159 | - $mainFieldHtml[] = '<div class="form-wizards-items-bottom">'; |
|
| 160 | - $mainFieldHtml[] = '<span class="t3js-form-proposal-accepted hidden label label-success">' . htmlspecialchars($successMessage) . '<span>/abc/</span></span>'; |
|
| 161 | - $mainFieldHtml[] = '<span class="t3js-form-proposal-different hidden label label-warning">' . htmlspecialchars($errorMessage) . '<span>/abc/</span></span>'; |
|
| 162 | - $mainFieldHtml[] = $fieldWizardHtml; |
|
| 163 | - $mainFieldHtml[] = '</div>'; |
|
| 164 | - $mainFieldHtml[] = '</div>'; |
|
| 165 | - $mainFieldHtml[] = '</div>'; |
|
| 159 | + $mainFieldHtml[] = '<div class="form-wizards-items-bottom">'; |
|
| 160 | + $mainFieldHtml[] = '<span class="t3js-form-proposal-accepted hidden label label-success">' . htmlspecialchars($successMessage) . '<span>/abc/</span></span>'; |
|
| 161 | + $mainFieldHtml[] = '<span class="t3js-form-proposal-different hidden label label-warning">' . htmlspecialchars($errorMessage) . '<span>/abc/</span></span>'; |
|
| 162 | + $mainFieldHtml[] = $fieldWizardHtml; |
|
| 163 | + $mainFieldHtml[] = '</div>'; |
|
| 164 | + $mainFieldHtml[] = '</div>'; |
|
| 165 | + $mainFieldHtml[] = '</div>'; |
|
| 166 | 166 | $mainFieldHtml[] = '</div>'; |
| 167 | 167 | |
| 168 | 168 | $resultArray['html'] = implode(LF, $mainFieldHtml); |
@@ -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); |
@@ -94,27 +94,27 @@ |
||
| 94 | 94 | $html = []; |
| 95 | 95 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
| 96 | 96 | $html[] = $fieldInformationHtml; |
| 97 | - $html[] = '<div class="form-wizards-wrap">'; |
|
| 98 | - $html[] = '<div class="form-wizards-element">'; |
|
| 99 | - $html[] = '<div class="checkbox checkbox-type-toggle">'; |
|
| 100 | - $html[] = '<input type="checkbox"'; |
|
| 101 | - $html[] = ' class="checkbox-input"'; |
|
| 102 | - $html[] = ' value="1"'; |
|
| 103 | - $html[] = ' data-formengine-input-name="' . htmlspecialchars($parameterArray['itemFormElName'], ENT_QUOTES) . '"'; |
|
| 104 | - $html[] = ' id="' . htmlspecialchars($checkboxId, ENT_QUOTES) . '"'; |
|
| 105 | - $html[] = $checkboxParameters; |
|
| 106 | - $html[] = $isPublic ? ' checked="checked"' : ''; |
|
| 107 | - $html[] = '/>'; |
|
| 108 | - $html[] = '<label class="checkbox-label" for="' . htmlspecialchars($checkboxId, ENT_QUOTES) . '">'; |
|
| 109 | - $html[] = '<span class="checkbox-label-text">' . $this->appendValueToLabelInDebugMode(' ', $isPublicAsString) . '</span>'; |
|
| 110 | - $html[] = '</label>'; |
|
| 111 | - $html[] = '<input type="hidden"'; |
|
| 112 | - $html[] = ' name="' . htmlspecialchars($parameterArray['itemFormElName'], ENT_QUOTES) . '"'; |
|
| 113 | - $html[] = ' value="' . $isPublicAsString . '"'; |
|
| 114 | - $html[] = ' />'; |
|
| 115 | - $html[] = '</div>'; |
|
| 116 | - $html[] = '</div>'; |
|
| 117 | - $html[] = '</div>'; |
|
| 97 | + $html[] = '<div class="form-wizards-wrap">'; |
|
| 98 | + $html[] = '<div class="form-wizards-element">'; |
|
| 99 | + $html[] = '<div class="checkbox checkbox-type-toggle">'; |
|
| 100 | + $html[] = '<input type="checkbox"'; |
|
| 101 | + $html[] = ' class="checkbox-input"'; |
|
| 102 | + $html[] = ' value="1"'; |
|
| 103 | + $html[] = ' data-formengine-input-name="' . htmlspecialchars($parameterArray['itemFormElName'], ENT_QUOTES) . '"'; |
|
| 104 | + $html[] = ' id="' . htmlspecialchars($checkboxId, ENT_QUOTES) . '"'; |
|
| 105 | + $html[] = $checkboxParameters; |
|
| 106 | + $html[] = $isPublic ? ' checked="checked"' : ''; |
|
| 107 | + $html[] = '/>'; |
|
| 108 | + $html[] = '<label class="checkbox-label" for="' . htmlspecialchars($checkboxId, ENT_QUOTES) . '">'; |
|
| 109 | + $html[] = '<span class="checkbox-label-text">' . $this->appendValueToLabelInDebugMode(' ', $isPublicAsString) . '</span>'; |
|
| 110 | + $html[] = '</label>'; |
|
| 111 | + $html[] = '<input type="hidden"'; |
|
| 112 | + $html[] = ' name="' . htmlspecialchars($parameterArray['itemFormElName'], ENT_QUOTES) . '"'; |
|
| 113 | + $html[] = ' value="' . $isPublicAsString . '"'; |
|
| 114 | + $html[] = ' />'; |
|
| 115 | + $html[] = '</div>'; |
|
| 116 | + $html[] = '</div>'; |
|
| 117 | + $html[] = '</div>'; |
|
| 118 | 118 | $html[] = '</div>'; |
| 119 | 119 | $resultArray['html'] = implode(LF, $html); |
| 120 | 120 | return $resultArray; |
@@ -225,7 +225,7 @@ |
||
| 225 | 225 | if (MathUtility::canBeInterpretedAsInteger($fileUid)) { |
| 226 | 226 | try { |
| 227 | 227 | $file = GeneralUtility::makeInstance(ResourceFactory::class)->getFileObject($fileUid); |
| 228 | - } catch (FileDoesNotExistException|\InvalidArgumentException $e) { |
|
| 228 | + } catch (FileDoesNotExistException | \InvalidArgumentException $e) { |
|
| 229 | 229 | } |
| 230 | 230 | } |
| 231 | 231 | return $file; |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | return; |
| 70 | 70 | } |
| 71 | 71 | if ($additionalMessage) { |
| 72 | - $this->showMessageWhileInProgress(function () use ($additionalMessage) { |
|
| 72 | + $this->showMessageWhileInProgress(function() use ($additionalMessage) { |
|
| 73 | 73 | $this->io->writeln($additionalMessage); |
| 74 | 74 | }); |
| 75 | 75 | } |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | if (!$this->isEnabled) { |
| 99 | 99 | return; |
| 100 | 100 | } |
| 101 | - $this->showMessageWhileInProgress(function () use ($message, $logLevel) { |
|
| 101 | + $this->showMessageWhileInProgress(function() use ($message, $logLevel) { |
|
| 102 | 102 | switch ($logLevel) { |
| 103 | 103 | case LogLevel::ERROR: |
| 104 | 104 | $this->io->error($message); |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | public function getFactories(): array |
| 32 | 32 | { |
| 33 | 33 | return [ |
| 34 | - Controller\ConfigurationController::class => [ static::class, 'getConfigurationController' ], |
|
| 34 | + Controller\ConfigurationController::class => [static::class, 'getConfigurationController'], |
|
| 35 | 35 | ]; |
| 36 | 36 | } |
| 37 | 37 | |
@@ -200,7 +200,7 @@ |
||
| 200 | 200 | // keeping positions having argument values that are not null |
| 201 | 201 | $unusedArgumentPositions = array_filter( |
| 202 | 202 | $unusedArgumentPositions, |
| 203 | - function (int $position) use ($arguments) { |
|
| 203 | + function(int $position) use ($arguments) { |
|
| 204 | 204 | $index = $position - 1; |
| 205 | 205 | return isset($arguments[$index]->value) |
| 206 | 206 | && !$arguments[$index]->value instanceof ConstFetch |
@@ -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); |
@@ -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); |