@@ -279,7 +279,7 @@ |
||
| 279 | 279 | // Try adding or editing |
| 280 | 280 | $content .= $this->editTaskAction(); |
| 281 | 281 | $sectionTitle = $this->getLanguageService()->getLL('action.' . $this->getCurrentAction()); |
| 282 | - } catch (\LogicException|\UnexpectedValueException|\OutOfBoundsException $e) { |
|
| 282 | + } catch (\LogicException | \UnexpectedValueException | \OutOfBoundsException $e) { |
|
| 283 | 283 | // Catching all types of exceptions that were previously handled and |
| 284 | 284 | // converted to messages |
| 285 | 285 | $content .= $this->listTasksAction(); |
@@ -435,7 +435,7 @@ |
||
| 435 | 435 | $inputTag->addAttribute('type', 'text'); |
| 436 | 436 | $inputTag->addAttribute('value', $currentValue); |
| 437 | 437 | $inputTag->addAttribute('class', 'form-control'); |
| 438 | - $html .= $inputTag->render(); |
|
| 438 | + $html .= $inputTag->render(); |
|
| 439 | 439 | } |
| 440 | 440 | |
| 441 | 441 | return $html; |
@@ -151,28 +151,28 @@ |
||
| 151 | 151 | |
| 152 | 152 | $html = []; |
| 153 | 153 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
| 154 | - $html[] = $fieldInformationHtml; |
|
| 155 | - $html[] = '<div class="form-control-wrap">'; |
|
| 156 | - $html[] = '<div class="form-wizards-wrap">'; |
|
| 157 | - $html[] = '<div class="form-wizards-element">'; |
|
| 158 | - $html[] = '<div class="t3editor-wrapper">'; |
|
| 159 | - $html[] = $editorHtml; |
|
| 160 | - $html[] = '</div>'; |
|
| 161 | - $html[] = '</div>'; |
|
| 154 | + $html[] = $fieldInformationHtml; |
|
| 155 | + $html[] = '<div class="form-control-wrap">'; |
|
| 156 | + $html[] = '<div class="form-wizards-wrap">'; |
|
| 157 | + $html[] = '<div class="form-wizards-element">'; |
|
| 158 | + $html[] = '<div class="t3editor-wrapper">'; |
|
| 159 | + $html[] = $editorHtml; |
|
| 160 | + $html[] = '</div>'; |
|
| 161 | + $html[] = '</div>'; |
|
| 162 | 162 | if (!empty($fieldControlHtml)) { |
| 163 | - $html[] = '<div class="form-wizards-items-aside">'; |
|
| 164 | - $html[] = '<div class="btn-group">'; |
|
| 165 | - $html[] = $fieldControlHtml; |
|
| 166 | - $html[] = '</div>'; |
|
| 167 | - $html[] = '</div>'; |
|
| 163 | + $html[] = '<div class="form-wizards-items-aside">'; |
|
| 164 | + $html[] = '<div class="btn-group">'; |
|
| 165 | + $html[] = $fieldControlHtml; |
|
| 166 | + $html[] = '</div>'; |
|
| 167 | + $html[] = '</div>'; |
|
| 168 | 168 | } |
| 169 | 169 | if (!empty($fieldWizardHtml)) { |
| 170 | 170 | $html[] = '<div class="form-wizards-items-bottom">'; |
| 171 | 171 | $html[] = $fieldWizardHtml; |
| 172 | 172 | $html[] = '</div>'; |
| 173 | 173 | } |
| 174 | - $html[] = '</div>'; |
|
| 175 | - $html[] = '</div>'; |
|
| 174 | + $html[] = '</div>'; |
|
| 175 | + $html[] = '</div>'; |
|
| 176 | 176 | $html[] = '</div>'; |
| 177 | 177 | |
| 178 | 178 | $this->resultArray['html'] = implode(LF, $html); |
@@ -692,7 +692,7 @@ |
||
| 692 | 692 | } |
| 693 | 693 | } |
| 694 | 694 | } |
| 695 | - return array_filter($duplicatedEntryPoints, static function (array $variants): bool { |
|
| 695 | + return array_filter($duplicatedEntryPoints, static function(array $variants): bool { |
|
| 696 | 696 | return count($variants) > 1 || reset($variants) > 1; |
| 697 | 697 | }, ARRAY_FILTER_USE_BOTH); |
| 698 | 698 | } |
@@ -79,48 +79,48 @@ |
||
| 79 | 79 | |
| 80 | 80 | $html = []; |
| 81 | 81 | $html[] = '<div class="t3js-l10n-state-container">'; |
| 82 | - $html[] = '<div>'; |
|
| 83 | - $html[] = '<strong>'; |
|
| 84 | - $html[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_wizards.xlf:localizationStateSelector.header'); |
|
| 85 | - $html[] = '</strong>'; |
|
| 86 | - $html[] = '</div>'; |
|
| 87 | - $html[] = '<div class="radio radio-inline">'; |
|
| 88 | - $html[] = '<label>'; |
|
| 89 | - $html[] = '<input'; |
|
| 90 | - $html[] = ' type="radio"'; |
|
| 91 | - $html[] = ' name="' . htmlspecialchars($fieldElementName) . '"'; |
|
| 92 | - $html[] = ' class="t3js-l10n-state-custom"'; |
|
| 93 | - $html[] = ' value="custom"'; |
|
| 94 | - $html[] = $localizationState->isCustomState($fieldName) ? ' checked="checked"' : ''; |
|
| 95 | - $html[] = ' data-original-language-value=""'; |
|
| 96 | - $html[] = '>'; |
|
| 97 | - $html[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_wizards.xlf:localizationStateSelector.customValue'); |
|
| 98 | - $html[] = '</label>'; |
|
| 99 | - $html[] = '</div>'; |
|
| 100 | - $html[] = '<div class="radio radio-inline">'; |
|
| 101 | - $html[] = '<label>'; |
|
| 102 | - $html[] = '<input'; |
|
| 103 | - $html[] = ' type="radio"'; |
|
| 104 | - $html[] = ' name="' . htmlspecialchars($fieldElementName) . '"'; |
|
| 105 | - $html[] = ' value="parent"'; |
|
| 106 | - $html[] = $localizationState->isParentState($fieldName) ? ' checked="checked"' : ''; |
|
| 107 | - $html[] = ' data-original-language-value="' . htmlspecialchars((string)$fieldValueInParentRow) . '"'; |
|
| 108 | - $html[] = '>'; |
|
| 109 | - $html[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_wizards.xlf:localizationStateSelector.defaultLanguageValue'); |
|
| 110 | - $html[] = '</label>'; |
|
| 111 | - $html[] = '</div>'; |
|
| 82 | + $html[] = '<div>'; |
|
| 83 | + $html[] = '<strong>'; |
|
| 84 | + $html[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_wizards.xlf:localizationStateSelector.header'); |
|
| 85 | + $html[] = '</strong>'; |
|
| 86 | + $html[] = '</div>'; |
|
| 87 | + $html[] = '<div class="radio radio-inline">'; |
|
| 88 | + $html[] = '<label>'; |
|
| 89 | + $html[] = '<input'; |
|
| 90 | + $html[] = ' type="radio"'; |
|
| 91 | + $html[] = ' name="' . htmlspecialchars($fieldElementName) . '"'; |
|
| 92 | + $html[] = ' class="t3js-l10n-state-custom"'; |
|
| 93 | + $html[] = ' value="custom"'; |
|
| 94 | + $html[] = $localizationState->isCustomState($fieldName) ? ' checked="checked"' : ''; |
|
| 95 | + $html[] = ' data-original-language-value=""'; |
|
| 96 | + $html[] = '>'; |
|
| 97 | + $html[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_wizards.xlf:localizationStateSelector.customValue'); |
|
| 98 | + $html[] = '</label>'; |
|
| 99 | + $html[] = '</div>'; |
|
| 100 | + $html[] = '<div class="radio radio-inline">'; |
|
| 101 | + $html[] = '<label>'; |
|
| 102 | + $html[] = '<input'; |
|
| 103 | + $html[] = ' type="radio"'; |
|
| 104 | + $html[] = ' name="' . htmlspecialchars($fieldElementName) . '"'; |
|
| 105 | + $html[] = ' value="parent"'; |
|
| 106 | + $html[] = $localizationState->isParentState($fieldName) ? ' checked="checked"' : ''; |
|
| 107 | + $html[] = ' data-original-language-value="' . htmlspecialchars((string)$fieldValueInParentRow) . '"'; |
|
| 108 | + $html[] = '>'; |
|
| 109 | + $html[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_wizards.xlf:localizationStateSelector.defaultLanguageValue'); |
|
| 110 | + $html[] = '</label>'; |
|
| 111 | + $html[] = '</div>'; |
|
| 112 | 112 | if ($fieldValueInSourceRow !== null) { |
| 113 | 113 | $html[] = '<div class="radio radio-inline">'; |
| 114 | - $html[] = '<label>'; |
|
| 115 | - $html[] = '<input'; |
|
| 116 | - $html[] = ' type="radio"'; |
|
| 117 | - $html[] = ' name="' . htmlspecialchars($fieldElementName) . '"'; |
|
| 118 | - $html[] = ' value="source"'; |
|
| 119 | - $html[] = $localizationState->isSourceState($fieldName) ? ' checked="checked"' : ''; |
|
| 120 | - $html[] = ' data-original-language-value="' . htmlspecialchars((string)$fieldValueInSourceRow) . '"'; |
|
| 121 | - $html[] = '>'; |
|
| 122 | - $html[] = sprintf($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_wizards.xlf:localizationStateSelector.sourceLanguageValue'), htmlspecialchars($sourceLanguageTitle)); |
|
| 123 | - $html[] = '</label>'; |
|
| 114 | + $html[] = '<label>'; |
|
| 115 | + $html[] = '<input'; |
|
| 116 | + $html[] = ' type="radio"'; |
|
| 117 | + $html[] = ' name="' . htmlspecialchars($fieldElementName) . '"'; |
|
| 118 | + $html[] = ' value="source"'; |
|
| 119 | + $html[] = $localizationState->isSourceState($fieldName) ? ' checked="checked"' : ''; |
|
| 120 | + $html[] = ' data-original-language-value="' . htmlspecialchars((string)$fieldValueInSourceRow) . '"'; |
|
| 121 | + $html[] = '>'; |
|
| 122 | + $html[] = sprintf($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_wizards.xlf:localizationStateSelector.sourceLanguageValue'), htmlspecialchars($sourceLanguageTitle)); |
|
| 123 | + $html[] = '</label>'; |
|
| 124 | 124 | $html[] = '</div>'; |
| 125 | 125 | } |
| 126 | 126 | $html[] = '</div>'; |
@@ -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); |