From fe0f1deca29c36d39e01646dce8930679508e466 Mon Sep 17 00:00:00 2001 From: Benni Mack <benni@typo3.org> Date: Thu, 4 Jan 2024 15:44:08 +0100 Subject: [PATCH] [TASK] Streamline indentation of arrays and comments PHP-CS-Fixer rule `array_indentation` is activated to have consistent indentation of arrays. In addition, a full run of php-cs-fixer without caches shows also affected areas where comments did not apply properly. Resolves: #102753 Releases: main, 12.4, 11.5 Change-Id: I759149606c4b042f1ac4329d4f5b7166d591456b Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/79239 Reviewed-by: Simon Schaufelberger <simonschaufi+typo3@gmail.com> Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de> Tested-by: core-ci <typo3@b13.com> Reviewed-by: Oliver Bartsch <bo@cedev.de> Tested-by: Simon Schaufelberger <simonschaufi+typo3@gmail.com> Tested-by: Oliver Klee <typo3-coding@oliverklee.de> Tested-by: Oliver Bartsch <bo@cedev.de> Reviewed-by: Benni Mack <benni@typo3.org> Tested-by: Benni Mack <benni@typo3.org> --- Build/php-cs-fixer/config.php | 1 + .../Controller/ColumnSelectorController.php | 2 +- .../ElementInformationController.php | 2 +- .../Classes/Controller/LoginController.php | 2 +- .../Controller/ResetPasswordController.php | 6 +- .../Form/Element/SelectSingleBoxElement.php | 2 +- .../Classes/Form/FieldWizard/SelectIcons.php | 10 +- .../Classes/Form/InlineStackProcessor.php | 2 +- .../Classes/RecordList/DatabaseRecordList.php | 26 +- .../Classes/Tree/FileStorageTreeProvider.php | 4 +- .../Controller/EditDocumentControllerTest.php | 14 +- .../Controller/Page/TreeControllerTest.php | 20 +- .../ResetPasswordControllerTest.php | 12 +- .../RecordList/DownloadRecordListTest.php | 50 +- .../Buttons/Action/ShortcutButtonTest.php | 2 +- .../Wizard/SuggestWizardControllerTest.php | 10 +- .../Form/Element/InputHiddenElementTest.php | 2 +- .../Unit/Form/Element/JsonElementTest.php | 2 +- .../DatabaseRowInitializeNewTest.php | 2 +- .../Form/FormDataProvider/TcaLanguageTest.php | 66 +- .../Tests/Unit/Module/ModuleFactoryTest.php | 2 +- .../Tests/Unit/Utility/BackendUtilityTest.php | 4 +- .../AbstractUserAuthentication.php | 6 +- .../core/Classes/DataHandling/DataHandler.php | 12 +- .../Localization/DataMapProcessor.php | 2 +- .../Database/Schema/DefaultTcaSchema.php | 8 +- .../sysext/core/Classes/Html/SimpleParser.php | 16 +- .../LegacyLinkNotationConverter.php | 2 +- .../Classes/Resource/MimeTypeCollection.php | 2 +- .../Routing/Aspect/PersistedPatternMapper.php | 2 +- .../ContentSecurityPolicy/PolicyProvider.php | 2 +- .../core/Classes/Utility/GeneralUtility.php | 8 +- .../DataHandling/DataHandler/HookTest.php | 4 +- .../DataHandling/Slug/SlugHelperTest.php | 14 +- .../core/Tests/Functional/RegistryTest.php | 12 +- .../Configuration/Tca/TcaMigrationTest.php | 14 +- .../Unit/ExpressionLanguage/ResolverTest.php | 6 +- .../Unit/Http/ServerRequestFactoryTest.php | 50 +- .../core/Tests/Unit/Mail/MailMessageTest.php | 10 +- .../core/Tests/Unit/Resource/FileTest.php | 6 +- .../AST/AstBuilderInterfaceTest.php | 8 +- .../Tests/Unit/Utility/ArrayUtilityTest.php | 2 +- .../Generic/Storage/Typo3DbBackend.php | 2 +- .../Classes/Routing/ExtbasePluginEnhancer.php | 4 +- .../Persistence/QueryLocalizedDataTest.php | 80 +- .../Utility/LocalizationUtilityTest.php | 22 +- .../Tests/Unit/Mvc/View/JsonViewTest.php | 12 +- .../Classes/ViewHelpers/FormViewHelper.php | 2 +- .../ViewHelpers/FormViewHelperTest.php | 2 +- .../DataStructureIdentifierListener.php | 18 +- .../RequestHandling/RequestHandlingTest.php | 10 +- .../Service/TranslationServiceTest.php | 10 +- .../FormDefinitionConversionServiceTest.php | 92 +- .../FormDefinitionArrayConverterTest.php | 56 +- .../ContentObject/ContentObjectRenderer.php | 2 +- .../DataProcessing/GalleryProcessor.php | 4 +- .../Middleware/PageArgumentValidator.php | 2 +- .../PersistedAliasMapperTest.php | 14 +- .../ContentObjectRendererTest.php | 4 +- .../DataProcessing/FlexFormProcessorTest.php | 4 +- .../Export/PagesAndTtContentTest.php | 4 +- .../RenderPreviewExportPageAndRecords.php | 568 +++++----- ...reviewExportPageAndRecordsWithSoftRefs.php | 376 +++---- .../RenderPreviewExportRecords.php | 162 +-- .../RenderPreviewExportTable.php | 248 ++--- .../RenderPreviewImportPageAndRecords.php | 308 +++--- ...derPreviewImportPageAndRecordsByUpdate.php | 244 ++--- ...ewImportPageAndRecordsByUpdateWithDiff.php | 986 +++++++++--------- ...derPreviewImportPageAndRecordsWithDiff.php | 616 +++++------ ...reviewImportPageAndRecordsWithSoftRefs.php | 212 ++-- ...TtContentWithImagesInEmptyDatabaseTest.php | 2 +- .../impexp/Tests/Functional/ImportTest.php | 18 +- .../Repository/IndexSearchRepository.php | 6 +- .../ViewHelpers/PageBrowsingViewHelper.php | 16 +- .../Configuration/Mail/SendmailPreset.php | 2 +- .../Php/Matcher/ArrayDimensionMatcherTest.php | 2 +- .../Php/Matcher/ArrayGlobalMatcherTest.php | 2 +- .../MethodArgumentDroppedMatcherTest.php | 2 +- ...MethodArgumentDroppedStaticMatcherTest.php | 2 +- .../MethodArgumentRequiredMatcherTest.php | 2 +- ...ethodArgumentRequiredStaticMatcherTest.php | 2 +- .../MethodArgumentUnusedMatcherTest.php | 2 +- .../Php/Matcher/MethodCallMatcherTest.php | 2 +- .../Matcher/PropertyProtectedMatcherTest.php | 2 +- .../Php/Matcher/PropertyPublicMatcherTest.php | 2 +- .../Controller/LinkValidatorController.php | 10 +- .../Repository/BrokenLinkRepositoryTest.php | 22 +- .../Unit/Linktype/ExternalLinktypeTest.php | 22 +- .../Command/MissingRelationsCommand.php | 2 +- .../DatabaseIntegrityController.php | 14 +- .../Controller/ManagementController.php | 6 +- .../Report/Status/ImageProcessingStatus.php | 2 +- .../Classes/Canonical/CanonicalGenerator.php | 6 +- .../TCA/tx_styleguide_ctrl_common.php | 172 +-- .../TCA/tx_styleguide_ctrl_minimal.php | 42 +- .../TCA/tx_styleguide_valuesdefault.php | 2 +- typo3/sysext/styleguide/ext_tables.php | 14 +- 97 files changed, 2436 insertions(+), 2435 deletions(-) diff --git a/Build/php-cs-fixer/config.php b/Build/php-cs-fixer/config.php index c6d8851620c2..1d62eed86bc2 100644 --- a/Build/php-cs-fixer/config.php +++ b/Build/php-cs-fixer/config.php @@ -51,6 +51,7 @@ return (new \PhpCsFixer\Config()) '@DoctrineAnnotation' => true, // @todo: Switch to @PER-CS2.0 once php-cs-fixer's todo list is done: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7247 '@PER-CS1.0' => true, + 'array_indentation' => true, 'array_syntax' => ['syntax' => 'short'], 'cast_spaces' => ['space' => 'none'], // @todo: Can be dropped once we enable @PER-CS2.0 diff --git a/typo3/sysext/backend/Classes/Controller/ColumnSelectorController.php b/typo3/sysext/backend/Classes/Controller/ColumnSelectorController.php index dba23008415d..bd581e1cc6c5 100644 --- a/typo3/sysext/backend/Classes/Controller/ColumnSelectorController.php +++ b/typo3/sysext/backend/Classes/Controller/ColumnSelectorController.php @@ -69,7 +69,7 @@ class ColumnSelectorController 'message' => htmlspecialchars( $this->getLanguageService()->sL('LLL:EXT:backend/Resources/Private/Language/locallang_column_selector.xlf:updateColumnView.nothingUpdated') ), - ]); + ]); } $backendUser = $this->getBackendUserAuthentication(); diff --git a/typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php b/typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php index b898fc109320..44f21ef9c8b4 100644 --- a/typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php +++ b/typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php @@ -213,7 +213,7 @@ class ElementInformationController // Check if there is a FileRenderer if ($fileRenderer !== null) { $preview['fileRenderer'] = $fileRenderer->render($this->fileObject, $width, $height); - // else check if we can create an Image preview + // else check if we can create an Image preview } elseif ($this->fileObject->isImage()) { $preview['fileObject'] = $this->fileObject; $preview['width'] = $width; diff --git a/typo3/sysext/backend/Classes/Controller/LoginController.php b/typo3/sysext/backend/Classes/Controller/LoginController.php index 7abd563c14cc..dd33fe2e9289 100644 --- a/typo3/sysext/backend/Classes/Controller/LoginController.php +++ b/typo3/sysext/backend/Classes/Controller/LoginController.php @@ -392,7 +392,7 @@ class LoginController if ($this->loginRefresh) { $formProtection->setSessionTokenFromRegistry(); $formProtection->persistSessionToken(); - // triggering `TYPO3/CMS/Backend/LoginRefresh` module happens in `TYPO3/CMS/Backend/Login` + // triggering `TYPO3/CMS/Backend/LoginRefresh` module happens in `TYPO3/CMS/Backend/Login` } else { $formProtection->storeSessionTokenInRegistry(); $this->redirectToUrl(); diff --git a/typo3/sysext/backend/Classes/Controller/ResetPasswordController.php b/typo3/sysext/backend/Classes/Controller/ResetPasswordController.php index e1f25e4678c0..58bf8acf19cc 100644 --- a/typo3/sysext/backend/Classes/Controller/ResetPasswordController.php +++ b/typo3/sysext/backend/Classes/Controller/ResetPasswordController.php @@ -162,9 +162,9 @@ class ResetPasswordController $formUrl = $this->uriBuilder->buildUriWithRedirect( 'password_reset_finish', array_filter(array_merge($parameters, [ - 't' => $token, - 'i' => $identity, - 'e' => $expirationDate, + 't' => $token, + 'i' => $identity, + 'e' => $expirationDate, ])), RouteRedirect::createFromRequest($request) ); diff --git a/typo3/sysext/backend/Classes/Form/Element/SelectSingleBoxElement.php b/typo3/sysext/backend/Classes/Form/Element/SelectSingleBoxElement.php index b12d01d71bf1..7a3929aa1c65 100644 --- a/typo3/sysext/backend/Classes/Form/Element/SelectSingleBoxElement.php +++ b/typo3/sysext/backend/Classes/Form/Element/SelectSingleBoxElement.php @@ -211,7 +211,7 @@ class SelectSingleBoxElement extends AbstractFormElement $attributes['value'] = $value; $html = [ '<option ' . GeneralUtility::implodeAttributes($attributes, true, true) . '>', - htmlspecialchars($this->appendValueToLabelInDebugMode($label, $value), ENT_COMPAT, 'UTF-8', false), + htmlspecialchars($this->appendValueToLabelInDebugMode($label, $value), ENT_COMPAT, 'UTF-8', false), '</option>', ]; diff --git a/typo3/sysext/backend/Classes/Form/FieldWizard/SelectIcons.php b/typo3/sysext/backend/Classes/Form/FieldWizard/SelectIcons.php index 9313883eb2e5..aa76267e5e2d 100644 --- a/typo3/sysext/backend/Classes/Form/FieldWizard/SelectIcons.php +++ b/typo3/sysext/backend/Classes/Form/FieldWizard/SelectIcons.php @@ -46,11 +46,11 @@ class SelectIcons extends AbstractNode if ($icon) { $fieldValue = $this->data['databaseRow'][$this->data['fieldName']]; $selectIcons[] = [ - 'title' => $item['label'], - 'active' => ($fieldValue[0] ?? false) === (string)($item['value'] ?? ''), - 'icon' => $icon, - 'index' => $selectItemCounter, - ]; + 'title' => $item['label'], + 'active' => ($fieldValue[0] ?? false) === (string)($item['value'] ?? ''), + 'icon' => $icon, + 'index' => $selectItemCounter, + ]; } $selectItemCounter++; } diff --git a/typo3/sysext/backend/Classes/Form/InlineStackProcessor.php b/typo3/sysext/backend/Classes/Form/InlineStackProcessor.php index 1bdd6cfa4a39..9865cf6d5e32 100644 --- a/typo3/sysext/backend/Classes/Form/InlineStackProcessor.php +++ b/typo3/sysext/backend/Classes/Form/InlineStackProcessor.php @@ -282,7 +282,7 @@ class InlineStackProcessor $parts[] = implode('][', $levelData['flexform']); } $name = '[' . implode('][', $parts) . ']'; - // Use in object id attributes: + // Use in object id attributes: } else { $name = implode('-', $parts); diff --git a/typo3/sysext/backend/Classes/RecordList/DatabaseRecordList.php b/typo3/sysext/backend/Classes/RecordList/DatabaseRecordList.php index 7d3dc670fe81..78e2ba97ad01 100644 --- a/typo3/sysext/backend/Classes/RecordList/DatabaseRecordList.php +++ b/typo3/sysext/backend/Classes/RecordList/DatabaseRecordList.php @@ -1379,13 +1379,13 @@ class DatabaseRecordList } $view = $this->backendViewFactory->create($this->request); return $view->assignMultiple([ - 'currentUrl' => $this->listURL('', $table, 'pointer'), - 'currentPage' => $currentPage, - 'totalPages' => $totalPages, - 'firstElement' => ((($currentPage - 1) * $itemsPerPage) + 1), - 'lastElement' => $lastElementNumber, - 'colspan' => $paginationColumns, - ]) + 'currentUrl' => $this->listURL('', $table, 'pointer'), + 'currentPage' => $currentPage, + 'totalPages' => $totalPages, + 'firstElement' => ((($currentPage - 1) * $itemsPerPage) + 1), + 'lastElement' => $lastElementNumber, + 'colspan' => $paginationColumns, + ]) ->render('ListNavigation'); } @@ -1531,9 +1531,9 @@ class DatabaseRecordList if (\trim($userTsConfig['options.']['showHistory.'][$table] ?? $userTsConfig['options.']['showHistory'] ?? '1')) { if (!$isDeletePlaceHolder) { $moduleUrl = $this->uriBuilder->buildUriFromRoute('record_history', [ - 'element' => $table . ':' . $row['uid'], - 'returnUrl' => $this->listURL(), - ]) . '#latest'; + 'element' => $table . ':' . $row['uid'], + 'returnUrl' => $this->listURL(), + ]) . '#latest'; $historyAction = '<a class="btn btn-default" href="' . htmlspecialchars($moduleUrl) . '" title="' . htmlspecialchars($this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_mod_web_list.xlf:history')) . '">' . $this->iconFactory->getIcon('actions-document-history-open', IconSize::SMALL)->render() . '</a>'; @@ -1984,9 +1984,9 @@ class DatabaseRecordList $redirectUrl = (string)$this->uriBuilder->buildUriFromRoute( 'record_edit', [ - 'justLocalized' => $table . ':' . $row['uid'] . ':' . $lUid_OnPage, - 'returnUrl' => $this->listURL(), - ] + 'justLocalized' => $table . ':' . $row['uid'] . ':' . $lUid_OnPage, + 'returnUrl' => $this->listURL(), + ] ); $params = []; $params['redirect'] = $redirectUrl; diff --git a/typo3/sysext/backend/Classes/Tree/FileStorageTreeProvider.php b/typo3/sysext/backend/Classes/Tree/FileStorageTreeProvider.php index ab3265640433..d39348c95098 100644 --- a/typo3/sysext/backend/Classes/Tree/FileStorageTreeProvider.php +++ b/typo3/sysext/backend/Classes/Tree/FileStorageTreeProvider.php @@ -255,8 +255,8 @@ class FileStorageTreeProvider if ($user->isAdmin()) { return [ [ - 'folder' => $resourceStorage->getRootLevelFolder(), - 'name' => $resourceStorage->getName(), + 'folder' => $resourceStorage->getRootLevelFolder(), + 'name' => $resourceStorage->getName(), ], ]; } diff --git a/typo3/sysext/backend/Tests/Functional/Controller/EditDocumentControllerTest.php b/typo3/sysext/backend/Tests/Functional/Controller/EditDocumentControllerTest.php index 7cb93d439610..c080f79ce2c2 100644 --- a/typo3/sysext/backend/Tests/Functional/Controller/EditDocumentControllerTest.php +++ b/typo3/sysext/backend/Tests/Functional/Controller/EditDocumentControllerTest.php @@ -117,13 +117,13 @@ final class EditDocumentControllerTest extends FunctionalTestCase { return [ 'data' => [ - 'tt_content' => [ - 'NEW123456' => array_replace_recursive([ - 'sys_language_uid' => 0, - 'header' => 'Test header', - 'pid' => -1, - ], $additionalData), - ], + 'tt_content' => [ + 'NEW123456' => array_replace_recursive([ + 'sys_language_uid' => 0, + 'header' => 'Test header', + 'pid' => -1, + ], $additionalData), + ], ], 'doSave' => true, ]; diff --git a/typo3/sysext/backend/Tests/Functional/Controller/Page/TreeControllerTest.php b/typo3/sysext/backend/Tests/Functional/Controller/Page/TreeControllerTest.php index 5ff39df06b2e..c2b99300c41c 100644 --- a/typo3/sysext/backend/Tests/Functional/Controller/Page/TreeControllerTest.php +++ b/typo3/sysext/backend/Tests/Functional/Controller/Page/TreeControllerTest.php @@ -281,13 +281,13 @@ final class TreeControllerTest extends FunctionalTestCase ], ], [ - 'uid' => 7000, - 'title' => 'Common Collection', - '_children' => [ - [ - 'uid' => 7100, - 'title' => 'Announcements & News', - '_children' => [ + 'uid' => 7000, + 'title' => 'Common Collection', + '_children' => [ + [ + 'uid' => 7100, + 'title' => 'Announcements & News', + '_children' => [ [ 'uid' => 7110, 'title' => 'Markets', @@ -303,9 +303,9 @@ final class TreeControllerTest extends FunctionalTestCase 'title' => 'Partners', '_children' => [], ], - ], - ], - ], + ], + ], + ], ], ]; self::assertEquals($expected, $actual); diff --git a/typo3/sysext/backend/Tests/Functional/Controller/ResetPasswordControllerTest.php b/typo3/sysext/backend/Tests/Functional/Controller/ResetPasswordControllerTest.php index 81dc893cafa4..b982655ce3d9 100644 --- a/typo3/sysext/backend/Tests/Functional/Controller/ResetPasswordControllerTest.php +++ b/typo3/sysext/backend/Tests/Functional/Controller/ResetPasswordControllerTest.php @@ -116,9 +116,9 @@ final class ResetPasswordControllerTest extends FunctionalTestCase public function queryArgumentsAreKept(): void { $queryParams = [ - 'loginProvider' => '123456789', - 'redirect' => 'web_list', - 'redirectParams' => 'id=123', + 'loginProvider' => '123456789', + 'redirect' => 'web_list', + 'redirectParams' => 'id=123', ]; $request = $this->request->withQueryParams($queryParams); $GLOBALS['TYPO3_REQUEST'] = $request; @@ -162,9 +162,9 @@ final class ResetPasswordControllerTest extends FunctionalTestCase public function resetPasswordFormUrlContainsQueryParameters(): void { $queryParams = [ - 't' => 'some-token-123', - 'i' => 'some-identifier-456', - 'e' => '1618401660', + 't' => 'some-token-123', + 'i' => 'some-identifier-456', + 'e' => '1618401660', ]; $request = $this->request->withQueryParams($queryParams); $GLOBALS['TYPO3_REQUEST'] = $request; diff --git a/typo3/sysext/backend/Tests/Functional/RecordList/DownloadRecordListTest.php b/typo3/sysext/backend/Tests/Functional/RecordList/DownloadRecordListTest.php index 3cb28843876f..ed927c0a4872 100644 --- a/typo3/sysext/backend/Tests/Functional/RecordList/DownloadRecordListTest.php +++ b/typo3/sysext/backend/Tests/Functional/RecordList/DownloadRecordListTest.php @@ -138,31 +138,31 @@ final class DownloadRecordListTest extends FunctionalTestCase $contentRows = $subject->getRecords('pages', $recordList->setFields['pages'], $this->user, true); $result = array_merge([$headerRow], $contentRows); self::assertEquals([ - [ - 'uid' => 'uid', - 'pid' => 'pid', - 'title' => 'title', - 'sys_language_uid' => 'sys_language_uid', - ], - [ - 'uid' => '2', - 'pid' => '1', - 'title' => 'Dummy 1-2', - 'sys_language_uid' => 'Default', - ], - [ - 'uid' => '3', - 'pid' => '1', - 'title' => 'Dummy 1-3', - 'sys_language_uid' => 'Default', - ], - [ - 'uid' => '4', - 'pid' => '1', - 'title' => 'Dummy 1-4', - 'sys_language_uid' => 'Default', - ], - ], $this->prepareRecordsForDbCompatAssertions($result)); + [ + 'uid' => 'uid', + 'pid' => 'pid', + 'title' => 'title', + 'sys_language_uid' => 'sys_language_uid', + ], + [ + 'uid' => '2', + 'pid' => '1', + 'title' => 'Dummy 1-2', + 'sys_language_uid' => 'Default', + ], + [ + 'uid' => '3', + 'pid' => '1', + 'title' => 'Dummy 1-3', + 'sys_language_uid' => 'Default', + ], + [ + 'uid' => '4', + 'pid' => '1', + 'title' => 'Dummy 1-4', + 'sys_language_uid' => 'Default', + ], + ], $this->prepareRecordsForDbCompatAssertions($result)); } /** diff --git a/typo3/sysext/backend/Tests/Functional/Template/Components/Buttons/Action/ShortcutButtonTest.php b/typo3/sysext/backend/Tests/Functional/Template/Components/Buttons/Action/ShortcutButtonTest.php index d0fea8a45e5d..3aff9cf64822 100644 --- a/typo3/sysext/backend/Tests/Functional/Template/Components/Buttons/Action/ShortcutButtonTest.php +++ b/typo3/sysext/backend/Tests/Functional/Template/Components/Buttons/Action/ShortcutButtonTest.php @@ -110,7 +110,7 @@ final class ShortcutButtonTest extends FunctionalTestCase 'id' => 123, 'table' => 'some_table', 'GET' => [ - 'clipBoard' => 1, + 'clipBoard' => 1, ], ]), 'RecordListSingleTableCopyToClipboard', diff --git a/typo3/sysext/backend/Tests/Unit/Controller/Wizard/SuggestWizardControllerTest.php b/typo3/sysext/backend/Tests/Unit/Controller/Wizard/SuggestWizardControllerTest.php index 6729b710e0a0..b5731be3b751 100644 --- a/typo3/sysext/backend/Tests/Unit/Controller/Wizard/SuggestWizardControllerTest.php +++ b/typo3/sysext/backend/Tests/Unit/Controller/Wizard/SuggestWizardControllerTest.php @@ -121,11 +121,11 @@ final class SuggestWizardControllerTest extends UnitTestCase public static function isTableHiddenIsProperlyRetrievedDataProvider(): array { return [ - 'notSetValue' => [false, ['ctrl' => ['hideTable' => null]]], - 'true' => [true, ['ctrl' => ['hideTable' => true]]], - 'false' => [false, ['ctrl' => ['hideTable' => false]]], - 'string with true' => [true, ['ctrl' => ['hideTable' => '1']]], - 'string with false' => [false, ['ctrl' => ['hideTable' => '0']]], + 'notSetValue' => [false, ['ctrl' => ['hideTable' => null]]], + 'true' => [true, ['ctrl' => ['hideTable' => true]]], + 'false' => [false, ['ctrl' => ['hideTable' => false]]], + 'string with true' => [true, ['ctrl' => ['hideTable' => '1']]], + 'string with false' => [false, ['ctrl' => ['hideTable' => '0']]], ]; } diff --git a/typo3/sysext/backend/Tests/Unit/Form/Element/InputHiddenElementTest.php b/typo3/sysext/backend/Tests/Unit/Form/Element/InputHiddenElementTest.php index 73f0c230ca07..eb0b71ecbfab 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/Element/InputHiddenElementTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/Element/InputHiddenElementTest.php @@ -31,7 +31,7 @@ final class InputHiddenElementTest extends UnitTestCase public function renderReturnsElementsAsAdditionalHiddenFields(): void { $data = [ - 'parameterArray' => [ + 'parameterArray' => [ 'itemFormElName' => 'foo', 'itemFormElValue' => 'bar', ], diff --git a/typo3/sysext/backend/Tests/Unit/Form/Element/JsonElementTest.php b/typo3/sysext/backend/Tests/Unit/Form/Element/JsonElementTest.php index 3124606db1d7..3ce4d2d64c57 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/Element/JsonElementTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/Element/JsonElementTest.php @@ -46,7 +46,7 @@ final class JsonElementTest extends UnitTestCase public function renderReturnsJsonInStandardTextarea(): void { $data = [ - 'parameterArray' => [ + 'parameterArray' => [ 'itemFormElName' => 'config', 'itemFormElValue' => ['foo' => 'bar'], 'fieldConf' => [ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseRowInitializeNewTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseRowInitializeNewTest.php index 81a6a2036128..5fc3c396f095 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseRowInitializeNewTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseRowInitializeNewTest.php @@ -726,7 +726,7 @@ final class DatabaseRowInitializeNewTest extends UnitTestCase 'inlineParentUid' => 42, 'inlineParentConfig' => [ 'foreign_field' => 'theParentField', - ], + ], ]; $expected = $input; $expected['databaseRow']['theParentField'] = 42; diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaLanguageTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaLanguageTest.php index bb7d6b9ae97c..8c45ef8bbccd 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaLanguageTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaLanguageTest.php @@ -371,7 +371,7 @@ final class TcaLanguageTest extends UnitTestCase 'aTable.' => [ 'aField.' => [ 'disableNoMatchingValueElement' => '1', - ], + ], ], ], ], @@ -548,35 +548,35 @@ final class TcaLanguageTest extends UnitTestCase $siteFinder = $this->createMock(SiteFinder::class); $siteFinder->method('getAllSites')->willReturn([ new Site('site-1', 1, [ - 'base' => '/', - 'languages' => [ - [ - 'title' => 'English', - 'languageId' => 0, - 'base' => '/', - 'locale' => 'en_US', - 'flag' => 'us', - ], - [ - 'title' => 'German', - 'languageId' => 2, - 'base' => '/de/', - 'locale' => 'de_DE', - 'flag' => 'de', - ], - ], + 'base' => '/', + 'languages' => [ + [ + 'title' => 'English', + 'languageId' => 0, + 'base' => '/', + 'locale' => 'en_US', + 'flag' => 'us', + ], + [ + 'title' => 'German', + 'languageId' => 2, + 'base' => '/de/', + 'locale' => 'de_DE', + 'flag' => 'de', + ], + ], ]), new Site('site-2', 2, [ - 'base' => '/', - 'languages' => [ - [ - 'title' => 'German', - 'languageId' => 0, - 'base' => '/', - 'locale' => 'de_DE', - 'flag' => 'de', - ], - ], + 'base' => '/', + 'languages' => [ + [ + 'title' => 'German', + 'languageId' => 0, + 'base' => '/', + 'locale' => 'de_DE', + 'flag' => 'de', + ], + ], ]), ]); GeneralUtility::addInstance(SiteFinder::class, $siteFinder); @@ -623,11 +623,11 @@ final class TcaLanguageTest extends UnitTestCase 'databaseRow' => array_replace_recursive([], $databaseRow), 'processedTca' => [ 'columns' => [ - 'aField' => array_replace_recursive([ - 'config' => [ - 'type' => 'language', - ], - ], $fieldConfig), + 'aField' => array_replace_recursive([ + 'config' => [ + 'type' => 'language', + ], + ], $fieldConfig), ], ], ], $additionalConfiguration); diff --git a/typo3/sysext/backend/Tests/Unit/Module/ModuleFactoryTest.php b/typo3/sysext/backend/Tests/Unit/Module/ModuleFactoryTest.php index 0f5efc58a9c2..c0e78f874163 100644 --- a/typo3/sysext/backend/Tests/Unit/Module/ModuleFactoryTest.php +++ b/typo3/sysext/backend/Tests/Unit/Module/ModuleFactoryTest.php @@ -93,7 +93,7 @@ final class ModuleFactoryTest extends UnitTestCase 'aliases' => ['web_list', 'web_list_x'], ], 'content' => [ - 'aliases' => ['web'], + 'aliases' => ['web'], ], 'web_info' => [ 'parent' => 'content', diff --git a/typo3/sysext/backend/Tests/Unit/Utility/BackendUtilityTest.php b/typo3/sysext/backend/Tests/Unit/Utility/BackendUtilityTest.php index 8216e2199fba..7f95a6b86d1a 100644 --- a/typo3/sysext/backend/Tests/Unit/Utility/BackendUtilityTest.php +++ b/typo3/sysext/backend/Tests/Unit/Utility/BackendUtilityTest.php @@ -1084,8 +1084,8 @@ final class BackendUtilityTest extends UnitTestCase $cacheMock = $this->createMock(FrontendInterface::class); $cacheManagerMock->method('getCache')->with('runtime')->willReturn($cacheMock); $cacheMock->method('get')->willReturnMap([ - ['pageTsConfig-pid-to-hash-0', 'hash'], - ['pageTsConfig-hash-to-object-hash', new PageTsConfig(new RootNode())], + ['pageTsConfig-pid-to-hash-0', 'hash'], + ['pageTsConfig-hash-to-object-hash', new PageTsConfig(new RootNode())], ]); $siteFinderMock = $this->createMock(SiteFinder::class); GeneralUtility::addInstance(ItemProcessingService::class, new ItemProcessingService($siteFinderMock)); diff --git a/typo3/sysext/core/Classes/Authentication/AbstractUserAuthentication.php b/typo3/sysext/core/Classes/Authentication/AbstractUserAuthentication.php index fe30ed458a4a..913359f8468c 100644 --- a/typo3/sysext/core/Classes/Authentication/AbstractUserAuthentication.php +++ b/typo3/sysext/core/Classes/Authentication/AbstractUserAuthentication.php @@ -511,7 +511,7 @@ abstract class AbstractUserAuthentication implements LoggerAwareInterface if ($ret < 100) { $authenticated = true; } - // $ret is between 100 and 199 which means "I'm not responsible, ask others" + // $ret is between 100 and 199 which means "I'm not responsible, ask others" } else { // $ret is < 0 $authenticated = false; @@ -524,8 +524,8 @@ abstract class AbstractUserAuthentication implements LoggerAwareInterface break; } } - // mimic user authentication to mitigate observable timing discrepancies - // @link https://cwe.mitre.org/data/definitions/208.html + // mimic user authentication to mitigate observable timing discrepancies + // @link https://cwe.mitre.org/data/definitions/208.html } elseif ($activeLogin) { $subType = 'authUser' . $this->loginType; foreach ($this->getAuthServices($subType, $loginData, $authenticatedUserFromSession, $request) as $serviceObj) { diff --git a/typo3/sysext/core/Classes/DataHandling/DataHandler.php b/typo3/sysext/core/Classes/DataHandling/DataHandler.php index b919b669c6d5..7fb109d46841 100644 --- a/typo3/sysext/core/Classes/DataHandling/DataHandler.php +++ b/typo3/sysext/core/Classes/DataHandling/DataHandler.php @@ -4210,7 +4210,7 @@ class DataHandler implements LoggerAwareInterface } else { if (!MathUtility::canBeInterpretedAsInteger($realDestPid)) { $newId = $this->copyRecord($v['table'], $v['id'], -(int)($v['id'])); - // If the destination page id is a NEW string, keep it on the same page + // If the destination page id is a NEW string, keep it on the same page } elseif ($this->BE_USER->workspace > 0 && BackendUtility::isTableWorkspaceEnabled($v['table'])) { // A filled $workspaceOptions indicated that this call // has it's origin in previous versionizeRecord() processing @@ -4224,7 +4224,7 @@ class DataHandler implements LoggerAwareInterface $workspaceOptions['label'] ?? 'Auto-created for WS #' . $this->BE_USER->workspace, $workspaceOptions['delete'] ?? false ); - // Otherwise just use plain copyRecord() to create placeholders etc. + // Otherwise just use plain copyRecord() to create placeholders etc. } else { // If a record has been copied already during this request, // prevent superfluous duplication and use the existing copy @@ -8401,15 +8401,15 @@ class DataHandler implements LoggerAwareInterface default: $result = (string)$submittedValue === (string)$storedValue; } - // Null values are allowed, but currently there's a real (not NULL) value. - // Thus, ensure no NULL value was submitted and fallback to the regular behaviour. + // Null values are allowed, but currently there's a real (not NULL) value. + // Thus, ensure no NULL value was submitted and fallback to the regular behaviour. } elseif ($storedValue !== null) { $result = ( $submittedValue !== null && $this->isSubmittedValueEqualToStoredValue($submittedValue, $storedValue, $storedType, false) ); - // Null values are allowed, and currently there's a NULL value. - // Thus, check whether a NULL value was submitted. + // Null values are allowed, and currently there's a NULL value. + // Thus, check whether a NULL value was submitted. } else { $result = ($submittedValue === null); } diff --git a/typo3/sysext/core/Classes/DataHandling/Localization/DataMapProcessor.php b/typo3/sysext/core/Classes/DataHandling/Localization/DataMapProcessor.php index ae69110cece3..0d847894ce1c 100644 --- a/typo3/sysext/core/Classes/DataHandling/Localization/DataMapProcessor.php +++ b/typo3/sysext/core/Classes/DataHandling/Localization/DataMapProcessor.php @@ -1033,7 +1033,7 @@ class DataMapProcessor // implicit: use origin pointer if table cannot be translated if (!$isTranslatable) { $ancestorId = (int)$dependentElement[$fieldNames['origin']]; - // only consider element if it reflects the desired language + // only consider element if it reflects the desired language } elseif ((int)$dependentElement[$fieldNames['language']] === $desiredLanguage) { $ancestorId = $this->resolveAncestorId($fieldNames, $dependentElement); } else { diff --git a/typo3/sysext/core/Classes/Database/Schema/DefaultTcaSchema.php b/typo3/sysext/core/Classes/Database/Schema/DefaultTcaSchema.php index 1353b6cca3b0..948c0994dba5 100644 --- a/typo3/sysext/core/Classes/Database/Schema/DefaultTcaSchema.php +++ b/typo3/sysext/core/Classes/Database/Schema/DefaultTcaSchema.php @@ -1141,10 +1141,10 @@ class DefaultTcaSchema $this->quote($fieldName), Types::STRING, [ - 'notnull' => true, - 'default' => '', - 'length' => $dbFieldLength, - ] + 'notnull' => true, + 'default' => '', + 'length' => $dbFieldLength, + ] ); } else { // Final fallback creates a (nullable) text field. diff --git a/typo3/sysext/core/Classes/Html/SimpleParser.php b/typo3/sysext/core/Classes/Html/SimpleParser.php index 7c9528cfa211..b2bab6b1d950 100644 --- a/typo3/sysext/core/Classes/Html/SimpleParser.php +++ b/typo3/sysext/core/Classes/Html/SimpleParser.php @@ -128,53 +128,53 @@ class SimpleParser $this->next(SimpleNode::TYPE_CDATA); $this->append('<![CDATA['); $skip = 8; - // comment start + // comment start } elseif ($character === '<' && $this->isType(SimpleNode::TYPE_TEXT) && substr($string, $i, 4) === '<!--' ) { $this->next(SimpleNode::TYPE_COMMENT); $this->append('<!--'); $skip = 3; - // element start + // element start } elseif ($character === '<' && $this->isType(SimpleNode::TYPE_TEXT) && preg_match('#^</?[a-z]#i', substr($string, $i, 3)) ) { $this->next(SimpleNode::TYPE_ELEMENT); $this->append($character); - // CDATA end + // CDATA end } elseif ($character === ']' && $this->isType(SimpleNode::TYPE_CDATA) && substr($string, $i, 3) === ']]>' ) { $this->append(']]>'); $this->next(SimpleNode::TYPE_TEXT); $skip = 2; - // comment end + // comment end } elseif ($character === '-' && $this->isType(SimpleNode::TYPE_COMMENT) && substr($string, $i, 3) === '-->' ) { $this->append('-->'); $this->next(SimpleNode::TYPE_TEXT); $skip = 2; - // element end + // element end } elseif ($character === '>' && $this->isType(SimpleNode::TYPE_ELEMENT) && !$this->inAttribute() ) { $this->append($character); $this->next(SimpleNode::TYPE_TEXT); - // element attribute start + // element attribute start } elseif (($character === '"' || $character === "'") && $this->isType(SimpleNode::TYPE_ELEMENT) && !$this->inAttribute() ) { $this->attribute = $character; $this->append($character); - // element attribute end + // element attribute end } elseif (($character === '"' || $character === "'") && $this->isType(SimpleNode::TYPE_ELEMENT) && $this->attribute === $character ) { $this->append($character); $this->attribute = null; - // anything else (put to current type) + // anything else (put to current type) } else { $this->append($character); } diff --git a/typo3/sysext/core/Classes/LinkHandling/LegacyLinkNotationConverter.php b/typo3/sysext/core/Classes/LinkHandling/LegacyLinkNotationConverter.php index 9ac39b3bca5d..889b484a297c 100644 --- a/typo3/sysext/core/Classes/LinkHandling/LegacyLinkNotationConverter.php +++ b/typo3/sysext/core/Classes/LinkHandling/LegacyLinkNotationConverter.php @@ -145,7 +145,7 @@ class LegacyLinkNotationConverter if (!$isIdOrAlias && $isLocalFile !== 1 && $urlChar && (!$containsSlash || $urlChar < $fileChar)) { $result['type'] = LinkService::TYPE_URL; $result['url'] = UrlLinkHandler::getDefaultScheme() . '://' . $linkParameter; - // file (internal) or folder + // file (internal) or folder } elseif ($containsSlash || $isLocalFile) { $result = $this->getFileOrFolderObjectFromMixedIdentifier($linkParameter); } else { diff --git a/typo3/sysext/core/Classes/Resource/MimeTypeCollection.php b/typo3/sysext/core/Classes/Resource/MimeTypeCollection.php index 36293f392cfd..838280c67dbc 100644 --- a/typo3/sysext/core/Classes/Resource/MimeTypeCollection.php +++ b/typo3/sysext/core/Classes/Resource/MimeTypeCollection.php @@ -973,7 +973,7 @@ final class MimeTypeCollection 'video/x-sgi-movie' => ['movie'], 'video/x-smv' => ['smv'], 'x-conference/x-cooltalk' => ['ice'], - ]; + ]; /** * @return array<string, List<string>> diff --git a/typo3/sysext/core/Classes/Routing/Aspect/PersistedPatternMapper.php b/typo3/sysext/core/Classes/Routing/Aspect/PersistedPatternMapper.php index 599aeb7eb69c..e37b46e207fe 100644 --- a/typo3/sysext/core/Classes/Routing/Aspect/PersistedPatternMapper.php +++ b/typo3/sysext/core/Classes/Routing/Aspect/PersistedPatternMapper.php @@ -282,7 +282,7 @@ class PersistedPatternMapper implements PersistedMappableAspectInterface, Static $queryBuilder->expr()->eq('uid', $idParameter), $queryBuilder->expr()->eq($this->languageParentFieldName, $idParameter) ); - // otherwise - basically uid is not in pattern - restrict to languages and apply fallbacks + // otherwise - basically uid is not in pattern - restrict to languages and apply fallbacks } elseif ($languageAware) { $languageIds = $this->resolveAllRelevantLanguageIds(); $constraints[] = $queryBuilder->expr()->in( diff --git a/typo3/sysext/core/Classes/Security/ContentSecurityPolicy/PolicyProvider.php b/typo3/sysext/core/Classes/Security/ContentSecurityPolicy/PolicyProvider.php index 446f2b4890f6..a72a459cb18a 100644 --- a/typo3/sysext/core/Classes/Security/ContentSecurityPolicy/PolicyProvider.php +++ b/typo3/sysext/core/Classes/Security/ContentSecurityPolicy/PolicyProvider.php @@ -98,7 +98,7 @@ final class PolicyProvider $siteLanguage = $siteLanguage instanceof SiteLanguage ? $siteLanguage : $site->getDefaultLanguage(); $uri = $siteLanguage->getBase(); $uri = $uri->withPath(rtrim($uri->getPath(), '/') . '/'); - // otherwise fall back to current request URI + // otherwise fall back to current request URI } else { $uri = new Uri($normalizedParams->getSitePath()); } diff --git a/typo3/sysext/core/Classes/Utility/GeneralUtility.php b/typo3/sysext/core/Classes/Utility/GeneralUtility.php index eaa0148cd790..21abcbfb1b0c 100644 --- a/typo3/sysext/core/Classes/Utility/GeneralUtility.php +++ b/typo3/sysext/core/Classes/Utility/GeneralUtility.php @@ -1205,10 +1205,10 @@ class GeneralUtility $content = ''; } else { $content = $nl . self::array2xml($v, $NSprefix, $level + 1, '', $spaceInd, $subOptions, [ - 'parentTagName' => $tagName, - 'grandParentTagName' => $stackData['parentTagName'] ?? '', - 'path' => $clearStackPath ? '' : ($stackData['path'] ?? '') . '/' . $tagName, - ]) . ($spaceInd >= 0 ? str_pad('', ($level + 1) * $indentN, $indentChar) : ''); + 'parentTagName' => $tagName, + 'grandParentTagName' => $stackData['parentTagName'] ?? '', + 'path' => $clearStackPath ? '' : ($stackData['path'] ?? '') . '/' . $tagName, + ]) . ($spaceInd >= 0 ? str_pad('', ($level + 1) * $indentN, $indentChar) : ''); } // Do not set "type = array". Makes prettier XML but means that empty arrays are not restored with xml2array if (!isset($options['disableTypeAttrib']) || (int)$options['disableTypeAttrib'] != 2) { diff --git a/typo3/sysext/core/Tests/Functional/DataHandling/DataHandler/HookTest.php b/typo3/sysext/core/Tests/Functional/DataHandling/DataHandler/HookTest.php index aed12c8a0fc5..b1e71afd865b 100644 --- a/typo3/sysext/core/Tests/Functional/DataHandling/DataHandler/HookTest.php +++ b/typo3/sysext/core/Tests/Functional/DataHandling/DataHandler/HookTest.php @@ -141,8 +141,8 @@ final class HookTest extends FunctionalTestCase ); $this->assertHookInvocationsCount($hookFixture, [ - 'processDatamap_beforeStart', - 'processDatamap_afterAllOperations', + 'processDatamap_beforeStart', + 'processDatamap_afterAllOperations', ], 1); $this->assertHookInvocationsPayload($hookFixture, [ diff --git a/typo3/sysext/core/Tests/Functional/DataHandling/Slug/SlugHelperTest.php b/typo3/sysext/core/Tests/Functional/DataHandling/Slug/SlugHelperTest.php index cf82ff1b01e0..3256b203b547 100644 --- a/typo3/sysext/core/Tests/Functional/DataHandling/Slug/SlugHelperTest.php +++ b/typo3/sysext/core/Tests/Functional/DataHandling/Slug/SlugHelperTest.php @@ -96,13 +96,13 @@ final class SlugHelperTest extends FunctionalTestCase ], ], 'swiss page / german fallback parent' => [ - '/german-parent/swiss-page', - [ - 'uid' => '13', - 'title' => 'Swiss Page', - 'sys_language_uid' => 3, - ], - ], + '/german-parent/swiss-page', + [ + 'uid' => '13', + 'title' => 'Swiss Page', + 'sys_language_uid' => 3, + ], + ], ]; } diff --git a/typo3/sysext/core/Tests/Functional/RegistryTest.php b/typo3/sysext/core/Tests/Functional/RegistryTest.php index 9cd56e44cb90..7fb96a1df39b 100644 --- a/typo3/sysext/core/Tests/Functional/RegistryTest.php +++ b/typo3/sysext/core/Tests/Functional/RegistryTest.php @@ -113,14 +113,14 @@ final class RegistryTest extends FunctionalTestCase $connection->bulkInsert( 'sys_registry', [ - ['ns1', 'k1', serialize('v1')], - ['ns1', 'k2', serialize('v2')], - ['ns2', 'k1', serialize('v1')], - ], + ['ns1', 'k1', serialize('v1')], + ['ns1', 'k2', serialize('v2')], + ['ns2', 'k1', serialize('v1')], + ], ['entry_namespace', 'entry_key', 'entry_value'], [ - 'entry_value' => Connection::PARAM_LOB, - ] + 'entry_value' => Connection::PARAM_LOB, + ] ); (new Registry())->remove('ns1', 'k1'); diff --git a/typo3/sysext/core/Tests/Unit/Configuration/Tca/TcaMigrationTest.php b/typo3/sysext/core/Tests/Unit/Configuration/Tca/TcaMigrationTest.php index 56c0137fa0bf..6126328b8789 100644 --- a/typo3/sysext/core/Tests/Unit/Configuration/Tca/TcaMigrationTest.php +++ b/typo3/sysext/core/Tests/Unit/Configuration/Tca/TcaMigrationTest.php @@ -3062,13 +3062,13 @@ final class TcaMigrationTest extends UnitTestCase { yield 'always_description is removed' => [ 'input' => [ - 'aTable' => [ - 'interface' => [ - 'always_description' => 0, - 'anything_else' => true, - ], - 'columns' => [], - ], + 'aTable' => [ + 'interface' => [ + 'always_description' => 0, + 'anything_else' => true, + ], + 'columns' => [], + ], ], 'expected' => [ 'aTable' => [ diff --git a/typo3/sysext/core/Tests/Unit/ExpressionLanguage/ResolverTest.php b/typo3/sysext/core/Tests/Unit/ExpressionLanguage/ResolverTest.php index 5811d3a10323..abe5c89123b3 100644 --- a/typo3/sysext/core/Tests/Unit/ExpressionLanguage/ResolverTest.php +++ b/typo3/sysext/core/Tests/Unit/ExpressionLanguage/ResolverTest.php @@ -103,7 +103,7 @@ final class ResolverTest extends UnitTestCase 'varTrue' => true, 'varFalse' => false, 'varArray' => ['foo' => 'bar'], - ]); + ]); GeneralUtility::addInstance(DefaultProvider::class, $contextMock); $expressionLanguageResolver = new Resolver('default', []); self::assertSame($expectedResult, $expressionLanguageResolver->evaluate($expression, ['contextVar' => 42])); @@ -130,7 +130,7 @@ final class ResolverTest extends UnitTestCase 'var2' => '2', 'varTrue' => true, 'varFalse' => false, - ]); + ]); GeneralUtility::addInstance(DefaultProvider::class, $contextMock); $expressionLanguageResolver = new Resolver('default', []); self::assertSame($expectedResult, $expressionLanguageResolver->evaluate($expression, $contextVariables)); @@ -166,7 +166,7 @@ final class ResolverTest extends UnitTestCase $contextMock->method('getExpressionLanguageVariables')->willReturn([ 'var1' => 'FOO', 'var2' => 'foo', - ]); + ]); GeneralUtility::addInstance(DefaultProvider::class, $contextMock); GeneralUtility::addInstance(DefaultFunctionsProvider::class, $expressionProviderMock); $expressionLanguageResolver = new Resolver('default', []); diff --git a/typo3/sysext/core/Tests/Unit/Http/ServerRequestFactoryTest.php b/typo3/sysext/core/Tests/Unit/Http/ServerRequestFactoryTest.php index b214406ee238..47c035f4effb 100644 --- a/typo3/sysext/core/Tests/Unit/Http/ServerRequestFactoryTest.php +++ b/typo3/sysext/core/Tests/Unit/Http/ServerRequestFactoryTest.php @@ -97,39 +97,39 @@ final class ServerRequestFactoryTest extends UnitTestCase 0 => 'composer.json', ], ], - ], - 'type' => [ - 'newExample' => [ - 'image' => 'image/jpeg', - 'imageCollection' => [ - 0 => 'application/json', - ], + ], + 'type' => [ + 'newExample' => [ + 'image' => 'image/jpeg', + 'imageCollection' => [ + 0 => 'application/json', ], ], - 'tmp_name' => [ - 'newExample' => [ - 'image' => '/Applications/MAMP/tmp/php/phphXdbcd', - 'imageCollection' => [ - 0 => '/Applications/MAMP/tmp/php/phpgrZ4bb', - ], + ], + 'tmp_name' => [ + 'newExample' => [ + 'image' => '/Applications/MAMP/tmp/php/phphXdbcd', + 'imageCollection' => [ + 0 => '/Applications/MAMP/tmp/php/phpgrZ4bb', ], ], - 'error' => [ - 'newExample' => [ - 'image' => 0, - 'imageCollection' => [ - 0 => 0, - ], + ], + 'error' => [ + 'newExample' => [ + 'image' => 0, + 'imageCollection' => [ + 0 => 0, ], ], - 'size' => [ - 'newExample' => [ - 'image' => 59065, - 'imageCollection' => [ - 0 => 683, - ], + ], + 'size' => [ + 'newExample' => [ + 'image' => 59065, + 'imageCollection' => [ + 0 => 683, ], ], + ], ], ]; diff --git a/typo3/sysext/core/Tests/Unit/Mail/MailMessageTest.php b/typo3/sysext/core/Tests/Unit/Mail/MailMessageTest.php index afac7663bbc8..1636942aee7a 100644 --- a/typo3/sysext/core/Tests/Unit/Mail/MailMessageTest.php +++ b/typo3/sysext/core/Tests/Unit/Mail/MailMessageTest.php @@ -307,11 +307,11 @@ final class MailMessageTest extends UnitTestCase public static function exceptionIsThrownForInvalidArgumentCombinationsDataProvider(): array { return [ - 'setFrom' => ['setFrom'], - 'setReplyTo' => ['setReplyTo'], - 'setTo' => ['setTo'], - 'setCc' => ['setCc'], - 'setBcc' => ['setBcc'], + 'setFrom' => ['setFrom'], + 'setReplyTo' => ['setReplyTo'], + 'setTo' => ['setTo'], + 'setCc' => ['setCc'], + 'setBcc' => ['setBcc'], ]; } diff --git a/typo3/sysext/core/Tests/Unit/Resource/FileTest.php b/typo3/sysext/core/Tests/Unit/Resource/FileTest.php index 9e27a77ca780..400c58a74eb0 100644 --- a/typo3/sysext/core/Tests/Unit/Resource/FileTest.php +++ b/typo3/sysext/core/Tests/Unit/Resource/FileTest.php @@ -216,9 +216,9 @@ final class FileTest extends UnitTestCase { $fixture = new File( [ - 'name' => $originalFilename, - 'identifier' => '/' . $originalFilename, - ], + 'name' => $originalFilename, + 'identifier' => '/' . $originalFilename, + ], $this->storageMock ); self::assertSame($expectedBasename, $fixture->getNameWithoutExtension()); diff --git a/typo3/sysext/core/Tests/Unit/TypoScript/AST/AstBuilderInterfaceTest.php b/typo3/sysext/core/Tests/Unit/TypoScript/AST/AstBuilderInterfaceTest.php index 7643ecaa5fa5..65fc5e12fd63 100644 --- a/typo3/sysext/core/Tests/Unit/TypoScript/AST/AstBuilderInterfaceTest.php +++ b/typo3/sysext/core/Tests/Unit/TypoScript/AST/AstBuilderInterfaceTest.php @@ -775,10 +775,10 @@ final class AstBuilderInterfaceTest extends UnitTestCase $expectedAst = new RootNode(); $expectedAst->addChild($fooNode); yield 'copy operator with relative assignment to sub level ' => [ - "foo {\n" . - " bar.foobar = aValue\n" . - " bar.baz < .bar\n" . - '}', + "foo {\n" . + " bar.foobar = aValue\n" . + " bar.baz < .bar\n" . + '}', $expectedAst, [ 'foo.' => [ diff --git a/typo3/sysext/core/Tests/Unit/Utility/ArrayUtilityTest.php b/typo3/sysext/core/Tests/Unit/Utility/ArrayUtilityTest.php index 4967ecda7fca..9e7dd5282469 100644 --- a/typo3/sysext/core/Tests/Unit/Utility/ArrayUtilityTest.php +++ b/typo3/sysext/core/Tests/Unit/Utility/ArrayUtilityTest.php @@ -2902,7 +2902,7 @@ final class ArrayUtilityTest extends UnitTestCase 'input' => [ '10.' => [ 'wrap' => 'foo', - ], + ], '20.' => [ 'wrap' => 'bar', ], diff --git a/typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbBackend.php b/typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbBackend.php index 5b2d347ef80b..eac893ba5c3a 100644 --- a/typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbBackend.php +++ b/typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbBackend.php @@ -251,7 +251,7 @@ class Typo3DbBackend implements BackendInterface, SingletonInterface throw new SqlErrorException($e->getPrevious()->getMessage(), 1472064721, $e); } $rows = $result->fetchAllAssociative(); - // Prepared Doctrine DBAL statement + // Prepared Doctrine DBAL statement } elseif ($realStatement instanceof \Doctrine\DBAL\Statement) { try { $result = $realStatement->executeQuery($parameters); diff --git a/typo3/sysext/extbase/Classes/Routing/ExtbasePluginEnhancer.php b/typo3/sysext/extbase/Classes/Routing/ExtbasePluginEnhancer.php index 72d793cc8451..ca7cfc38dd4d 100644 --- a/typo3/sysext/extbase/Classes/Routing/ExtbasePluginEnhancer.php +++ b/typo3/sysext/extbase/Classes/Routing/ExtbasePluginEnhancer.php @@ -230,10 +230,10 @@ class ExtbasePluginEnhancer extends PluginEnhancer // use default action name if controller matches if ($tryUpdate && empty($target['action']) && $controllerName === ($target['controller'] ?? null)) { $target['action'] = $actionName; - // use default controller name if action is defined (implies: non-default-controllers must be given) + // use default controller name if action is defined (implies: non-default-controllers must be given) } elseif ($tryUpdate && empty($target['controller']) && !empty($target['action'])) { $target['controller'] = $controllerName; - // fallback and override + // fallback and override } else { $target['controller'] = $controllerName; $target['action'] = $actionName; diff --git a/typo3/sysext/extbase/Tests/Functional/Persistence/QueryLocalizedDataTest.php b/typo3/sysext/extbase/Tests/Functional/Persistence/QueryLocalizedDataTest.php index b50c2ff607a8..ed5c982e8153 100644 --- a/typo3/sysext/extbase/Tests/Functional/Persistence/QueryLocalizedDataTest.php +++ b/typo3/sysext/extbase/Tests/Functional/Persistence/QueryLocalizedDataTest.php @@ -1031,50 +1031,50 @@ final class QueryLocalizedDataTest extends FunctionalTestCase public static function postsWithoutRespectingSysLanguageDataProvider(): array { $allLanguages = [ - [ - 'title' => 'Blog 1', - AbstractDomainObject::PROPERTY_UID => 1, - AbstractDomainObject::PROPERTY_LOCALIZED_UID => 1, - ], - [ - 'title' => 'Blog 1 DA', - AbstractDomainObject::PROPERTY_UID => 1, - AbstractDomainObject::PROPERTY_LOCALIZED_UID => 2, - ], + [ + 'title' => 'Blog 1', + AbstractDomainObject::PROPERTY_UID => 1, + AbstractDomainObject::PROPERTY_LOCALIZED_UID => 1, + ], + [ + 'title' => 'Blog 1 DA', + AbstractDomainObject::PROPERTY_UID => 1, + AbstractDomainObject::PROPERTY_LOCALIZED_UID => 2, + ], ]; return [ 'default with overlays' => [ - 'language' => 0, - 'overlay' => LanguageAspect::OVERLAYS_ON, - 'expected' => $allLanguages, - ], - 'default without overlays, show all languages' => [ - 'language' => 0, - 'overlay' => LanguageAspect::OVERLAYS_OFF, - 'expected' => $allLanguages, - ], - 'DA with overlays, shows translated records twice (which is a bug)' => [ - 'language' => 1, - 'overlay' => LanguageAspect::OVERLAYS_ON, - 'expected' => [ - [ - 'title' => 'Blog 1 DA', - AbstractDomainObject::PROPERTY_UID => 1, - AbstractDomainObject::PROPERTY_LOCALIZED_UID => 2, - ], - [ - 'title' => 'Blog 1 DA', - AbstractDomainObject::PROPERTY_UID => 1, - AbstractDomainObject::PROPERTY_LOCALIZED_UID => 2, - ], - ], - ], + 'language' => 0, + 'overlay' => LanguageAspect::OVERLAYS_ON, + 'expected' => $allLanguages, + ], + 'default without overlays, show all languages' => [ + 'language' => 0, + 'overlay' => LanguageAspect::OVERLAYS_OFF, + 'expected' => $allLanguages, + ], + 'DA with overlays, shows translated records twice (which is a bug)' => [ + 'language' => 1, + 'overlay' => LanguageAspect::OVERLAYS_ON, + 'expected' => [ + [ + 'title' => 'Blog 1 DA', + AbstractDomainObject::PROPERTY_UID => 1, + AbstractDomainObject::PROPERTY_LOCALIZED_UID => 2, + ], + [ + 'title' => 'Blog 1 DA', + AbstractDomainObject::PROPERTY_UID => 1, + AbstractDomainObject::PROPERTY_LOCALIZED_UID => 2, + ], + ], + ], 'DA without overlays, queries DA language directly' => [ - 'language' => 1, - 'overlay' => LanguageAspect::OVERLAYS_OFF, - 'expected' => $allLanguages, - ], - ]; + 'language' => 1, + 'overlay' => LanguageAspect::OVERLAYS_OFF, + 'expected' => $allLanguages, + ], + ]; } /** diff --git a/typo3/sysext/extbase/Tests/Functional/Utility/LocalizationUtilityTest.php b/typo3/sysext/extbase/Tests/Functional/Utility/LocalizationUtilityTest.php index ee46efdd15c2..382fb6957f7f 100644 --- a/typo3/sysext/extbase/Tests/Functional/Utility/LocalizationUtilityTest.php +++ b/typo3/sysext/extbase/Tests/Functional/Utility/LocalizationUtilityTest.php @@ -155,20 +155,20 @@ final class LocalizationUtilityTest extends FunctionalTestCase ->method('getConfiguration') ->with($configurationType, 'label_test', null) ->willReturn(['_LOCAL_LANG' => [ - 'default' => [ - 'key3' => 'English label for key3 from TypoScript', - ], - 'da' => [ - 'key1' => 'key1 value from TS core', - 'key3' => [ - 'subkey1' => 'key3.subkey1 value from TypoScript', - // this key doesn't exist in XLF files - 'subkey2' => [ - 'subsubkey' => 'key3.subkey2.subsubkey value from TypoScript', - ], + 'default' => [ + 'key3' => 'English label for key3 from TypoScript', + ], + 'da' => [ + 'key1' => 'key1 value from TS core', + 'key3' => [ + 'subkey1' => 'key3.subkey1 value from TypoScript', + // this key doesn't exist in XLF files + 'subkey2' => [ + 'subsubkey' => 'key3.subkey2.subsubkey value from TypoScript', ], ], ], + ], ]); GeneralUtility::setSingletonInstance(ConfigurationManagerInterface::class, $configurationManagerInterfaceMock); diff --git a/typo3/sysext/extbase/Tests/Unit/Mvc/View/JsonViewTest.php b/typo3/sysext/extbase/Tests/Unit/Mvc/View/JsonViewTest.php index 77b8692b7123..59a7a34bb5e8 100644 --- a/typo3/sysext/extbase/Tests/Unit/Mvc/View/JsonViewTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Mvc/View/JsonViewTest.php @@ -129,9 +129,9 @@ final class JsonViewTest extends UnitTestCase $configuration = [ '_only' => ['name', 'path', 'properties'], '_descend' => [ - 'properties' => [ - '_exclude' => ['prohibited'], - ], + 'properties' => [ + '_exclude' => ['prohibited'], + ], ], ]; $expected = [ @@ -371,9 +371,9 @@ final class JsonViewTest extends UnitTestCase $object->value1 = new \stdClass(); $configuration = [ '_descend' => [ - 'value1' => [ - '_exposeObjectIdentifier' => true, - ], + 'value1' => [ + '_exposeObjectIdentifier' => true, + ], ], ]; diff --git a/typo3/sysext/fluid/Classes/ViewHelpers/FormViewHelper.php b/typo3/sysext/fluid/Classes/ViewHelpers/FormViewHelper.php index 9ace4bb375a9..3ea4779097d7 100644 --- a/typo3/sysext/fluid/Classes/ViewHelpers/FormViewHelper.php +++ b/typo3/sysext/fluid/Classes/ViewHelpers/FormViewHelper.php @@ -465,8 +465,8 @@ class FormViewHelper extends AbstractFormViewHelper // basically "request token, yes" - uses form-action URI as scope if ($isTrulyRequestToken || $requestToken === '@nonce') { $requestToken = RequestToken::create($formAction); - // basically "request token with 'my-scope'" - uses 'my-scope' } elseif (is_string($requestToken) && $requestToken !== '') { + // basically "request token with 'my-scope'" - uses 'my-scope' $requestToken = RequestToken::create($requestToken); } if (!$requestToken instanceof RequestToken) { diff --git a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/FormViewHelperTest.php b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/FormViewHelperTest.php index 7f1f6309d2f8..4265ab65fa14 100644 --- a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/FormViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/FormViewHelperTest.php @@ -62,7 +62,7 @@ final class FormViewHelperTest extends FunctionalTestCase 'fieldNamePrefix' => 'fieldNamePrefix<>&"\'', ], // first element having "@extension" in name attribute - '<input type="hidden" name="fieldNamePrefix<>&"'[__referrer][@extension]" value="" />', + '<input type="hidden" name="fieldNamePrefix<>&"'[__referrer][@extension]" value="" />', ], ]; } diff --git a/typo3/sysext/form/Classes/EventListener/DataStructureIdentifierListener.php b/typo3/sysext/form/Classes/EventListener/DataStructureIdentifierListener.php index a4babfb1061d..e5dc09e46d43 100644 --- a/typo3/sysext/form/Classes/EventListener/DataStructureIdentifierListener.php +++ b/typo3/sysext/form/Classes/EventListener/DataStructureIdentifierListener.php @@ -145,11 +145,11 @@ class DataStructureIdentifierListener $translationFile = 'LLL:EXT:form/Resources/Private/Language/Database.xlf'; $dataStructure['sheets']['sDEF']['ROOT']['el']['settings.overrideFinishers'] = [ 'label' => $translationFile . ':tt_content.pi_flexform.formframework.overrideFinishers', - 'onChange' => 'reload', - 'config' => [ - 'type' => 'check', - ], - ]; + 'onChange' => 'reload', + 'config' => [ + 'type' => 'check', + ], + ]; $newSheets = []; @@ -162,10 +162,10 @@ class DataStructureIdentifierListener $dataStructure['sheets']['sDEF']['ROOT']['el']['settings.overrideFinishers'], [ 'description' => $translationFile . ':tt_content.pi_flexform.formframework.overrideFinishers.empty', - 'config' => [ - 'readOnly' => true, - ], - ] + 'config' => [ + 'readOnly' => true, + ], + ] ); } diff --git a/typo3/sysext/form/Tests/Functional/RequestHandling/RequestHandlingTest.php b/typo3/sysext/form/Tests/Functional/RequestHandling/RequestHandlingTest.php index 389240479a03..e0578d6530c8 100644 --- a/typo3/sysext/form/Tests/Functional/RequestHandling/RequestHandlingTest.php +++ b/typo3/sysext/form/Tests/Functional/RequestHandling/RequestHandlingTest.php @@ -227,9 +227,9 @@ final class RequestHandlingTest extends FunctionalTestCase // ]; yield 'Multistep form / COA_INT FLUIDTEMPLATE through ext:form controller' => [ - 'formIdentifier' => 'FormFromCoaIntFluidtemplateThroughExtFormController', - 'formNamePrefix' => 'tx_form_formframework', - ]; + 'formIdentifier' => 'FormFromCoaIntFluidtemplateThroughExtFormController', + 'formNamePrefix' => 'tx_form_formframework', + ]; } /** @@ -368,8 +368,8 @@ final class RequestHandlingTest extends FunctionalTestCase // ]; yield 'Multistep form / COA_INT FLUIDTEMPLATE through ext:form controller' => [ - 'formIdentifier' => 'FormFromCoaIntFluidtemplateThroughExtFormController', - ]; + 'formIdentifier' => 'FormFromCoaIntFluidtemplateThroughExtFormController', + ]; } /** diff --git a/typo3/sysext/form/Tests/Functional/Service/TranslationServiceTest.php b/typo3/sysext/form/Tests/Functional/Service/TranslationServiceTest.php index f089561a1b55..4a8ad6481242 100644 --- a/typo3/sysext/form/Tests/Functional/Service/TranslationServiceTest.php +++ b/typo3/sysext/form/Tests/Functional/Service/TranslationServiceTest.php @@ -737,10 +737,10 @@ final class TranslationServiceTest extends FunctionalTestCase $element->method('getRenderingOptions')->willReturn([ 'translation' => [ 'arguments' => [ - 'label' => [ - 'this', - 'that', - ], + 'label' => [ + 'this', + 'that', + ], ], ], ]); @@ -829,7 +829,7 @@ final class TranslationServiceTest extends FunctionalTestCase $textElementXlfPaths = [ 10 => 'EXT:form_labels/Resources/Private/Language/locallang_text.xlf', 20 => 'EXT:form_labels/Resources/Private/Language/locallang_additional_text.xlf', - ]; + ]; $formRuntimeIdentifier = 'form-runtime-identifier'; $formElementIdentifier = 'form-element-identifier'; diff --git a/typo3/sysext/form/Tests/Unit/Domain/Configuration/FormDefinitionConversionServiceTest.php b/typo3/sysext/form/Tests/Unit/Domain/Configuration/FormDefinitionConversionServiceTest.php index f16f962f79ca..9f2360b282e9 100644 --- a/typo3/sysext/form/Tests/Unit/Domain/Configuration/FormDefinitionConversionServiceTest.php +++ b/typo3/sysext/form/Tests/Unit/Domain/Configuration/FormDefinitionConversionServiceTest.php @@ -98,32 +98,32 @@ final class FormDefinitionConversionServiceTest extends UnitTestCase 'horst' => [ 'heinz' => '', 'paul' => [[]], - '_orig_heinz' => [ - 'value' => '', - 'hmac' => $data['sabine']['horst']['_orig_heinz']['hmac'], - ], + '_orig_heinz' => [ + 'value' => '', + 'hmac' => $data['sabine']['horst']['_orig_heinz']['hmac'], + ], ], - '_orig_heinz' => [ - 'value' => '2', - 'hmac' => $data['sabine']['_orig_heinz']['hmac'], - ], - ], - '_orig_prototypeName' => [ - 'value' => 'standard', - 'hmac' => $data['_orig_prototypeName']['hmac'], - ], - '_orig_identifier' => [ - 'value' => 'test', - 'hmac' => $data['_orig_identifier']['hmac'], - ], - '_orig_type' => [ - 'value' => 'Form', - 'hmac' => $data['_orig_type']['hmac'], - ], - '_orig_heinz' => [ - 'value' => 1, - 'hmac' => $data['_orig_heinz']['hmac'], - ], + '_orig_heinz' => [ + 'value' => '2', + 'hmac' => $data['sabine']['_orig_heinz']['hmac'], + ], + ], + '_orig_prototypeName' => [ + 'value' => 'standard', + 'hmac' => $data['_orig_prototypeName']['hmac'], + ], + '_orig_identifier' => [ + 'value' => 'test', + 'hmac' => $data['_orig_identifier']['hmac'], + ], + '_orig_type' => [ + 'value' => 'Form', + 'hmac' => $data['_orig_type']['hmac'], + ], + '_orig_heinz' => [ + 'value' => 1, + 'hmac' => $data['_orig_heinz']['hmac'], + ], ]; self::assertSame($expected, $data); @@ -160,28 +160,28 @@ final class FormDefinitionConversionServiceTest extends UnitTestCase 'horst' => [ 'heinz' => '', 'paul' => [[]], - '_orig_heinz' => [ - 'value' => '', - 'hmac' => '12345', - ], + '_orig_heinz' => [ + 'value' => '', + 'hmac' => '12345', + ], ], - '_orig_heinz' => [ - 'value' => '2', - 'hmac' => '12345', - ], - ], - '_orig_prototypeName' => [ - 'value' => 'standard', - 'hmac' => '12345', - ], - '_orig_identifier' => [ - 'value' => 'test', - 'hmac' => '12345', - ], - '_orig_heinz' => [ - 'value' => 1, - 'hmac' => '12345', - ], + '_orig_heinz' => [ + 'value' => '2', + 'hmac' => '12345', + ], + ], + '_orig_prototypeName' => [ + 'value' => 'standard', + 'hmac' => '12345', + ], + '_orig_identifier' => [ + 'value' => 'test', + 'hmac' => '12345', + ], + '_orig_heinz' => [ + 'value' => 1, + 'hmac' => '12345', + ], ]; $expected = [ diff --git a/typo3/sysext/form/Tests/Unit/Mvc/Property/TypeConverter/FormDefinitionArrayConverterTest.php b/typo3/sysext/form/Tests/Unit/Mvc/Property/TypeConverter/FormDefinitionArrayConverterTest.php index 0839745f8bd6..456503e2d26d 100644 --- a/typo3/sysext/form/Tests/Unit/Mvc/Property/TypeConverter/FormDefinitionArrayConverterTest.php +++ b/typo3/sysext/form/Tests/Unit/Mvc/Property/TypeConverter/FormDefinitionArrayConverterTest.php @@ -54,14 +54,14 @@ final class FormDefinitionArrayConverterTest extends UnitTestCase ], ], ], - '_orig_prototypeName' => [ - 'value' => 'standard', - 'hmac' => GeneralUtility::hmac(serialize(['test', 'prototypeName', 'standard']), $sessionToken), - ], - '_orig_identifier' => [ - 'value' => 'test', - 'hmac' => GeneralUtility::hmac(serialize(['test', 'identifier', 'test']), $sessionToken), - ], + '_orig_prototypeName' => [ + 'value' => 'standard', + 'hmac' => GeneralUtility::hmac(serialize(['test', 'prototypeName', 'standard']), $sessionToken), + ], + '_orig_identifier' => [ + 'value' => 'test', + 'hmac' => GeneralUtility::hmac(serialize(['test', 'identifier', 'test']), $sessionToken), + ], ]; $typeConverter = $this->getAccessibleMock(FormDefinitionArrayConverter::class, ['getFormDefinitionValidationService', 'retrieveSessionToken'], callOriginalConstructor: false); @@ -125,12 +125,12 @@ final class FormDefinitionArrayConverterTest extends UnitTestCase '_value' => 'yyy1', ], [ - '_label' => 'xxx2', - '_value' => 'yyy2', + '_label' => 'xxx2', + '_value' => 'yyy2', ], [ - '_label' => 'xxx3', - '_value' => 'yyy2', + '_label' => 'xxx3', + '_value' => 'yyy2', ], ], '_label' => 'xxx', @@ -175,14 +175,14 @@ final class FormDefinitionArrayConverterTest extends UnitTestCase $input = [ 'prototypeName' => 'foo', 'identifier' => 'test', - '_orig_prototypeName' => [ - 'value' => 'standard', - 'hmac' => GeneralUtility::hmac(serialize(['test', 'prototypeName', 'standard']), $sessionToken), - ], - '_orig_identifier' => [ - 'value' => 'test', - 'hmac' => GeneralUtility::hmac(serialize(['test', 'identifier', 'test']), $sessionToken), - ], + '_orig_prototypeName' => [ + 'value' => 'standard', + 'hmac' => GeneralUtility::hmac(serialize(['test', 'prototypeName', 'standard']), $sessionToken), + ], + '_orig_identifier' => [ + 'value' => 'test', + 'hmac' => GeneralUtility::hmac(serialize(['test', 'identifier', 'test']), $sessionToken), + ], ]; $typeConverter->convertFrom(json_encode($input), FormDefinitionArray::class); @@ -206,14 +206,14 @@ final class FormDefinitionArrayConverterTest extends UnitTestCase $input = [ 'prototypeName' => 'standard', 'identifier' => 'xxx', - '_orig_prototypeName' => [ - 'value' => 'standard', - 'hmac' => GeneralUtility::hmac(serialize(['test', 'prototypeName', 'standard']), $sessionToken), - ], - '_orig_identifier' => [ - 'value' => 'test', - 'hmac' => GeneralUtility::hmac(serialize(['test', 'prototypeName', 'test']), $sessionToken), - ], + '_orig_prototypeName' => [ + 'value' => 'standard', + 'hmac' => GeneralUtility::hmac(serialize(['test', 'prototypeName', 'standard']), $sessionToken), + ], + '_orig_identifier' => [ + 'value' => 'test', + 'hmac' => GeneralUtility::hmac(serialize(['test', 'prototypeName', 'test']), $sessionToken), + ], ]; $typeConverter->convertFrom(json_encode($input), FormDefinitionArray::class); diff --git a/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php b/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php index 933ac8c18595..44da6b9265a7 100644 --- a/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php +++ b/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php @@ -4320,7 +4320,7 @@ class ContentObjectRenderer implements LoggerAwareInterface if (method_exists($value, 'get' . ucfirst($currentKey))) { $getterMethod = 'get' . ucfirst($currentKey); $value = $value->$getterMethod(...)(); - // server request attribute, such as "routing" + // server request attribute, such as "routing" } elseif ($value instanceof ServerRequestInterface) { $value = $value->getAttribute($currentKey); } else { diff --git a/typo3/sysext/frontend/Classes/DataProcessing/GalleryProcessor.php b/typo3/sysext/frontend/Classes/DataProcessing/GalleryProcessor.php index 03a432797311..8510254d6f2c 100644 --- a/typo3/sysext/frontend/Classes/DataProcessing/GalleryProcessor.php +++ b/typo3/sysext/frontend/Classes/DataProcessing/GalleryProcessor.php @@ -422,7 +422,7 @@ class GalleryProcessor implements DataProcessorInterface // Recalculate gallery width $this->galleryData['width'] = floor($maximumRowWidth / $mediaScalingCorrection); - // User entered a predefined width + // User entered a predefined width } elseif ($this->equalMediaWidth) { $mediaScalingCorrection = 1; @@ -446,7 +446,7 @@ class GalleryProcessor implements DataProcessorInterface // Recalculate gallery width $this->galleryData['width'] = floor($totalRowWidth / $mediaScalingCorrection); - // Automatic setting of width and height + // Automatic setting of width and height } else { $maxMediaWidth = (int)($galleryWidthMinusBorderAndSpacing / $this->galleryData['count']['columns']); foreach ($this->fileObjects as $key => $fileObject) { diff --git a/typo3/sysext/frontend/Classes/Middleware/PageArgumentValidator.php b/typo3/sysext/frontend/Classes/Middleware/PageArgumentValidator.php index ee2b25c46539..ea6d291d3e71 100644 --- a/typo3/sysext/frontend/Classes/Middleware/PageArgumentValidator.php +++ b/typo3/sysext/frontend/Classes/Middleware/PageArgumentValidator.php @@ -91,7 +91,7 @@ class PageArgumentValidator implements MiddlewareInterface, LoggerAwareInterface ['code' => PageAccessFailureReasons::CACHEHASH_COMPARISON_FAILED] ); } - // No cHash given but was required + // No cHash given but was required } elseif (!$this->evaluatePageArgumentsWithoutCacheHash($cacheInstruction, $pageArguments, $pageNotFoundOnValidationError)) { return GeneralUtility::makeInstance(ErrorController::class)->pageNotFoundAction( $request, diff --git a/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerSiteRequest/PersistedAliasMapperTest.php b/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerSiteRequest/PersistedAliasMapperTest.php index 2b50224ecd57..2186a024d39a 100644 --- a/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerSiteRequest/PersistedAliasMapperTest.php +++ b/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerSiteRequest/PersistedAliasMapperTest.php @@ -116,13 +116,13 @@ final class PersistedAliasMapperTest extends AbstractEnhancerSiteRequestTestCase ->withApplicableSet( ApplicableConjunction::create( AspectDeclaration::create('PersistedAliasMapper')->withConfiguration([ - VariableItem::create('aspectName', [ - 'type' => 'PersistedAliasMapper', - 'tableName' => 'pages', - 'routeFieldName' => 'slug', - 'routeValuePrefix' => '/', - 'fallbackValue' => '9999', - ]), + VariableItem::create('aspectName', [ + 'type' => 'PersistedAliasMapper', + 'tableName' => 'pages', + 'routeFieldName' => 'slug', + 'routeValuePrefix' => '/', + 'fallbackValue' => '9999', + ]), ]), VariablesContext::create( Variables::create(['resolveValue' => '9999']) diff --git a/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php b/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php index eeb738841857..f3553ef65e7a 100644 --- a/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php +++ b/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php @@ -1870,8 +1870,8 @@ final class ContentObjectRendererTest extends UnitTestCase $this->frontendControllerMock ->config['config']['contentObjectExceptionHandler.'] = [ - 'errorMessage' => 'Global message for testing', - ]; + 'errorMessage' => 'Global message for testing', + ]; $configuration = [ 'exceptionHandler' => '1', 'exceptionHandler.' => [ diff --git a/typo3/sysext/frontend/Tests/Unit/DataProcessing/FlexFormProcessorTest.php b/typo3/sysext/frontend/Tests/Unit/DataProcessing/FlexFormProcessorTest.php index 32431d3ec72a..8ef5fa0b60f0 100644 --- a/typo3/sysext/frontend/Tests/Unit/DataProcessing/FlexFormProcessorTest.php +++ b/typo3/sysext/frontend/Tests/Unit/DataProcessing/FlexFormProcessorTest.php @@ -45,8 +45,8 @@ final class FlexFormProcessorTest extends UnitTestCase { $processorConfiguration = ['as' => 'myOutputVariable', 'fieldName' => 'non_existing_field']; $this->contentObjectRendererMock->method('stdWrapValue')->willReturnMap([ - ['fieldName', $processorConfiguration, 'pi_flexform', 'non_existing_field'], - ['as', $processorConfiguration, 'flexFormData', 'myOutputVariable'], + ['fieldName', $processorConfiguration, 'pi_flexform', 'non_existing_field'], + ['as', $processorConfiguration, 'flexFormData', 'myOutputVariable'], ]); $processedData = [ diff --git a/typo3/sysext/impexp/Tests/Functional/Export/PagesAndTtContentTest.php b/typo3/sysext/impexp/Tests/Functional/Export/PagesAndTtContentTest.php index 0f886aef2f75..72c8238b872c 100644 --- a/typo3/sysext/impexp/Tests/Functional/Export/PagesAndTtContentTest.php +++ b/typo3/sysext/impexp/Tests/Functional/Export/PagesAndTtContentTest.php @@ -23,11 +23,11 @@ use TYPO3\CMS\Impexp\Tests\Functional\AbstractImportExportTestCase; final class PagesAndTtContentTest extends AbstractImportExportTestCase { protected array $pathsToLinkInTestInstance = [ - 'typo3/sysext/impexp/Tests/Functional/Fixtures/Folders/fileadmin/user_upload' => 'fileadmin/user_upload', + 'typo3/sysext/impexp/Tests/Functional/Fixtures/Folders/fileadmin/user_upload' => 'fileadmin/user_upload', ]; protected array $testExtensionsToLoad = [ - 'typo3/sysext/impexp/Tests/Functional/Fixtures/Extensions/template_extension', + 'typo3/sysext/impexp/Tests/Functional/Fixtures/Extensions/template_extension', ]; protected array $recordTypesIncludeFields = diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportPageAndRecords.php b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportPageAndRecords.php index 9a17869e81e3..f29dd7e68841 100644 --- a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportPageAndRecords.php +++ b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportPageAndRecords.php @@ -14,408 +14,408 @@ */ return [ - 'update' => false, - 'showDiff' => false, - 'insidePageTree' => - [ - 0 => + 'update' => false, + 'showDiff' => false, + 'insidePageTree' => [ - 'ref' => 'pages:0', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span title="pages:0" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true"> + 0 => + [ + 'ref' => 'pages:0', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span title="pages:0" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/apps.svg#apps-pagetree-page-default" /></svg> </span> </span>', - 'title' => '', - 'active' => 'active', - 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][pages:0]" id="checkExcludepages:0" value="1" /><label class="form-check-label" for="checkExcludepages:0">Exclude</label></div>', - 'message' => '', - ], - 1 => - [ - 'ref' => 'be_users:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="be_users:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-user-admin" data-identifier="status-user-admin" aria-hidden="true"> + 'title' => '', + 'active' => 'active', + 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][pages:0]" id="checkExcludepages:0" value="1" /><label class="form-check-label" for="checkExcludepages:0">Exclude</label></div>', + 'message' => '', + ], + 1 => + [ + 'ref' => 'be_users:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="be_users:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-user-admin" data-identifier="status-user-admin" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/status.svg#status-user-admin" /></svg> </span> </span>', - 'title' => 'admin', - 'active' => 'active', - 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][be_users:1]" id="checkExcludebe_users:1" value="1" /><label class="form-check-label" for="checkExcludebe_users:1">Exclude</label></div>', - 'message' => '', - ], - 2 => - [ - 'ref' => 'sys_file:4', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file:4" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-text-text" data-identifier="mimetypes-text-text" aria-hidden="true"> + 'title' => 'admin', + 'active' => 'active', + 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][be_users:1]" id="checkExcludebe_users:1" value="1" /><label class="form-check-label" for="checkExcludebe_users:1">Exclude</label></div>', + 'message' => '', + ], + 2 => + [ + 'ref' => 'sys_file:4', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file:4" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-text-text" data-identifier="mimetypes-text-text" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-text-text" /></svg> </span> </span>', - 'title' => 'Empty.html', - 'active' => 'active', - 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][sys_file:4]" id="checkExcludesys_file:4" value="1" /><label class="form-check-label" for="checkExcludesys_file:4">Exclude</label></div>', - 'message' => '', - ], - 3 => - [ - 'ref' => 'sys_file:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image" aria-hidden="true"> + 'title' => 'Empty.html', + 'active' => 'active', + 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][sys_file:4]" id="checkExcludesys_file:4" value="1" /><label class="form-check-label" for="checkExcludesys_file:4">Exclude</label></div>', + 'message' => '', + ], + 3 => + [ + 'ref' => 'sys_file:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-media-image" /></svg> </span> </span>', - 'title' => 'typo3_image2.jpg', - 'active' => 'active', - 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][sys_file:1]" id="checkExcludesys_file:1" value="1" /><label class="form-check-label" for="checkExcludesys_file:1">Exclude</label></div>', - 'message' => '', - ], - 4 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'title' => 'typo3_image2.jpg', + 'active' => 'active', + 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][sys_file:1]" id="checkExcludesys_file:1" value="1" /><label class="form-check-label" for="checkExcludesys_file:1">Exclude</label></div>', + 'message' => '', + ], + 4 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 5 => - [ - 'ref' => 'sys_file:2', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 5 => + [ + 'ref' => 'sys_file:2', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-media-image" /></svg> </span> </span>', - 'title' => 'typo3_image3.jpg', - 'active' => 'active', - 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][sys_file:2]" id="checkExcludesys_file:2" value="1" /><label class="form-check-label" for="checkExcludesys_file:2">Exclude</label></div>', - 'message' => '', - ], - 6 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'title' => 'typo3_image3.jpg', + 'active' => 'active', + 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][sys_file:2]" id="checkExcludesys_file:2" value="1" /><label class="form-check-label" for="checkExcludesys_file:2">Exclude</label></div>', + 'message' => '', + ], + 6 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 7 => - [ - 'ref' => 'sys_file:3', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file:3" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 7 => + [ + 'ref' => 'sys_file:3', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file:3" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-media-image" /></svg> </span> </span>', - 'title' => 'typo3_image5.jpg', - 'active' => 'active', - 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][sys_file:3]" id="checkExcludesys_file:3" value="1" /><label class="form-check-label" for="checkExcludesys_file:3">Exclude</label></div>', - 'message' => '', - ], - 8 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'title' => 'typo3_image5.jpg', + 'active' => 'active', + 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][sys_file:3]" id="checkExcludesys_file:3" value="1" /><label class="form-check-label" for="checkExcludesys_file:3">Exclude</label></div>', + 'message' => '', + ], + 8 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 9 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-sys_file_storage" data-identifier="mimetypes-x-sys_file_storage" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 9 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-sys_file_storage" data-identifier="mimetypes-x-sys_file_storage" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-sys_file_storage" /></svg> </span> </span>', - 'title' => 'fileadmin', - 'active' => 'active', - 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][sys_file_storage:1]" id="checkExcludesys_file_storage:1" value="1" /><label class="form-check-label" for="checkExcludesys_file_storage:1">Exclude</label></div>', - 'message' => '', - ], - 10 => - [ - 'ref' => 'pages:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="pages:1" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true"> + 'title' => 'fileadmin', + 'active' => 'active', + 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][sys_file_storage:1]" id="checkExcludesys_file_storage:1" value="1" /><label class="form-check-label" for="checkExcludesys_file_storage:1">Exclude</label></div>', + 'message' => '', + ], + 10 => + [ + 'ref' => 'pages:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="pages:1" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/apps.svg#apps-pagetree-page-default" /></svg> </span> </span>', - 'title' => 'Root', - 'active' => 'active', - 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][pages:1]" id="checkExcludepages:1" value="1" /><label class="form-check-label" for="checkExcludepages:1">Exclude</label></div>', - 'message' => '', - ], - 11 => - [ - 'ref' => 'tt_content:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="tt_content:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text" aria-hidden="true"> + 'title' => 'Root', + 'active' => 'active', + 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][pages:1]" id="checkExcludepages:1" value="1" /><label class="form-check-label" for="checkExcludepages:1">Exclude</label></div>', + 'message' => '', + ], + 11 => + [ + 'ref' => 'tt_content:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="tt_content:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-content-text" /></svg> </span> </span>', - 'title' => 'Test content', - 'active' => 'active', - 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][tt_content:1]" id="checkExcludett_content:1" value="1" /><label class="form-check-label" for="checkExcludett_content:1">Exclude</label></div>', - 'message' => '', - ], - 12 => - [ - 'ref' => 'SOFTREF', - 'type' => 'softref', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="SOFTREF" class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft" aria-hidden="true"> + 'title' => 'Test content', + 'active' => 'active', + 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][tt_content:1]" id="checkExcludett_content:1" value="1" /><label class="form-check-label" for="checkExcludett_content:1">Exclude</label></div>', + 'message' => '', + ], + 12 => + [ + 'ref' => 'SOFTREF', + 'type' => 'softref', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="SOFTREF" class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft" aria-hidden="true"> <span class="icon-markup"> <img src="typo3/sysext/impexp/Resources/Public/Icons/status-reference-soft.png" width="16" height="16" alt="" /> </span> </span>', - 'title' => '<em>header_link, "typolink"</em>: <span title="file:2">file:2</span><br><span class="indent indent-inline-block" style="--indent-level: 3"></span> <strong>Record</strong> sys_file:2', - '_softRefInfo' => - [ - 'field' => 'header_link', - 'spKey' => 'typolink', - 'matchString' => 'file:2', - 'subst' => - [ - 'type' => 'db', - 'recordRef' => 'sys_file:2', - 'tokenID' => '2487ce518ed56d22f20f259928ff43f1', - 'tokenValue' => 'file:2', + 'title' => '<em>header_link, "typolink"</em>: <span title="file:2">file:2</span><br><span class="indent indent-inline-block" style="--indent-level: 3"></span> <strong>Record</strong> sys_file:2', + '_softRefInfo' => + [ + 'field' => 'header_link', + 'spKey' => 'typolink', + 'matchString' => 'file:2', + 'subst' => + [ + 'type' => 'db', + 'recordRef' => 'sys_file:2', + 'tokenID' => '2487ce518ed56d22f20f259928ff43f1', + 'tokenValue' => 'file:2', + ], + ], + 'controls' => '<select class="form-select form-select-sm" name="tx_impexp[softrefCfg][2487ce518ed56d22f20f259928ff43f1][mode]" style="width: 100px"><option value="" selected="selected"></option><option value="editable">Editable</option><option value="exclude">Exclude</option></select>', + 'message' => '', ], - ], - 'controls' => '<select class="form-select form-select-sm" name="tx_impexp[softrefCfg][2487ce518ed56d22f20f259928ff43f1][mode]" style="width: 100px"><option value="" selected="selected"></option><option value="editable">Editable</option><option value="exclude">Exclude</option></select>', - 'message' => '', - ], - 13 => - [ - 'ref' => 'sys_file:2', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">typo3_image3.jpg</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 4"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 13 => + [ + 'ref' => 'sys_file:2', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">typo3_image3.jpg</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 4"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 14 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 5"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 14 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 5"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 15 => - [ - 'ref' => 'tt_content:2', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="tt_content:2" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 15 => + [ + 'ref' => 'tt_content:2', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="tt_content:2" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-content-text" /></svg> </span> </span>', - 'title' => 'Test content 2', - 'active' => 'active', - 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][tt_content:2]" id="checkExcludett_content:2" value="1" /><label class="form-check-label" for="checkExcludett_content:2">Exclude</label></div>', - 'message' => '', - ], - 16 => - [ - 'ref' => 'SOFTREF', - 'type' => 'softref', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="SOFTREF" class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft" aria-hidden="true"> + 'title' => 'Test content 2', + 'active' => 'active', + 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][tt_content:2]" id="checkExcludett_content:2" value="1" /><label class="form-check-label" for="checkExcludett_content:2">Exclude</label></div>', + 'message' => '', + ], + 16 => + [ + 'ref' => 'SOFTREF', + 'type' => 'softref', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="SOFTREF" class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft" aria-hidden="true"> <span class="icon-markup"> <img src="typo3/sysext/impexp/Resources/Public/Icons/status-reference-soft.png" width="16" height="16" alt="" /> </span> </span>', - 'title' => '<em>header_link, "typolink"</em>: <span title="file:4">file:4</span>', - '_softRefInfo' => - [ - 'field' => 'header_link', - 'spKey' => 'typolink', - 'matchString' => 'file:4', - 'subst' => - [ - 'type' => 'external', - 'tokenID' => '81b8b33df54ef433f1cbc7c3e513e6c4', - 'tokenValue' => '4', + 'title' => '<em>header_link, "typolink"</em>: <span title="file:4">file:4</span>', + '_softRefInfo' => + [ + 'field' => 'header_link', + 'spKey' => 'typolink', + 'matchString' => 'file:4', + 'subst' => + [ + 'type' => 'external', + 'tokenID' => '81b8b33df54ef433f1cbc7c3e513e6c4', + 'tokenValue' => '4', + ], + ], + 'controls' => '<select class="form-select form-select-sm" name="tx_impexp[softrefCfg][81b8b33df54ef433f1cbc7c3e513e6c4][mode]" style="width: 100px"><option value="" selected="selected"></option><option value="editable">Editable</option><option value="exclude">Exclude</option></select>', + 'message' => '', ], - ], - 'controls' => '<select class="form-select form-select-sm" name="tx_impexp[softrefCfg][81b8b33df54ef433f1cbc7c3e513e6c4][mode]" style="width: 100px"><option value="" selected="selected"></option><option value="editable">Editable</option><option value="exclude">Exclude</option></select>', - 'message' => '', - ], - 17 => - [ - 'ref' => 'tt_content:3', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="tt_content:3" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text" aria-hidden="true"> + 17 => + [ + 'ref' => 'tt_content:3', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="tt_content:3" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-content-text" /></svg> </span> <span class="icon-overlay icon-overlay-hidden"><svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/overlay.svg#overlay-hidden" /></svg></span> </span>', - 'title' => 'Test content 3', - 'active' => 'hidden', - 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][tt_content:3]" id="checkExcludett_content:3" value="1" /><label class="form-check-label" for="checkExcludett_content:3">Exclude</label></div>', - 'message' => '', - ], - 18 => - [ - 'ref' => 'SOFTREF', - 'type' => 'softref', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="SOFTREF" class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft" aria-hidden="true"> + 'title' => 'Test content 3', + 'active' => 'hidden', + 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][tt_content:3]" id="checkExcludett_content:3" value="1" /><label class="form-check-label" for="checkExcludett_content:3">Exclude</label></div>', + 'message' => '', + ], + 18 => + [ + 'ref' => 'SOFTREF', + 'type' => 'softref', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="SOFTREF" class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft" aria-hidden="true"> <span class="icon-markup"> <img src="typo3/sysext/impexp/Resources/Public/Icons/status-reference-soft.png" width="16" height="16" alt="" /> </span> </span>', - 'title' => '<em>header_link, "typolink"</em>: <span title="file:3">file:3</span><br><span class="indent indent-inline-block" style="--indent-level: 3"></span> <strong>Record</strong> sys_file:3', - '_softRefInfo' => - [ - 'field' => 'header_link', - 'spKey' => 'typolink', - 'matchString' => 'file:3', - 'subst' => - [ - 'type' => 'db', - 'recordRef' => 'sys_file:3', - 'tokenID' => '0b1253ebf70ef5be862f29305e404edc', - 'tokenValue' => 'file:3', + 'title' => '<em>header_link, "typolink"</em>: <span title="file:3">file:3</span><br><span class="indent indent-inline-block" style="--indent-level: 3"></span> <strong>Record</strong> sys_file:3', + '_softRefInfo' => + [ + 'field' => 'header_link', + 'spKey' => 'typolink', + 'matchString' => 'file:3', + 'subst' => + [ + 'type' => 'db', + 'recordRef' => 'sys_file:3', + 'tokenID' => '0b1253ebf70ef5be862f29305e404edc', + 'tokenValue' => 'file:3', + ], + ], + 'controls' => '<select class="form-select form-select-sm" name="tx_impexp[softrefCfg][0b1253ebf70ef5be862f29305e404edc][mode]" style="width: 100px"><option value="" selected="selected"></option><option value="editable">Editable</option><option value="exclude">Exclude</option></select>', + 'message' => '', ], - ], - 'controls' => '<select class="form-select form-select-sm" name="tx_impexp[softrefCfg][0b1253ebf70ef5be862f29305e404edc][mode]" style="width: 100px"><option value="" selected="selected"></option><option value="editable">Editable</option><option value="exclude">Exclude</option></select>', - 'message' => '', - ], - 19 => - [ - 'ref' => 'sys_file:3', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">typo3_image5.jpg</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 4"></span><span title="sys_file:3" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 19 => + [ + 'ref' => 'sys_file:3', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">typo3_image5.jpg</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 4"></span><span title="sys_file:3" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 20 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 5"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 20 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 5"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 21 => - [ - 'ref' => 'pages:2', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="pages:2" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 21 => + [ + 'ref' => 'pages:2', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="pages:2" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/apps.svg#apps-pagetree-page-default" /></svg> </span> </span>', - 'title' => 'Dummy 1-2', - 'active' => 'active', - 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][pages:2]" id="checkExcludepages:2" value="1" /><label class="form-check-label" for="checkExcludepages:2">Exclude</label></div>', - 'message' => '', - ], - 22 => - [ - 'ref' => 'pages:3', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="pages:3" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true"> + 'title' => 'Dummy 1-2', + 'active' => 'active', + 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][pages:2]" id="checkExcludepages:2" value="1" /><label class="form-check-label" for="checkExcludepages:2">Exclude</label></div>', + 'message' => '', + ], + 22 => + [ + 'ref' => 'pages:3', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="pages:3" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/apps.svg#apps-pagetree-page-default" /></svg> </span> <span class="icon-overlay icon-overlay-hidden"><svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/overlay.svg#overlay-hidden" /></svg></span> </span>', - 'title' => 'Dummy 1-3', - 'active' => 'hidden', - 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][pages:3]" id="checkExcludepages:3" value="1" /><label class="form-check-label" for="checkExcludepages:3">Exclude</label></div>', - 'message' => '', + 'title' => 'Dummy 1-3', + 'active' => 'hidden', + 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][pages:3]" id="checkExcludepages:3" value="1" /><label class="form-check-label" for="checkExcludepages:3">Exclude</label></div>', + 'message' => '', + ], + ], + 'outsidePageTree' => + [ ], - ], - 'outsidePageTree' => - [ - ], ]; diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportPageAndRecordsWithSoftRefs.php b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportPageAndRecordsWithSoftRefs.php index 785e1fc23ff3..8e7b4be20495 100644 --- a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportPageAndRecordsWithSoftRefs.php +++ b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportPageAndRecordsWithSoftRefs.php @@ -14,275 +14,275 @@ */ return [ - 'update' => false, - 'showDiff' => false, - 'insidePageTree' => - [ - 0 => + 'update' => false, + 'showDiff' => false, + 'insidePageTree' => [ - 'ref' => 'pages:0', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span title="pages:0" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true"> + 0 => + [ + 'ref' => 'pages:0', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span title="pages:0" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/apps.svg#apps-pagetree-page-default" /></svg> </span> </span>', - 'title' => '', - 'active' => 'active', - 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][pages:0]" id="checkExcludepages:0" value="1" /><label class="form-check-label" for="checkExcludepages:0">Exclude</label></div>', - 'message' => '', - ], - 1 => - [ - 'ref' => 'be_users:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="be_users:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-user-admin" data-identifier="status-user-admin" aria-hidden="true"> + 'title' => '', + 'active' => 'active', + 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][pages:0]" id="checkExcludepages:0" value="1" /><label class="form-check-label" for="checkExcludepages:0">Exclude</label></div>', + 'message' => '', + ], + 1 => + [ + 'ref' => 'be_users:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="be_users:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-user-admin" data-identifier="status-user-admin" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/status.svg#status-user-admin" /></svg> </span> </span>', - 'title' => 'admin', - 'active' => 'active', - 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][be_users:1]" id="checkExcludebe_users:1" value="1" /><label class="form-check-label" for="checkExcludebe_users:1">Exclude</label></div>', - 'message' => '', - ], - 2 => - [ - 'ref' => 'sys_file:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image" aria-hidden="true"> + 'title' => 'admin', + 'active' => 'active', + 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][be_users:1]" id="checkExcludebe_users:1" value="1" /><label class="form-check-label" for="checkExcludebe_users:1">Exclude</label></div>', + 'message' => '', + ], + 2 => + [ + 'ref' => 'sys_file:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-media-image" /></svg> </span> </span>', - 'title' => 'typo3_image2.jpg', - 'active' => 'active', - 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][sys_file:1]" id="checkExcludesys_file:1" value="1" /><label class="form-check-label" for="checkExcludesys_file:1">Exclude</label></div>', - 'message' => '', - ], - 3 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'title' => 'typo3_image2.jpg', + 'active' => 'active', + 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][sys_file:1]" id="checkExcludesys_file:1" value="1" /><label class="form-check-label" for="checkExcludesys_file:1">Exclude</label></div>', + 'message' => '', + ], + 3 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 4 => - [ - 'ref' => 'sys_file:2', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 4 => + [ + 'ref' => 'sys_file:2', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-media-image" /></svg> </span> </span>', - 'title' => 'typo3_image3.jpg', - 'active' => 'active', - 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][sys_file:2]" id="checkExcludesys_file:2" value="1" /><label class="form-check-label" for="checkExcludesys_file:2">Exclude</label></div>', - 'message' => '', - ], - 5 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'title' => 'typo3_image3.jpg', + 'active' => 'active', + 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][sys_file:2]" id="checkExcludesys_file:2" value="1" /><label class="form-check-label" for="checkExcludesys_file:2">Exclude</label></div>', + 'message' => '', + ], + 5 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 6 => - [ - 'ref' => 'sys_file:3', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file:3" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 6 => + [ + 'ref' => 'sys_file:3', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file:3" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-media-image" /></svg> </span> </span>', - 'title' => 'typo3_image5.jpg', - 'active' => 'active', - 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][sys_file:3]" id="checkExcludesys_file:3" value="1" /><label class="form-check-label" for="checkExcludesys_file:3">Exclude</label></div>', - 'message' => '', - ], - 7 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'title' => 'typo3_image5.jpg', + 'active' => 'active', + 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][sys_file:3]" id="checkExcludesys_file:3" value="1" /><label class="form-check-label" for="checkExcludesys_file:3">Exclude</label></div>', + 'message' => '', + ], + 7 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 8 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-sys_file_storage" data-identifier="mimetypes-x-sys_file_storage" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 8 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-sys_file_storage" data-identifier="mimetypes-x-sys_file_storage" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-sys_file_storage" /></svg> </span> </span>', - 'title' => 'fileadmin', - 'active' => 'active', - 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][sys_file_storage:1]" id="checkExcludesys_file_storage:1" value="1" /><label class="form-check-label" for="checkExcludesys_file_storage:1">Exclude</label></div>', - 'message' => '', - ], - 9 => - [ - 'ref' => 'pages:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="pages:1" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true"> + 'title' => 'fileadmin', + 'active' => 'active', + 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][sys_file_storage:1]" id="checkExcludesys_file_storage:1" value="1" /><label class="form-check-label" for="checkExcludesys_file_storage:1">Exclude</label></div>', + 'message' => '', + ], + 9 => + [ + 'ref' => 'pages:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="pages:1" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/apps.svg#apps-pagetree-page-default" /></svg> </span> </span>', - 'title' => 'Root', - 'active' => 'active', - 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][pages:1]" id="checkExcludepages:1" value="1" /><label class="form-check-label" for="checkExcludepages:1">Exclude</label></div>', - 'message' => '', - ], - 10 => - [ - 'ref' => 'tt_content:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="tt_content:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text" aria-hidden="true"> + 'title' => 'Root', + 'active' => 'active', + 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][pages:1]" id="checkExcludepages:1" value="1" /><label class="form-check-label" for="checkExcludepages:1">Exclude</label></div>', + 'message' => '', + ], + 10 => + [ + 'ref' => 'tt_content:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="tt_content:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-content-text" /></svg> </span> </span>', - 'title' => 'Test content', - 'active' => 'active', - 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][tt_content:1]" id="checkExcludett_content:1" value="1" /><label class="form-check-label" for="checkExcludett_content:1">Exclude</label></div>', - 'message' => '', - ], - 11 => - [ - 'ref' => 'SOFTREF', - 'type' => 'softref', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="SOFTREF" class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft" aria-hidden="true"> + 'title' => 'Test content', + 'active' => 'active', + 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][tt_content:1]" id="checkExcludett_content:1" value="1" /><label class="form-check-label" for="checkExcludett_content:1">Exclude</label></div>', + 'message' => '', + ], + 11 => + [ + 'ref' => 'SOFTREF', + 'type' => 'softref', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="SOFTREF" class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft" aria-hidden="true"> <span class="icon-markup"> <img src="typo3/sysext/impexp/Resources/Public/Icons/status-reference-soft.png" width="16" height="16" alt="" /> </span> </span>', - 'title' => '<em>header_link, "typolink"</em>: <span title="file:1">file:1</span><br><span class="indent indent-inline-block" style="--indent-level: 3"></span> <strong>Record</strong> sys_file:1', - '_softRefInfo' => - [ - 'field' => 'header_link', - 'spKey' => 'typolink', - 'matchString' => 'file:1', - 'subst' => - [ - 'type' => 'db', - 'recordRef' => 'sys_file:1', - 'tokenID' => '2487ce518ed56d22f20f259928ff43f1', - 'tokenValue' => 'file:1', + 'title' => '<em>header_link, "typolink"</em>: <span title="file:1">file:1</span><br><span class="indent indent-inline-block" style="--indent-level: 3"></span> <strong>Record</strong> sys_file:1', + '_softRefInfo' => + [ + 'field' => 'header_link', + 'spKey' => 'typolink', + 'matchString' => 'file:1', + 'subst' => + [ + 'type' => 'db', + 'recordRef' => 'sys_file:1', + 'tokenID' => '2487ce518ed56d22f20f259928ff43f1', + 'tokenValue' => 'file:1', + ], + ], + 'controls' => '<select class="form-select form-select-sm" name="tx_impexp[softrefCfg][2487ce518ed56d22f20f259928ff43f1][mode]" style="width: 100px"><option value="" selected="selected"></option><option value="editable">Editable</option><option value="exclude">Exclude</option></select>', + 'message' => '', ], - ], - 'controls' => '<select class="form-select form-select-sm" name="tx_impexp[softrefCfg][2487ce518ed56d22f20f259928ff43f1][mode]" style="width: 100px"><option value="" selected="selected"></option><option value="editable">Editable</option><option value="exclude">Exclude</option></select>', - 'message' => '', - ], - 12 => - [ - 'ref' => 'sys_file:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">typo3_image2.jpg</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 4"></span><span title="sys_file:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 12 => + [ + 'ref' => 'sys_file:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">typo3_image2.jpg</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 4"></span><span title="sys_file:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 13 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 5"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 13 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 5"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 14 => - [ - 'ref' => 'pages:2', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="pages:2" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 14 => + [ + 'ref' => 'pages:2', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="pages:2" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/apps.svg#apps-pagetree-page-default" /></svg> </span> </span>', - 'title' => 'Dummy 1-2', - 'active' => 'active', - 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][pages:2]" id="checkExcludepages:2" value="1" /><label class="form-check-label" for="checkExcludepages:2">Exclude</label></div>', - 'message' => '', - ], - 15 => - [ - 'ref' => 'pages:3', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="pages:3" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true"> + 'title' => 'Dummy 1-2', + 'active' => 'active', + 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][pages:2]" id="checkExcludepages:2" value="1" /><label class="form-check-label" for="checkExcludepages:2">Exclude</label></div>', + 'message' => '', + ], + 15 => + [ + 'ref' => 'pages:3', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="pages:3" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/apps.svg#apps-pagetree-page-default" /></svg> </span> <span class="icon-overlay icon-overlay-hidden"><svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/overlay.svg#overlay-hidden" /></svg></span> </span>', - 'title' => 'Dummy 1-3', - 'active' => 'hidden', - 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][pages:3]" id="checkExcludepages:3" value="1" /><label class="form-check-label" for="checkExcludepages:3">Exclude</label></div>', - 'message' => '', + 'title' => 'Dummy 1-3', + 'active' => 'hidden', + 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][pages:3]" id="checkExcludepages:3" value="1" /><label class="form-check-label" for="checkExcludepages:3">Exclude</label></div>', + 'message' => '', + ], + ], + 'outsidePageTree' => + [ ], - ], - 'outsidePageTree' => - [ - ], ]; diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportRecords.php b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportRecords.php index c059b9ed1292..eeeeed90c45b 100644 --- a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportRecords.php +++ b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportRecords.php @@ -14,114 +14,114 @@ */ return [ - 'update' => false, - 'showDiff' => false, - 'insidePageTree' => - [ - ], - 'outsidePageTree' => - [ - 0 => + 'update' => false, + 'showDiff' => false, + 'insidePageTree' => [ - 'ref' => 'tt_content:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span title="tt_content:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text" aria-hidden="true"> + ], + 'outsidePageTree' => + [ + 0 => + [ + 'ref' => 'tt_content:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span title="tt_content:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-content-text" /></svg> </span> </span>', - 'title' => 'Test content', - 'active' => 'active', - 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][tt_content:1]" id="checkExcludett_content:1" value="1" /><label class="form-check-label" for="checkExcludett_content:1">Exclude</label></div>', - 'message' => '', - ], - 1 => - [ - 'ref' => 'SOFTREF', - 'type' => 'softref', - 'msg' => '', - 'preCode' => '<span title="SOFTREF" class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft" aria-hidden="true"> + 'title' => 'Test content', + 'active' => 'active', + 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][tt_content:1]" id="checkExcludett_content:1" value="1" /><label class="form-check-label" for="checkExcludett_content:1">Exclude</label></div>', + 'message' => '', + ], + 1 => + [ + 'ref' => 'SOFTREF', + 'type' => 'softref', + 'msg' => '', + 'preCode' => '<span title="SOFTREF" class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft" aria-hidden="true"> <span class="icon-markup"> <img src="typo3/sysext/impexp/Resources/Public/Icons/status-reference-soft.png" width="16" height="16" alt="" /> </span> </span>', - 'title' => '<em>header_link, "typolink"</em>: <span title="file:2">file:2</span><br><span class="indent indent-inline-block" style="--indent-level: 1"></span> <strong>Record</strong> sys_file:2', - '_softRefInfo' => - [ - 'field' => 'header_link', - 'spKey' => 'typolink', - 'matchString' => 'file:2', - 'subst' => - [ - 'type' => 'db', - 'recordRef' => 'sys_file:2', - 'tokenID' => '2487ce518ed56d22f20f259928ff43f1', - 'tokenValue' => 'file:2', + 'title' => '<em>header_link, "typolink"</em>: <span title="file:2">file:2</span><br><span class="indent indent-inline-block" style="--indent-level: 1"></span> <strong>Record</strong> sys_file:2', + '_softRefInfo' => + [ + 'field' => 'header_link', + 'spKey' => 'typolink', + 'matchString' => 'file:2', + 'subst' => + [ + 'type' => 'db', + 'recordRef' => 'sys_file:2', + 'tokenID' => '2487ce518ed56d22f20f259928ff43f1', + 'tokenValue' => 'file:2', + ], + ], + 'controls' => '<select class="form-select form-select-sm" name="tx_impexp[softrefCfg][2487ce518ed56d22f20f259928ff43f1][mode]" style="width: 100px"><option value="" selected="selected"></option><option value="editable">Editable</option><option value="exclude">Exclude</option></select>', + 'message' => '', ], - ], - 'controls' => '<select class="form-select form-select-sm" name="tx_impexp[softrefCfg][2487ce518ed56d22f20f259928ff43f1][mode]" style="width: 100px"><option value="" selected="selected"></option><option value="editable">Editable</option><option value="exclude">Exclude</option></select>', - 'message' => '', - ], - 2 => - [ - 'ref' => 'sys_file:2', - 'type' => 'rel', - 'msg' => 'LOST RELATION (Path: /)', - 'title' => '<span title="/">sys_file:2</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-dialog-warning" data-identifier="status-dialog-warning" aria-hidden="true"> + 2 => + [ + 'ref' => 'sys_file:2', + 'type' => 'rel', + 'msg' => 'LOST RELATION (Path: /)', + 'title' => '<span title="/">sys_file:2</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-dialog-warning" data-identifier="status-dialog-warning" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-exclamation-triangle" /></svg> </span> </span>', - 'controls' => '', - 'message' => '<span class="text-danger">LOST RELATION (Path: /)</span>', - ], - 3 => - [ - 'ref' => 'tt_content:2', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span title="tt_content:2" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text" aria-hidden="true"> + 'controls' => '', + 'message' => '<span class="text-danger">LOST RELATION (Path: /)</span>', + ], + 3 => + [ + 'ref' => 'tt_content:2', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span title="tt_content:2" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-content-text" /></svg> </span> </span>', - 'title' => 'Test content 2', - 'active' => 'active', - 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][tt_content:2]" id="checkExcludett_content:2" value="1" /><label class="form-check-label" for="checkExcludett_content:2">Exclude</label></div>', - 'message' => '', - ], - 4 => - [ - 'ref' => 'SOFTREF', - 'type' => 'softref', - 'msg' => '', - 'preCode' => '<span title="SOFTREF" class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft" aria-hidden="true"> + 'title' => 'Test content 2', + 'active' => 'active', + 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][tt_content:2]" id="checkExcludett_content:2" value="1" /><label class="form-check-label" for="checkExcludett_content:2">Exclude</label></div>', + 'message' => '', + ], + 4 => + [ + 'ref' => 'SOFTREF', + 'type' => 'softref', + 'msg' => '', + 'preCode' => '<span title="SOFTREF" class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft" aria-hidden="true"> <span class="icon-markup"> <img src="typo3/sysext/impexp/Resources/Public/Icons/status-reference-soft.png" width="16" height="16" alt="" /> </span> </span>', - 'title' => '<em>header_link, "typolink"</em>: <span title="file:4">file:4</span>', - '_softRefInfo' => - [ - 'field' => 'header_link', - 'spKey' => 'typolink', - 'matchString' => 'file:4', - 'subst' => - [ - 'type' => 'external', - 'tokenID' => '81b8b33df54ef433f1cbc7c3e513e6c4', - 'tokenValue' => '4', + 'title' => '<em>header_link, "typolink"</em>: <span title="file:4">file:4</span>', + '_softRefInfo' => + [ + 'field' => 'header_link', + 'spKey' => 'typolink', + 'matchString' => 'file:4', + 'subst' => + [ + 'type' => 'external', + 'tokenID' => '81b8b33df54ef433f1cbc7c3e513e6c4', + 'tokenValue' => '4', + ], + ], + 'controls' => '<select class="form-select form-select-sm" name="tx_impexp[softrefCfg][81b8b33df54ef433f1cbc7c3e513e6c4][mode]" style="width: 100px"><option value="" selected="selected"></option><option value="editable">Editable</option><option value="exclude">Exclude</option></select>', + 'message' => '', ], - ], - 'controls' => '<select class="form-select form-select-sm" name="tx_impexp[softrefCfg][81b8b33df54ef433f1cbc7c3e513e6c4][mode]" style="width: 100px"><option value="" selected="selected"></option><option value="editable">Editable</option><option value="exclude">Exclude</option></select>', - 'message' => '', ], - ], ]; diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportTable.php b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportTable.php index 394714bf9530..de2046372b12 100644 --- a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportTable.php +++ b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportTable.php @@ -14,173 +14,173 @@ */ return [ - 'update' => false, - 'showDiff' => false, - 'insidePageTree' => - [ - ], - 'outsidePageTree' => - [ - 0 => + 'update' => false, + 'showDiff' => false, + 'insidePageTree' => [ - 'ref' => 'tt_content:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span title="tt_content:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text" aria-hidden="true"> + ], + 'outsidePageTree' => + [ + 0 => + [ + 'ref' => 'tt_content:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span title="tt_content:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-content-text" /></svg> </span> </span>', - 'title' => 'Test content', - 'active' => 'active', - 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][tt_content:1]" id="checkExcludett_content:1" value="1" /><label class="form-check-label" for="checkExcludett_content:1">Exclude</label></div>', - 'message' => '', - ], - 1 => - [ - 'ref' => 'SOFTREF', - 'type' => 'softref', - 'msg' => '', - 'preCode' => '<span title="SOFTREF" class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft" aria-hidden="true"> + 'title' => 'Test content', + 'active' => 'active', + 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][tt_content:1]" id="checkExcludett_content:1" value="1" /><label class="form-check-label" for="checkExcludett_content:1">Exclude</label></div>', + 'message' => '', + ], + 1 => + [ + 'ref' => 'SOFTREF', + 'type' => 'softref', + 'msg' => '', + 'preCode' => '<span title="SOFTREF" class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft" aria-hidden="true"> <span class="icon-markup"> <img src="typo3/sysext/impexp/Resources/Public/Icons/status-reference-soft.png" width="16" height="16" alt="" /> </span> </span>', - 'title' => '<em>header_link, "typolink"</em>: <span title="file:2">file:2</span><br><span class="indent indent-inline-block" style="--indent-level: 1"></span> <strong>Record</strong> sys_file:2', - '_softRefInfo' => - [ - 'field' => 'header_link', - 'spKey' => 'typolink', - 'matchString' => 'file:2', - 'subst' => - [ - 'type' => 'db', - 'recordRef' => 'sys_file:2', - 'tokenID' => '2487ce518ed56d22f20f259928ff43f1', - 'tokenValue' => 'file:2', + 'title' => '<em>header_link, "typolink"</em>: <span title="file:2">file:2</span><br><span class="indent indent-inline-block" style="--indent-level: 1"></span> <strong>Record</strong> sys_file:2', + '_softRefInfo' => + [ + 'field' => 'header_link', + 'spKey' => 'typolink', + 'matchString' => 'file:2', + 'subst' => + [ + 'type' => 'db', + 'recordRef' => 'sys_file:2', + 'tokenID' => '2487ce518ed56d22f20f259928ff43f1', + 'tokenValue' => 'file:2', + ], + ], + 'controls' => '<select class="form-select form-select-sm" name="tx_impexp[softrefCfg][2487ce518ed56d22f20f259928ff43f1][mode]" style="width: 100px"><option value="" selected="selected"></option><option value="editable">Editable</option><option value="exclude">Exclude</option></select>', + 'message' => '', ], - ], - 'controls' => '<select class="form-select form-select-sm" name="tx_impexp[softrefCfg][2487ce518ed56d22f20f259928ff43f1][mode]" style="width: 100px"><option value="" selected="selected"></option><option value="editable">Editable</option><option value="exclude">Exclude</option></select>', - 'message' => '', - ], - 2 => - [ - 'ref' => 'sys_file:2', - 'type' => 'rel', - 'msg' => 'LOST RELATION (Path: /)', - 'title' => '<span title="/">sys_file:2</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-dialog-warning" data-identifier="status-dialog-warning" aria-hidden="true"> + 2 => + [ + 'ref' => 'sys_file:2', + 'type' => 'rel', + 'msg' => 'LOST RELATION (Path: /)', + 'title' => '<span title="/">sys_file:2</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-dialog-warning" data-identifier="status-dialog-warning" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-exclamation-triangle" /></svg> </span> </span>', - 'controls' => '', - 'message' => '<span class="text-danger">LOST RELATION (Path: /)</span>', - ], - 3 => - [ - 'ref' => 'tt_content:2', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span title="tt_content:2" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text" aria-hidden="true"> + 'controls' => '', + 'message' => '<span class="text-danger">LOST RELATION (Path: /)</span>', + ], + 3 => + [ + 'ref' => 'tt_content:2', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span title="tt_content:2" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-content-text" /></svg> </span> </span>', - 'title' => 'Test content 2', - 'active' => 'active', - 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][tt_content:2]" id="checkExcludett_content:2" value="1" /><label class="form-check-label" for="checkExcludett_content:2">Exclude</label></div>', - 'message' => '', - ], - 4 => - [ - 'ref' => 'SOFTREF', - 'type' => 'softref', - 'msg' => '', - 'preCode' => '<span title="SOFTREF" class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft" aria-hidden="true"> + 'title' => 'Test content 2', + 'active' => 'active', + 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][tt_content:2]" id="checkExcludett_content:2" value="1" /><label class="form-check-label" for="checkExcludett_content:2">Exclude</label></div>', + 'message' => '', + ], + 4 => + [ + 'ref' => 'SOFTREF', + 'type' => 'softref', + 'msg' => '', + 'preCode' => '<span title="SOFTREF" class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft" aria-hidden="true"> <span class="icon-markup"> <img src="typo3/sysext/impexp/Resources/Public/Icons/status-reference-soft.png" width="16" height="16" alt="" /> </span> </span>', - 'title' => '<em>header_link, "typolink"</em>: <span title="file:4">file:4</span>', - '_softRefInfo' => - [ - 'field' => 'header_link', - 'spKey' => 'typolink', - 'matchString' => 'file:4', - 'subst' => - [ - 'type' => 'external', - 'tokenID' => '81b8b33df54ef433f1cbc7c3e513e6c4', - 'tokenValue' => '4', + 'title' => '<em>header_link, "typolink"</em>: <span title="file:4">file:4</span>', + '_softRefInfo' => + [ + 'field' => 'header_link', + 'spKey' => 'typolink', + 'matchString' => 'file:4', + 'subst' => + [ + 'type' => 'external', + 'tokenID' => '81b8b33df54ef433f1cbc7c3e513e6c4', + 'tokenValue' => '4', + ], + ], + 'controls' => '<select class="form-select form-select-sm" name="tx_impexp[softrefCfg][81b8b33df54ef433f1cbc7c3e513e6c4][mode]" style="width: 100px"><option value="" selected="selected"></option><option value="editable">Editable</option><option value="exclude">Exclude</option></select>', + 'message' => '', ], - ], - 'controls' => '<select class="form-select form-select-sm" name="tx_impexp[softrefCfg][81b8b33df54ef433f1cbc7c3e513e6c4][mode]" style="width: 100px"><option value="" selected="selected"></option><option value="editable">Editable</option><option value="exclude">Exclude</option></select>', - 'message' => '', - ], - 5 => - [ - 'ref' => 'tt_content:3', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span title="tt_content:3" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text" aria-hidden="true"> + 5 => + [ + 'ref' => 'tt_content:3', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span title="tt_content:3" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-content-text" /></svg> </span> <span class="icon-overlay icon-overlay-hidden"><svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/overlay.svg#overlay-hidden" /></svg></span> </span>', - 'title' => 'Test content 3', - 'active' => 'hidden', - 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][tt_content:3]" id="checkExcludett_content:3" value="1" /><label class="form-check-label" for="checkExcludett_content:3">Exclude</label></div>', - 'message' => '', - ], - 6 => - [ - 'ref' => 'SOFTREF', - 'type' => 'softref', - 'msg' => '', - 'preCode' => '<span title="SOFTREF" class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft" aria-hidden="true"> + 'title' => 'Test content 3', + 'active' => 'hidden', + 'controls' => '<div class="form-check mb-0"><input class="form-check-input t3js-exclude-checkbox" type="checkbox" name="tx_impexp[exclude][tt_content:3]" id="checkExcludett_content:3" value="1" /><label class="form-check-label" for="checkExcludett_content:3">Exclude</label></div>', + 'message' => '', + ], + 6 => + [ + 'ref' => 'SOFTREF', + 'type' => 'softref', + 'msg' => '', + 'preCode' => '<span title="SOFTREF" class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft" aria-hidden="true"> <span class="icon-markup"> <img src="typo3/sysext/impexp/Resources/Public/Icons/status-reference-soft.png" width="16" height="16" alt="" /> </span> </span>', - 'title' => '<em>header_link, "typolink"</em>: <span title="file:3">file:3</span><br><span class="indent indent-inline-block" style="--indent-level: 1"></span> <strong>Record</strong> sys_file:3', - '_softRefInfo' => - [ - 'field' => 'header_link', - 'spKey' => 'typolink', - 'matchString' => 'file:3', - 'subst' => - [ - 'type' => 'db', - 'recordRef' => 'sys_file:3', - 'tokenID' => '0b1253ebf70ef5be862f29305e404edc', - 'tokenValue' => 'file:3', + 'title' => '<em>header_link, "typolink"</em>: <span title="file:3">file:3</span><br><span class="indent indent-inline-block" style="--indent-level: 1"></span> <strong>Record</strong> sys_file:3', + '_softRefInfo' => + [ + 'field' => 'header_link', + 'spKey' => 'typolink', + 'matchString' => 'file:3', + 'subst' => + [ + 'type' => 'db', + 'recordRef' => 'sys_file:3', + 'tokenID' => '0b1253ebf70ef5be862f29305e404edc', + 'tokenValue' => 'file:3', + ], + ], + 'controls' => '<select class="form-select form-select-sm" name="tx_impexp[softrefCfg][0b1253ebf70ef5be862f29305e404edc][mode]" style="width: 100px"><option value="" selected="selected"></option><option value="editable">Editable</option><option value="exclude">Exclude</option></select>', + 'message' => '', ], - ], - 'controls' => '<select class="form-select form-select-sm" name="tx_impexp[softrefCfg][0b1253ebf70ef5be862f29305e404edc][mode]" style="width: 100px"><option value="" selected="selected"></option><option value="editable">Editable</option><option value="exclude">Exclude</option></select>', - 'message' => '', - ], - 7 => - [ - 'ref' => 'sys_file:3', - 'type' => 'rel', - 'msg' => 'LOST RELATION (Path: /)', - 'title' => '<span title="/">sys_file:3</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file:3" class="t3js-icon icon icon-size-small icon-state-default icon-status-dialog-warning" data-identifier="status-dialog-warning" aria-hidden="true"> + 7 => + [ + 'ref' => 'sys_file:3', + 'type' => 'rel', + 'msg' => 'LOST RELATION (Path: /)', + 'title' => '<span title="/">sys_file:3</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file:3" class="t3js-icon icon icon-size-small icon-state-default icon-status-dialog-warning" data-identifier="status-dialog-warning" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-exclamation-triangle" /></svg> </span> </span>', - 'controls' => '', - 'message' => '<span class="text-danger">LOST RELATION (Path: /)</span>', + 'controls' => '', + 'message' => '<span class="text-danger">LOST RELATION (Path: /)</span>', + ], ], - ], ]; diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecords.php b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecords.php index ce75b931dabd..6ad7dffe3ff4 100644 --- a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecords.php +++ b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecords.php @@ -14,224 +14,224 @@ */ return [ - 'update' => false, - 'showDiff' => false, - 'insidePageTree' => - [ - 0 => + 'update' => false, + 'showDiff' => false, + 'insidePageTree' => [ - 'ref' => 'pages:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span title="pages:1" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true"> + 0 => + [ + 'ref' => 'pages:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span title="pages:1" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/apps.svg#apps-pagetree-page-default" /></svg> </span> </span>', - 'title' => 'Root', - 'active' => 'active', - 'controls' => '', - 'message' => '', - ], - 1 => - [ - 'ref' => 'tt_content:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="tt_content:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text" aria-hidden="true"> + 'title' => 'Root', + 'active' => 'active', + 'controls' => '', + 'message' => '', + ], + 1 => + [ + 'ref' => 'tt_content:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="tt_content:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-content-text" /></svg> </span> </span>', - 'title' => 'Test content', - 'active' => 'active', - 'controls' => '', - 'message' => '', - ], - 2 => - [ - 'ref' => 'SOFTREF', - 'type' => 'softref', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="SOFTREF" class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft" aria-hidden="true"> + 'title' => 'Test content', + 'active' => 'active', + 'controls' => '', + 'message' => '', + ], + 2 => + [ + 'ref' => 'SOFTREF', + 'type' => 'softref', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="SOFTREF" class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft" aria-hidden="true"> <span class="icon-markup"> <img src="typo3/sysext/impexp/Resources/Public/Icons/status-reference-soft.png" width="16" height="16" alt="" /> </span> </span>', - 'title' => '<em>header_link, "typolink"</em>: <span title="file:2">file:2</span><br><span class="indent indent-inline-block" style="--indent-level: 2"></span> <strong>Record</strong> sys_file:2', - '_softRefInfo' => - [ - 'field' => 'header_link', - 'spKey' => 'typolink', - 'matchString' => 'file:2', - 'subst' => - [ - 'type' => 'db', - 'recordRef' => 'sys_file:2', - 'tokenID' => '2487ce518ed56d22f20f259928ff43f1', - 'tokenValue' => 'file:2', + 'title' => '<em>header_link, "typolink"</em>: <span title="file:2">file:2</span><br><span class="indent indent-inline-block" style="--indent-level: 2"></span> <strong>Record</strong> sys_file:2', + '_softRefInfo' => + [ + 'field' => 'header_link', + 'spKey' => 'typolink', + 'matchString' => 'file:2', + 'subst' => + [ + 'type' => 'db', + 'recordRef' => 'sys_file:2', + 'tokenID' => '2487ce518ed56d22f20f259928ff43f1', + 'tokenValue' => 'file:2', + ], + ], + 'controls' => '', + 'message' => '', ], - ], - 'controls' => '', - 'message' => '', - ], - 3 => - [ - 'ref' => 'sys_file:2', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">typo3_image3.jpg</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 3 => + [ + 'ref' => 'sys_file:2', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">typo3_image3.jpg</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 4 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => 'LOST RELATION (Path: /)', - 'title' => '<span title="/">sys_file_storage:1</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 4"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-dialog-warning" data-identifier="status-dialog-warning" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 4 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => 'LOST RELATION (Path: /)', + 'title' => '<span title="/">sys_file_storage:1</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 4"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-dialog-warning" data-identifier="status-dialog-warning" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-exclamation-triangle" /></svg> </span> </span>', - 'controls' => '', - 'message' => '<span class="text-danger">LOST RELATION (Path: /)</span>', - ], - 5 => - [ - 'ref' => 'tt_content:2', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="tt_content:2" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text" aria-hidden="true"> + 'controls' => '', + 'message' => '<span class="text-danger">LOST RELATION (Path: /)</span>', + ], + 5 => + [ + 'ref' => 'tt_content:2', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="tt_content:2" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-content-text" /></svg> </span> </span>', - 'title' => 'Test content 2', - 'active' => 'active', - 'controls' => '', - 'message' => '', - ], - 6 => - [ - 'ref' => 'SOFTREF', - 'type' => 'softref', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="SOFTREF" class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft" aria-hidden="true"> + 'title' => 'Test content 2', + 'active' => 'active', + 'controls' => '', + 'message' => '', + ], + 6 => + [ + 'ref' => 'SOFTREF', + 'type' => 'softref', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="SOFTREF" class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft" aria-hidden="true"> <span class="icon-markup"> <img src="typo3/sysext/impexp/Resources/Public/Icons/status-reference-soft.png" width="16" height="16" alt="" /> </span> </span>', - 'title' => '<em>header_link, "typolink"</em>: <span title="file:4">file:4</span><br><span class="indent indent-inline-block" style="--indent-level: 2"></span> <strong>Record</strong> sys_file:4', - '_softRefInfo' => - [ - 'field' => 'header_link', - 'spKey' => 'typolink', - 'matchString' => 'file:4', - 'subst' => - [ - 'type' => 'db', - 'recordRef' => 'sys_file:4', - 'tokenID' => '81b8b33df54ef433f1cbc7c3e513e6c4', - 'tokenValue' => 'file:4', + 'title' => '<em>header_link, "typolink"</em>: <span title="file:4">file:4</span><br><span class="indent indent-inline-block" style="--indent-level: 2"></span> <strong>Record</strong> sys_file:4', + '_softRefInfo' => + [ + 'field' => 'header_link', + 'spKey' => 'typolink', + 'matchString' => 'file:4', + 'subst' => + [ + 'type' => 'db', + 'recordRef' => 'sys_file:4', + 'tokenID' => '81b8b33df54ef433f1cbc7c3e513e6c4', + 'tokenValue' => 'file:4', + ], + ], + 'controls' => '', + 'message' => '', ], - ], - 'controls' => '', - 'message' => '', - ], - 7 => - [ - 'ref' => 'sys_file:4', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">Empty.html</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file:4" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 7 => + [ + 'ref' => 'sys_file:4', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">Empty.html</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file:4" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 8 => - [ - 'ref' => 'pages:2', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="pages:2" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 8 => + [ + 'ref' => 'pages:2', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="pages:2" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/apps.svg#apps-pagetree-page-default" /></svg> </span> </span>', - 'title' => 'Dummy 1-2', - 'active' => 'active', - 'controls' => '', - 'message' => '', + 'title' => 'Dummy 1-2', + 'active' => 'active', + 'controls' => '', + 'message' => '', + ], ], - ], - 'outsidePageTree' => - [ - 0 => + 'outsidePageTree' => [ - 'ref' => 'sys_file:2', - 'type' => 'record', - 'msg' => 'TABLE "sys_file" will be inserted on ROOT LEVEL! ', - 'preCode' => '<span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image" aria-hidden="true"> + 0 => + [ + 'ref' => 'sys_file:2', + 'type' => 'record', + 'msg' => 'TABLE "sys_file" will be inserted on ROOT LEVEL! ', + 'preCode' => '<span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-media-image" /></svg> </span> </span>', - 'title' => 'typo3_image3.jpg', - 'active' => 'active', - 'controls' => '', - 'message' => '<span class="text-danger">TABLE "sys_file" will be inserted on ROOT LEVEL! </span>', - ], - 1 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => 'LOST RELATION (Path: /)', - 'title' => '<span title="/">sys_file_storage:1</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-dialog-warning" data-identifier="status-dialog-warning" aria-hidden="true"> + 'title' => 'typo3_image3.jpg', + 'active' => 'active', + 'controls' => '', + 'message' => '<span class="text-danger">TABLE "sys_file" will be inserted on ROOT LEVEL! </span>', + ], + 1 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => 'LOST RELATION (Path: /)', + 'title' => '<span title="/">sys_file_storage:1</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-dialog-warning" data-identifier="status-dialog-warning" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-exclamation-triangle" /></svg> </span> </span>', - 'controls' => '', - 'message' => '<span class="text-danger">LOST RELATION (Path: /)</span>', - ], - 2 => - [ - 'ref' => 'sys_file:4', - 'type' => 'record', - 'msg' => 'TABLE "sys_file" will be inserted on ROOT LEVEL! ', - 'preCode' => '<span title="sys_file:4" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-text-text" data-identifier="mimetypes-text-text" aria-hidden="true"> + 'controls' => '', + 'message' => '<span class="text-danger">LOST RELATION (Path: /)</span>', + ], + 2 => + [ + 'ref' => 'sys_file:4', + 'type' => 'record', + 'msg' => 'TABLE "sys_file" will be inserted on ROOT LEVEL! ', + 'preCode' => '<span title="sys_file:4" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-text-text" data-identifier="mimetypes-text-text" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-text-text" /></svg> </span> </span>', - 'title' => 'Empty.html', - 'active' => 'active', - 'controls' => '', - 'message' => '<span class="text-danger">TABLE "sys_file" will be inserted on ROOT LEVEL! </span>', + 'title' => 'Empty.html', + 'active' => 'active', + 'controls' => '', + 'message' => '<span class="text-danger">TABLE "sys_file" will be inserted on ROOT LEVEL! </span>', + ], ], - ], ]; diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsByUpdate.php b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsByUpdate.php index a4cf45e12d82..c0c091c39c8d 100644 --- a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsByUpdate.php +++ b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsByUpdate.php @@ -14,170 +14,170 @@ */ return [ - 'update' => true, - 'showDiff' => false, - 'insidePageTree' => - [ - 0 => + 'update' => true, + 'showDiff' => false, + 'insidePageTree' => [ - 'ref' => 'pages:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span title="pages:1" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true"> + 0 => + [ + 'ref' => 'pages:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span title="pages:1" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/apps.svg#apps-pagetree-page-default" /></svg> </span> </span>', - 'title' => 'Root', - 'active' => 'active', - 'updatePath' => '/', - 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][pages:1]" style="width: 100px"><option value="0">Update</option><option value="%s">Import as new</option><option value="%s">Ignore PID</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_AS_NEW, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_IGNORE_PID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), - 'controls' => '', - 'message' => '', - ], - 1 => - [ - 'ref' => 'tt_content:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="tt_content:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text" aria-hidden="true"> + 'title' => 'Root', + 'active' => 'active', + 'updatePath' => '/', + 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][pages:1]" style="width: 100px"><option value="0">Update</option><option value="%s">Import as new</option><option value="%s">Ignore PID</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_AS_NEW, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_IGNORE_PID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), + 'controls' => '', + 'message' => '', + ], + 1 => + [ + 'ref' => 'tt_content:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="tt_content:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-content-text" /></svg> </span> </span>', - 'title' => 'Test content', - 'active' => 'active', - 'updatePath' => '/Root/', - 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][tt_content:1]" style="width: 100px"><option value="0">Update</option><option value="%s">Import as new</option><option value="%s">Ignore PID</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_AS_NEW, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_IGNORE_PID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), - 'controls' => '', - 'message' => '', - ], - 2 => - [ - 'ref' => 'SOFTREF', - 'type' => 'softref', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="SOFTREF" class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft" aria-hidden="true"> + 'title' => 'Test content', + 'active' => 'active', + 'updatePath' => '/Root/', + 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][tt_content:1]" style="width: 100px"><option value="0">Update</option><option value="%s">Import as new</option><option value="%s">Ignore PID</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_AS_NEW, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_IGNORE_PID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), + 'controls' => '', + 'message' => '', + ], + 2 => + [ + 'ref' => 'SOFTREF', + 'type' => 'softref', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="SOFTREF" class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft" aria-hidden="true"> <span class="icon-markup"> <img src="typo3/sysext/impexp/Resources/Public/Icons/status-reference-soft.png" width="16" height="16" alt="" /> </span> </span>', - 'title' => '<em>header_link, "typolink"</em>: <span title="file:2">file:2</span><br><span class="indent indent-inline-block" style="--indent-level: 2"></span> <strong>Record</strong> sys_file:2', - '_softRefInfo' => - [ - 'field' => 'header_link', - 'spKey' => 'typolink', - 'matchString' => 'file:2', - 'subst' => - [ - 'type' => 'db', - 'recordRef' => 'sys_file:2', - 'tokenID' => '2487ce518ed56d22f20f259928ff43f1', - 'tokenValue' => 'file:2', + 'title' => '<em>header_link, "typolink"</em>: <span title="file:2">file:2</span><br><span class="indent indent-inline-block" style="--indent-level: 2"></span> <strong>Record</strong> sys_file:2', + '_softRefInfo' => + [ + 'field' => 'header_link', + 'spKey' => 'typolink', + 'matchString' => 'file:2', + 'subst' => + [ + 'type' => 'db', + 'recordRef' => 'sys_file:2', + 'tokenID' => '2487ce518ed56d22f20f259928ff43f1', + 'tokenValue' => 'file:2', + ], + ], + 'controls' => '', + 'message' => '', ], - ], - 'controls' => '', - 'message' => '', - ], - 3 => - [ - 'ref' => 'sys_file:2', - 'type' => 'rel', - 'msg' => 'LOST RELATION (Path: /)', - 'title' => '<span title="/">sys_file:2</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-dialog-warning" data-identifier="status-dialog-warning" aria-hidden="true"> + 3 => + [ + 'ref' => 'sys_file:2', + 'type' => 'rel', + 'msg' => 'LOST RELATION (Path: /)', + 'title' => '<span title="/">sys_file:2</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-dialog-warning" data-identifier="status-dialog-warning" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-exclamation-triangle" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 4 => - [ - 'ref' => 'tt_content:2', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="tt_content:2" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 4 => + [ + 'ref' => 'tt_content:2', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="tt_content:2" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-content-text" /></svg> </span> </span>', - 'title' => 'Test content 2', - 'active' => 'active', - 'updatePath' => '/Root/', - 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][tt_content:2]" style="width: 100px"><option value="0">Update</option><option value="%s">Import as new</option><option value="%s">Ignore PID</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_AS_NEW, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_IGNORE_PID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), - 'controls' => '', - 'message' => '', - ], - 5 => - [ - 'ref' => 'SOFTREF', - 'type' => 'softref', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="SOFTREF" class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft" aria-hidden="true"> + 'title' => 'Test content 2', + 'active' => 'active', + 'updatePath' => '/Root/', + 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][tt_content:2]" style="width: 100px"><option value="0">Update</option><option value="%s">Import as new</option><option value="%s">Ignore PID</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_AS_NEW, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_IGNORE_PID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), + 'controls' => '', + 'message' => '', + ], + 5 => + [ + 'ref' => 'SOFTREF', + 'type' => 'softref', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="SOFTREF" class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft" aria-hidden="true"> <span class="icon-markup"> <img src="typo3/sysext/impexp/Resources/Public/Icons/status-reference-soft.png" width="16" height="16" alt="" /> </span> </span>', - 'title' => '<em>header_link, "typolink"</em>: <span title="file:4">file:4</span><br><span class="indent indent-inline-block" style="--indent-level: 2"></span> <strong>Record</strong> sys_file:4', - '_softRefInfo' => - [ - 'field' => 'header_link', - 'spKey' => 'typolink', - 'matchString' => 'file:4', - 'subst' => - [ - 'type' => 'db', - 'recordRef' => 'sys_file:4', - 'tokenID' => '81b8b33df54ef433f1cbc7c3e513e6c4', - 'tokenValue' => 'file:4', + 'title' => '<em>header_link, "typolink"</em>: <span title="file:4">file:4</span><br><span class="indent indent-inline-block" style="--indent-level: 2"></span> <strong>Record</strong> sys_file:4', + '_softRefInfo' => + [ + 'field' => 'header_link', + 'spKey' => 'typolink', + 'matchString' => 'file:4', + 'subst' => + [ + 'type' => 'db', + 'recordRef' => 'sys_file:4', + 'tokenID' => '81b8b33df54ef433f1cbc7c3e513e6c4', + 'tokenValue' => 'file:4', + ], + ], + 'controls' => '', + 'message' => '', ], - ], - 'controls' => '', - 'message' => '', - ], - 6 => - [ - 'ref' => 'sys_file:4', - 'type' => 'rel', - 'msg' => 'LOST RELATION (Record not found!)', - 'title' => '<span title="/">sys_file:4</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file:4" class="t3js-icon icon icon-size-small icon-state-default icon-status-dialog-warning" data-identifier="status-dialog-warning" aria-hidden="true"> + 6 => + [ + 'ref' => 'sys_file:4', + 'type' => 'rel', + 'msg' => 'LOST RELATION (Record not found!)', + 'title' => '<span title="/">sys_file:4</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file:4" class="t3js-icon icon icon-size-small icon-state-default icon-status-dialog-warning" data-identifier="status-dialog-warning" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-exclamation-triangle" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 7 => - [ - 'ref' => 'pages:2', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="pages:2" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 7 => + [ + 'ref' => 'pages:2', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="pages:2" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/apps.svg#apps-pagetree-page-default" /></svg> </span> </span>', - 'title' => 'Dummy 1-2', - 'active' => 'active', - 'updatePath' => '/Root/', - 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][pages:2]" style="width: 100px"><option value="0">Update</option><option value="%s">Import as new</option><option value="%s">Ignore PID</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_AS_NEW, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_IGNORE_PID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), - 'controls' => '', - 'message' => '', + 'title' => 'Dummy 1-2', + 'active' => 'active', + 'updatePath' => '/Root/', + 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][pages:2]" style="width: 100px"><option value="0">Update</option><option value="%s">Import as new</option><option value="%s">Ignore PID</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_AS_NEW, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_IGNORE_PID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), + 'controls' => '', + 'message' => '', + ], + ], + 'outsidePageTree' => + [ ], - ], - 'outsidePageTree' => - [ - ], ]; diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsByUpdateWithDiff.php b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsByUpdateWithDiff.php index 03e2b79654f3..65383d00b469 100644 --- a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsByUpdateWithDiff.php +++ b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsByUpdateWithDiff.php @@ -14,520 +14,520 @@ */ return [ - 'update' => true, - 'showDiff' => true, - 'insidePageTree' => - [ - 0 => + 'update' => true, + 'showDiff' => true, + 'insidePageTree' => [ - 'ref' => 'pages:0', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span title="pages:0" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/apps.svg#apps-pagetree-page-default" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'title' => '', - 'active' => 'active', - 'updatePath' => '<strong>NEW!</strong>', - 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][pages:0]" style="width: 100px"><option value="0">Insert</option><option value="%s">Force UID [0] (Admin)</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_FORCE_UID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), - 'showDiffContent' => '', - 'controls' => '', - 'message' => '', - ], - 1 => - [ - 'ref' => 'sys_file:1', - 'type' => 'record', - 'msg' => 'TABLE "sys_file" will be inserted on ROOT LEVEL! ', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-media-image" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'title' => 'used-1.jpg', - 'active' => 'active', - 'updatePath' => '/', - 'updateMode' => '', - 'showDiffContent' => '<strong class="text-nowrap">[sys_file:1 => 1]:</strong> + 0 => + [ + 'ref' => 'pages:0', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span title="pages:0" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/apps.svg#apps-pagetree-page-default" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'title' => '', + 'active' => 'active', + 'updatePath' => '<strong>NEW!</strong>', + 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][pages:0]" style="width: 100px"><option value="0">Insert</option><option value="%s">Force UID [0] (Admin)</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_FORCE_UID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), + 'showDiffContent' => '', + 'controls' => '', + 'message' => '', + ], + 1 => + [ + 'ref' => 'sys_file:1', + 'type' => 'record', + 'msg' => 'TABLE "sys_file" will be inserted on ROOT LEVEL! ', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-media-image" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'title' => 'used-1.jpg', + 'active' => 'active', + 'updatePath' => '/', + 'updateMode' => '', + 'showDiffContent' => '<strong class="text-nowrap">[sys_file:1 => 1]:</strong> <table class="table table-striped table-hover"> <tr><td>Identifier (identifier)</td><td><del>/user_upload/typo3_image3.</del><ins>/user_upload/used-1.</ins>jpg</td></tr> <tr><td>Filename (name)</td><td><del>typo3_image3.</del><ins>used-1.</ins>jpg</td></tr> <tr><td>SHA1 (sha1)</td><td><del>e873c1e2ffd0f191e183a1057de3eef4d62e782d</del><ins>da9acdf1e105784a57bbffec9520969578287797</ins></td></tr> <tr><td>Size (size)</td><td><del>5565</del><ins>7958</ins></td></tr> </table>', - 'controls' => '', - 'message' => '', - ], - 2 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'controls' => '', - 'message' => '', - ], - 3 => - [ - 'ref' => 'sys_file:2', - 'type' => 'record', - 'msg' => 'TABLE "sys_file" will be inserted on ROOT LEVEL! ', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-media-image" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'title' => 'used-2.jpg', - 'active' => 'active', - 'updatePath' => '/', - 'updateMode' => '', - 'showDiffContent' => '<strong class="text-nowrap">[sys_file:2 => 1]:</strong> + 'controls' => '', + 'message' => '', + ], + 2 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'controls' => '', + 'message' => '', + ], + 3 => + [ + 'ref' => 'sys_file:2', + 'type' => 'record', + 'msg' => 'TABLE "sys_file" will be inserted on ROOT LEVEL! ', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-media-image" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'title' => 'used-2.jpg', + 'active' => 'active', + 'updatePath' => '/', + 'updateMode' => '', + 'showDiffContent' => '<strong class="text-nowrap">[sys_file:2 => 1]:</strong> <table class="table table-striped table-hover"> <tr><td>Identifier (identifier)</td><td><del>/user_upload/used-2.</del><ins>/user_upload/typo3_image3.</ins>jpg</td></tr> <tr><td>Filename (name)</td><td><del>used-2.</del><ins>typo3_image3.</ins>jpg</td></tr> <tr><td>SHA1 (sha1)</td><td><del>c3511df85d21bc578faf71c6a19eeb3ff44af370</del><ins>e873c1e2ffd0f191e183a1057de3eef4d62e782d</ins></td></tr> <tr><td>Size (size)</td><td><del>7425</del><ins>5565</ins></td></tr> </table>', - 'controls' => '', - 'message' => '', - ], - 4 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'controls' => '', - 'message' => '', - ], - 5 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'record', - 'msg' => 'TABLE "sys_file_storage" will be inserted on ROOT LEVEL! ', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-sys_file_storage" data-identifier="mimetypes-x-sys_file_storage" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-sys_file_storage" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'title' => 'fileadmin', - 'active' => 'active', - 'updatePath' => '/', - 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][sys_file_storage:1]" style="width: 100px"><option value="0">Update</option><option value="%s">Import as new</option><option value="%s">Ignore PID</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_AS_NEW, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_IGNORE_PID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), - 'showDiffContent' => '<strong class="text-nowrap">[sys_file_storage:1 => 1]:</strong>' . "\n" - . '<table class="table table-striped table-hover">' . "\n" - . '<tr><td>Is default storage? (is_default)</td><td><del>Yes</del><ins>No</ins></td></tr>' . "\n" - . '<tr><td>Driver Configuration (configuration)</td><td>' . "\n\n" - . '<del> \\n \\n \\n \\n fileadmin/\\n \\n \\n relative\\n \\n \\n 1\\n \\n \\n \\n \\n</del><ins>' . "\t\n" - . "\t\t\n" - . "\t\t\t\n" - . "\t\t\t\t\n" - . "\t\t\t\t\t" . 'fileadmin/' . "\n" - . "\t\t\t\t\n" - . "\t\t\t\t\n" - . "\t\t\t\t\t" . 'relative' . "\n" - . "\t\t\t\t\n" - . "\t\t\t\t\n" - . "\t\t\t\t\t" . '1' . "\n" - . "\t\t\t\t\n" - . "\t\t\t\n" - . "\t\t\n" - . "\t\n" - . '</ins></td></tr> + 'controls' => '', + 'message' => '', + ], + 4 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'controls' => '', + 'message' => '', + ], + 5 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'record', + 'msg' => 'TABLE "sys_file_storage" will be inserted on ROOT LEVEL! ', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-sys_file_storage" data-identifier="mimetypes-x-sys_file_storage" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-sys_file_storage" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'title' => 'fileadmin', + 'active' => 'active', + 'updatePath' => '/', + 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][sys_file_storage:1]" style="width: 100px"><option value="0">Update</option><option value="%s">Import as new</option><option value="%s">Ignore PID</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_AS_NEW, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_IGNORE_PID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), + 'showDiffContent' => '<strong class="text-nowrap">[sys_file_storage:1 => 1]:</strong>' . "\n" + . '<table class="table table-striped table-hover">' . "\n" + . '<tr><td>Is default storage? (is_default)</td><td><del>Yes</del><ins>No</ins></td></tr>' . "\n" + . '<tr><td>Driver Configuration (configuration)</td><td>' . "\n\n" + . '<del> \\n \\n \\n \\n fileadmin/\\n \\n \\n relative\\n \\n \\n 1\\n \\n \\n \\n \\n</del><ins>' . "\t\n" + . "\t\t\n" + . "\t\t\t\n" + . "\t\t\t\t\n" + . "\t\t\t\t\t" . 'fileadmin/' . "\n" + . "\t\t\t\t\n" + . "\t\t\t\t\n" + . "\t\t\t\t\t" . 'relative' . "\n" + . "\t\t\t\t\n" + . "\t\t\t\t\n" + . "\t\t\t\t\t" . '1' . "\n" + . "\t\t\t\t\n" + . "\t\t\t\n" + . "\t\t\n" + . "\t\n" + . '</ins></td></tr> <tr><td>Description (description)</td><td><strong>Field missing</strong> in database</td></tr> </table>', - 'controls' => '', - 'message' => '', - ], - 6 => - [ - 'ref' => 'tt_content:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="tt_content:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text-picture" data-identifier="mimetypes-x-content-text-picture" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-content-text-picture" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'title' => 'CE 1 first image', - 'active' => 'active', - 'updatePath' => '/Root/', - 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][tt_content:1]" style="width: 100px"><option value="0">Update</option><option value="%s">Import as new</option><option value="%s">Ignore PID</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_AS_NEW, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_IGNORE_PID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), - 'showDiffContent' => '<strong class="text-nowrap">[tt_content:1 => 2]:</strong> + 'controls' => '', + 'message' => '', + ], + 6 => + [ + 'ref' => 'tt_content:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="tt_content:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text-picture" data-identifier="mimetypes-x-content-text-picture" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-content-text-picture" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'title' => 'CE 1 first image', + 'active' => 'active', + 'updatePath' => '/Root/', + 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][tt_content:1]" style="width: 100px"><option value="0">Update</option><option value="%s">Import as new</option><option value="%s">Ignore PID</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_AS_NEW, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_IGNORE_PID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), + 'showDiffContent' => '<strong class="text-nowrap">[tt_content:1 => 2]:</strong> <table class="table table-striped table-hover"> <tr><td>Header (header)</td><td><del>CE 1 first image</del><ins>Test content</ins></td></tr> <tr><td>Images (image)</td><td>N/A</td></tr> <tr><td>Type (CType)</td><td><del>Text & Images</del><ins>Text</ins></td></tr> </table>', - 'controls' => '', - 'message' => '', - ], - 7 => - [ - 'ref' => 'sys_file_reference:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/Root/">used-1.jpg</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_reference:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'controls' => '', - 'message' => '', - ], - 8 => - [ - 'ref' => 'sys_file:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">used-1.jpg</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'controls' => '', - 'message' => '', - ], - 9 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 4"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'controls' => '', - 'message' => '', - ], - 10 => - [ - 'ref' => 'tt_content:2', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="tt_content:2" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text-picture" data-identifier="mimetypes-x-content-text-picture" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-content-text-picture" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'title' => 'CE 2 second image', - 'active' => 'active', - 'updatePath' => '/Root/', - 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][tt_content:2]" style="width: 100px"><option value="0">Update</option><option value="%s">Import as new</option><option value="%s">Ignore PID</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_AS_NEW, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_IGNORE_PID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), - 'showDiffContent' => '<strong class="text-nowrap">[tt_content:2 => 1]:</strong>' . "\n" - . '<table class="table table-striped table-hover">' . "\n" - . '<tr><td>Header (header)</td><td><del>CE 2 second image</del><ins>Test content 2</ins></td></tr>' . "\n" - . '<tr><td>Images (image)</td><td>N/A</td></tr>' . "\n" - . '<tr><td>Type (CType)</td><td><del>Text & Images</del><ins>Text</ins></td></tr>' . "\n" - . '</table>', - 'controls' => '', - 'message' => '', - ], - 11 => - [ - 'ref' => 'sys_file_reference:2', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/Root/">used-2.jpg</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_reference:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'controls' => '', - 'message' => '', - ], - 12 => - [ - 'ref' => 'sys_file:2', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">used-2.jpg</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'controls' => '', - 'message' => '', - ], - 13 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 4"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'controls' => '', - 'message' => '', - ], - 14 => - [ - 'ref' => 'tt_content:3', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="tt_content:3" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text-picture" data-identifier="mimetypes-x-content-text-picture" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-content-text-picture" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'title' => 'CE 3 second image', - 'active' => 'active', - 'updatePath' => '<strong>NEW!</strong>', - 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][tt_content:3]" style="width: 100px"><option value="0">Insert</option><option value="%s">Force UID [3] (Admin)</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_FORCE_UID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), - 'showDiffContent' => '', - 'controls' => '', - 'message' => '', - ], - 15 => - [ - 'ref' => 'sys_file_reference:3', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/Root/">used-2.jpg</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_reference:3" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'controls' => '', - 'message' => '', - ], - 16 => - [ - 'ref' => 'sys_file:2', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">used-2.jpg</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'controls' => '', - 'message' => '', - ], - 17 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 4"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'controls' => '', - 'message' => '', - ], - 18 => - [ - 'ref' => 'sys_file_reference:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file_reference:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-other-other" data-identifier="mimetypes-other-other" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-other-other" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'title' => 'used-1.jpg', - 'active' => 'active', - 'updatePath' => '<strong>NEW!</strong>', - 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][sys_file_reference:1]" style="width: 100px"><option value="0">Insert</option><option value="%s">Force UID [1] (Admin)</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_FORCE_UID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), - 'showDiffContent' => '', - 'controls' => '', - 'message' => '', - ], - 19 => - [ - 'ref' => 'sys_file:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">used-1.jpg</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'controls' => '', - 'message' => '', - ], - 20 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'controls' => '', - 'message' => '', - ], - 21 => - [ - 'ref' => 'sys_file_reference:2', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file_reference:2" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-other-other" data-identifier="mimetypes-other-other" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-other-other" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'title' => 'used-2.jpg', - 'active' => 'active', - 'updatePath' => '<strong>NEW!</strong>', - 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][sys_file_reference:2]" style="width: 100px"><option value="0">Insert</option><option value="%s">Force UID [2] (Admin)</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_FORCE_UID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), - 'showDiffContent' => '', - 'controls' => '', - 'message' => '', - ], - 22 => - [ - 'ref' => 'sys_file:2', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">used-2.jpg</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'controls' => '', - 'message' => '', - ], - 23 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'controls' => '', - 'message' => '', - ], - 24 => - [ - 'ref' => 'sys_file_reference:3', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file_reference:3" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-other-other" data-identifier="mimetypes-other-other" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-other-other" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'title' => 'used-2.jpg', - 'active' => 'active', - 'updatePath' => '<strong>NEW!</strong>', - 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][sys_file_reference:3]" style="width: 100px"><option value="0">Insert</option><option value="%s">Force UID [3] (Admin)</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_FORCE_UID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), - 'showDiffContent' => '', - 'controls' => '', - 'message' => '', - ], - 25 => - [ - 'ref' => 'sys_file:2', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">used-2.jpg</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'controls' => '', - 'message' => '', - ], - 26 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'controls' => '', - 'message' => '', + 'controls' => '', + 'message' => '', + ], + 7 => + [ + 'ref' => 'sys_file_reference:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/Root/">used-1.jpg</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_reference:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'controls' => '', + 'message' => '', + ], + 8 => + [ + 'ref' => 'sys_file:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">used-1.jpg</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'controls' => '', + 'message' => '', + ], + 9 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 4"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'controls' => '', + 'message' => '', + ], + 10 => + [ + 'ref' => 'tt_content:2', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="tt_content:2" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text-picture" data-identifier="mimetypes-x-content-text-picture" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-content-text-picture" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'title' => 'CE 2 second image', + 'active' => 'active', + 'updatePath' => '/Root/', + 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][tt_content:2]" style="width: 100px"><option value="0">Update</option><option value="%s">Import as new</option><option value="%s">Ignore PID</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_AS_NEW, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_IGNORE_PID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), + 'showDiffContent' => '<strong class="text-nowrap">[tt_content:2 => 1]:</strong>' . "\n" + . '<table class="table table-striped table-hover">' . "\n" + . '<tr><td>Header (header)</td><td><del>CE 2 second image</del><ins>Test content 2</ins></td></tr>' . "\n" + . '<tr><td>Images (image)</td><td>N/A</td></tr>' . "\n" + . '<tr><td>Type (CType)</td><td><del>Text & Images</del><ins>Text</ins></td></tr>' . "\n" + . '</table>', + 'controls' => '', + 'message' => '', + ], + 11 => + [ + 'ref' => 'sys_file_reference:2', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/Root/">used-2.jpg</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_reference:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'controls' => '', + 'message' => '', + ], + 12 => + [ + 'ref' => 'sys_file:2', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">used-2.jpg</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'controls' => '', + 'message' => '', + ], + 13 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 4"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'controls' => '', + 'message' => '', + ], + 14 => + [ + 'ref' => 'tt_content:3', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="tt_content:3" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text-picture" data-identifier="mimetypes-x-content-text-picture" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-content-text-picture" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'title' => 'CE 3 second image', + 'active' => 'active', + 'updatePath' => '<strong>NEW!</strong>', + 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][tt_content:3]" style="width: 100px"><option value="0">Insert</option><option value="%s">Force UID [3] (Admin)</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_FORCE_UID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), + 'showDiffContent' => '', + 'controls' => '', + 'message' => '', + ], + 15 => + [ + 'ref' => 'sys_file_reference:3', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/Root/">used-2.jpg</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_reference:3" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'controls' => '', + 'message' => '', + ], + 16 => + [ + 'ref' => 'sys_file:2', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">used-2.jpg</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'controls' => '', + 'message' => '', + ], + 17 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 4"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'controls' => '', + 'message' => '', + ], + 18 => + [ + 'ref' => 'sys_file_reference:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file_reference:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-other-other" data-identifier="mimetypes-other-other" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-other-other" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'title' => 'used-1.jpg', + 'active' => 'active', + 'updatePath' => '<strong>NEW!</strong>', + 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][sys_file_reference:1]" style="width: 100px"><option value="0">Insert</option><option value="%s">Force UID [1] (Admin)</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_FORCE_UID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), + 'showDiffContent' => '', + 'controls' => '', + 'message' => '', + ], + 19 => + [ + 'ref' => 'sys_file:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">used-1.jpg</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'controls' => '', + 'message' => '', + ], + 20 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'controls' => '', + 'message' => '', + ], + 21 => + [ + 'ref' => 'sys_file_reference:2', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file_reference:2" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-other-other" data-identifier="mimetypes-other-other" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-other-other" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'title' => 'used-2.jpg', + 'active' => 'active', + 'updatePath' => '<strong>NEW!</strong>', + 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][sys_file_reference:2]" style="width: 100px"><option value="0">Insert</option><option value="%s">Force UID [2] (Admin)</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_FORCE_UID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), + 'showDiffContent' => '', + 'controls' => '', + 'message' => '', + ], + 22 => + [ + 'ref' => 'sys_file:2', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">used-2.jpg</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'controls' => '', + 'message' => '', + ], + 23 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'controls' => '', + 'message' => '', + ], + 24 => + [ + 'ref' => 'sys_file_reference:3', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file_reference:3" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-other-other" data-identifier="mimetypes-other-other" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-other-other" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'title' => 'used-2.jpg', + 'active' => 'active', + 'updatePath' => '<strong>NEW!</strong>', + 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][sys_file_reference:3]" style="width: 100px"><option value="0">Insert</option><option value="%s">Force UID [3] (Admin)</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_FORCE_UID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), + 'showDiffContent' => '', + 'controls' => '', + 'message' => '', + ], + 25 => + [ + 'ref' => 'sys_file:2', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">used-2.jpg</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'controls' => '', + 'message' => '', + ], + 26 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'controls' => '', + 'message' => '', + ], + 27 => + [ + 'ref' => 'pages:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="pages:1" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/apps.svg#apps-pagetree-page-default" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'title' => 'Root', + 'active' => 'active', + 'updatePath' => '/', + 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][pages:1]" style="width: 100px"><option value="0">Update</option><option value="%s">Import as new</option><option value="%s">Ignore PID</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_AS_NEW, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_IGNORE_PID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), + 'showDiffContent' => '<strong class="text-nowrap">[pages:1 => 1]:</strong>' . "\n" + . 'Match', + 'controls' => '', + 'message' => '', + ], ], - 27 => + 'outsidePageTree' => [ - 'ref' => 'pages:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="pages:1" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/apps.svg#apps-pagetree-page-default" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'title' => 'Root', - 'active' => 'active', - 'updatePath' => '/', - 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][pages:1]" style="width: 100px"><option value="0">Update</option><option value="%s">Import as new</option><option value="%s">Ignore PID</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_AS_NEW, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_IGNORE_PID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), - 'showDiffContent' => '<strong class="text-nowrap">[pages:1 => 1]:</strong>' . "\n" - . 'Match', - 'controls' => '', - 'message' => '', ], - ], - 'outsidePageTree' => - [ - ], ]; diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsWithDiff.php b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsWithDiff.php index 8faf22360802..ad4abf9ebd36 100644 --- a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsWithDiff.php +++ b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsWithDiff.php @@ -14,471 +14,471 @@ */ return [ - 'update' => false, - 'showDiff' => true, - 'insidePageTree' => - [ - 0 => + 'update' => false, + 'showDiff' => true, + 'insidePageTree' => [ - 'ref' => 'pages:0', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span title="pages:0" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true"> + 0 => + [ + 'ref' => 'pages:0', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span title="pages:0" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/apps.svg#apps-pagetree-page-default" /></svg> </span> </span>', - 'title' => '', - 'active' => 'active', - 'showDiffContent' => '', - 'controls' => '', - 'message' => '', - ], - 1 => - [ - 'ref' => 'sys_file:1', - 'type' => 'record', - 'msg' => 'TABLE "sys_file" will be inserted on ROOT LEVEL! ', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image" aria-hidden="true"> + 'title' => '', + 'active' => 'active', + 'showDiffContent' => '', + 'controls' => '', + 'message' => '', + ], + 1 => + [ + 'ref' => 'sys_file:1', + 'type' => 'record', + 'msg' => 'TABLE "sys_file" will be inserted on ROOT LEVEL! ', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-media-image" /></svg> </span> </span>', - 'title' => 'used-1.jpg', - 'active' => 'active', - 'showDiffContent' => '', - 'controls' => '', - 'message' => '', - ], - 2 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'title' => 'used-1.jpg', + 'active' => 'active', + 'showDiffContent' => '', + 'controls' => '', + 'message' => '', + ], + 2 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 3 => - [ - 'ref' => 'sys_file:2', - 'type' => 'record', - 'msg' => 'TABLE "sys_file" will be inserted on ROOT LEVEL! ', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 3 => + [ + 'ref' => 'sys_file:2', + 'type' => 'record', + 'msg' => 'TABLE "sys_file" will be inserted on ROOT LEVEL! ', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-media-image" /></svg> </span> </span>', - 'title' => 'used-2.jpg', - 'active' => 'active', - 'showDiffContent' => '<strong class="text-nowrap">[sys_file:2 => 1]:</strong> + 'title' => 'used-2.jpg', + 'active' => 'active', + 'showDiffContent' => '<strong class="text-nowrap">[sys_file:2 => 1]:</strong> <table class="table table-striped table-hover"> <tr><td>Identifier (identifier)</td><td><del>/user_upload/used-2.</del><ins>/user_upload/typo3_image3.</ins>jpg</td></tr> <tr><td>Filename (name)</td><td><del>used-2.</del><ins>typo3_image3.</ins>jpg</td></tr> <tr><td>SHA1 (sha1)</td><td><del>c3511df85d21bc578faf71c6a19eeb3ff44af370</del><ins>e873c1e2ffd0f191e183a1057de3eef4d62e782d</ins></td></tr> <tr><td>Size (size)</td><td><del>7425</del><ins>5565</ins></td></tr> </table>', - 'controls' => '', - 'message' => '', - ], - 4 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 4 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 5 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'record', - 'msg' => 'TABLE "sys_file_storage" will be inserted on ROOT LEVEL! ', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-sys_file_storage" data-identifier="mimetypes-x-sys_file_storage" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 5 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'record', + 'msg' => 'TABLE "sys_file_storage" will be inserted on ROOT LEVEL! ', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-sys_file_storage" data-identifier="mimetypes-x-sys_file_storage" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-sys_file_storage" /></svg> </span> </span>', - 'title' => 'fileadmin', - 'active' => 'active', - 'showDiffContent' => '', - 'controls' => '', - 'message' => '', - ], - 6 => - [ - 'ref' => 'tt_content:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="tt_content:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text-picture" data-identifier="mimetypes-x-content-text-picture" aria-hidden="true"> + 'title' => 'fileadmin', + 'active' => 'active', + 'showDiffContent' => '', + 'controls' => '', + 'message' => '', + ], + 6 => + [ + 'ref' => 'tt_content:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="tt_content:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text-picture" data-identifier="mimetypes-x-content-text-picture" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-content-text-picture" /></svg> </span> </span>', - 'title' => 'CE 1 first image', - 'active' => 'active', - 'showDiffContent' => '<strong class="text-nowrap">[tt_content:1 => 2]:</strong> + 'title' => 'CE 1 first image', + 'active' => 'active', + 'showDiffContent' => '<strong class="text-nowrap">[tt_content:1 => 2]:</strong> <table class="table table-striped table-hover"> <tr><td>Header (header)</td><td><del>CE 1 first image</del><ins>Test content</ins></td></tr> <tr><td>Images (image)</td><td>N/A</td></tr> <tr><td>Type (CType)</td><td><del>Text & Images</del><ins>Text</ins></td></tr> </table>', - 'controls' => '', - 'message' => '', - ], - 7 => - [ - 'ref' => 'sys_file_reference:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/Root/">used-1.jpg</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_reference:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 7 => + [ + 'ref' => 'sys_file_reference:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/Root/">used-1.jpg</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_reference:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 8 => - [ - 'ref' => 'sys_file:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">used-1.jpg</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 8 => + [ + 'ref' => 'sys_file:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">used-1.jpg</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 9 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 4"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 9 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 4"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 10 => - [ - 'ref' => 'tt_content:2', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="tt_content:2" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text-picture" data-identifier="mimetypes-x-content-text-picture" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 10 => + [ + 'ref' => 'tt_content:2', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="tt_content:2" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text-picture" data-identifier="mimetypes-x-content-text-picture" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-content-text-picture" /></svg> </span> </span>', - 'title' => 'CE 2 second image', - 'active' => 'active', - 'showDiffContent' => '<strong class="text-nowrap">[tt_content:2 => 1]:</strong> + 'title' => 'CE 2 second image', + 'active' => 'active', + 'showDiffContent' => '<strong class="text-nowrap">[tt_content:2 => 1]:</strong> <table class="table table-striped table-hover"> <tr><td>Header (header)</td><td><del>CE 2 second image</del><ins>Test content 2</ins></td></tr> <tr><td>Images (image)</td><td>N/A</td></tr> <tr><td>Type (CType)</td><td><del>Text & Images</del><ins>Text</ins></td></tr> </table>', - 'controls' => '', - 'message' => '', - ], - 11 => - [ - 'ref' => 'sys_file_reference:2', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/Root/">used-2.jpg</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_reference:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 11 => + [ + 'ref' => 'sys_file_reference:2', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/Root/">used-2.jpg</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_reference:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 12 => - [ - 'ref' => 'sys_file:2', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">used-2.jpg</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 12 => + [ + 'ref' => 'sys_file:2', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">used-2.jpg</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 13 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 4"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 13 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 4"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 14 => - [ - 'ref' => 'tt_content:3', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="tt_content:3" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text-picture" data-identifier="mimetypes-x-content-text-picture" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 14 => + [ + 'ref' => 'tt_content:3', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="tt_content:3" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text-picture" data-identifier="mimetypes-x-content-text-picture" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-content-text-picture" /></svg> </span> </span>', - 'title' => 'CE 3 second image', - 'active' => 'active', - 'showDiffContent' => '', - 'controls' => '', - 'message' => '', - ], - 15 => - [ - 'ref' => 'sys_file_reference:3', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/Root/">used-2.jpg</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_reference:3" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'title' => 'CE 3 second image', + 'active' => 'active', + 'showDiffContent' => '', + 'controls' => '', + 'message' => '', + ], + 15 => + [ + 'ref' => 'sys_file_reference:3', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/Root/">used-2.jpg</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_reference:3" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 16 => - [ - 'ref' => 'sys_file:2', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">used-2.jpg</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 16 => + [ + 'ref' => 'sys_file:2', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">used-2.jpg</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 17 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 4"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 17 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 4"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 18 => - [ - 'ref' => 'sys_file_reference:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file_reference:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-other-other" data-identifier="mimetypes-other-other" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 18 => + [ + 'ref' => 'sys_file_reference:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file_reference:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-other-other" data-identifier="mimetypes-other-other" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-other-other" /></svg> </span> </span>', - 'title' => 'used-1.jpg', - 'active' => 'active', - 'showDiffContent' => '', - 'controls' => '', - 'message' => '', - ], - 19 => - [ - 'ref' => 'sys_file:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">used-1.jpg</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'title' => 'used-1.jpg', + 'active' => 'active', + 'showDiffContent' => '', + 'controls' => '', + 'message' => '', + ], + 19 => + [ + 'ref' => 'sys_file:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">used-1.jpg</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 20 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 20 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 21 => - [ - 'ref' => 'sys_file_reference:2', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file_reference:2" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-other-other" data-identifier="mimetypes-other-other" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 21 => + [ + 'ref' => 'sys_file_reference:2', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file_reference:2" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-other-other" data-identifier="mimetypes-other-other" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-other-other" /></svg> </span> </span>', - 'title' => 'used-2.jpg', - 'active' => 'active', - 'showDiffContent' => '', - 'controls' => '', - 'message' => '', - ], - 22 => - [ - 'ref' => 'sys_file:2', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">used-2.jpg</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'title' => 'used-2.jpg', + 'active' => 'active', + 'showDiffContent' => '', + 'controls' => '', + 'message' => '', + ], + 22 => + [ + 'ref' => 'sys_file:2', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">used-2.jpg</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 23 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 23 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 24 => - [ - 'ref' => 'sys_file_reference:3', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file_reference:3" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-other-other" data-identifier="mimetypes-other-other" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 24 => + [ + 'ref' => 'sys_file_reference:3', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file_reference:3" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-other-other" data-identifier="mimetypes-other-other" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-other-other" /></svg> </span> </span>', - 'title' => 'used-2.jpg', - 'active' => 'active', - 'showDiffContent' => '', - 'controls' => '', - 'message' => '', - ], - 25 => - [ - 'ref' => 'sys_file:2', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">used-2.jpg</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'title' => 'used-2.jpg', + 'active' => 'active', + 'showDiffContent' => '', + 'controls' => '', + 'message' => '', + ], + 25 => + [ + 'ref' => 'sys_file:2', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">used-2.jpg</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 26 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 26 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 27 => - [ - 'ref' => 'pages:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="pages:1" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 27 => + [ + 'ref' => 'pages:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="pages:1" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/apps.svg#apps-pagetree-page-default" /></svg> </span> </span>', - 'title' => 'Root', - 'active' => 'active', - 'showDiffContent' => '<strong class="text-nowrap">[pages:1 => 1]:</strong> + 'title' => 'Root', + 'active' => 'active', + 'showDiffContent' => '<strong class="text-nowrap">[pages:1 => 1]:</strong> Match', - 'controls' => '', - 'message' => '', + 'controls' => '', + 'message' => '', + ], + ], + 'outsidePageTree' => + [ ], - ], - 'outsidePageTree' => - [ - ], ]; diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsWithSoftRefs.php b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsWithSoftRefs.php index 079090bbde77..d08024bb6320 100644 --- a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsWithSoftRefs.php +++ b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsWithSoftRefs.php @@ -14,146 +14,146 @@ */ return [ - 'update' => false, - 'showDiff' => false, - 'insidePageTree' => - [ + 'update' => false, + 'showDiff' => false, + 'insidePageTree' => [ - 'ref' => 'pages:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span title="pages:1" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true"> + [ + 'ref' => 'pages:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span title="pages:1" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/apps.svg#apps-pagetree-page-default" /></svg> </span> </span>', - 'title' => 'Congratulations', - 'active' => 'active', - 'controls' => '', - 'message' => '', - ], - [ - 'ref' => 'tt_content:212', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="tt_content:212" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text" aria-hidden="true"> + 'title' => 'Congratulations', + 'active' => 'active', + 'controls' => '', + 'message' => '', + ], + [ + 'ref' => 'tt_content:212', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="tt_content:212" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-content-text" /></svg> </span> </span>', - 'title' => 'Professional Services', - 'active' => 'active', - 'controls' => '', - 'message' => '', - ], - [ - 'ref' => 'SOFTREF', - 'type' => 'softref', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="SOFTREF" class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft" aria-hidden="true"> + 'title' => 'Professional Services', + 'active' => 'active', + 'controls' => '', + 'message' => '', + ], + [ + 'ref' => 'SOFTREF', + 'type' => 'softref', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="SOFTREF" class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft" aria-hidden="true"> <span class="icon-markup"> <img src="typo3/sysext/impexp/Resources/Public/Icons/status-reference-soft.png" width="16" height="16" alt="" /> </span> </span>', - 'title' => '<em>bodytext, "typolink_tag"</em>: <span title="<a href="https://typo3.com/services/service-level-agreements/" rel="noopener" target="_blank">"><a href="https://typo3.com/services/service-level-agreements...</span>', - '_softRefInfo' => - [ - 'field' => 'bodytext', - 'spKey' => 'typolink_tag', - 'matchString' => '<a href="https://typo3.com/services/service-level-agreements/" rel="noopener" target="_blank">', - 'subst' => - [ - 'type' => 'external', - 'tokenID' => '9700f40eaef01981e52bf05e7047c8db', - 'tokenValue' => 'https://typo3.com/services/service-level-agreements/', + 'title' => '<em>bodytext, "typolink_tag"</em>: <span title="<a href="https://typo3.com/services/service-level-agreements/" rel="noopener" target="_blank">"><a href="https://typo3.com/services/service-level-agreements...</span>', + '_softRefInfo' => + [ + 'field' => 'bodytext', + 'spKey' => 'typolink_tag', + 'matchString' => '<a href="https://typo3.com/services/service-level-agreements/" rel="noopener" target="_blank">', + 'subst' => + [ + 'type' => 'external', + 'tokenID' => '9700f40eaef01981e52bf05e7047c8db', + 'tokenValue' => 'https://typo3.com/services/service-level-agreements/', + ], + ], + 'controls' => '<br><input type="text" name="tx_impexp[softrefInputValues][9700f40eaef01981e52bf05e7047c8db]" value="https://typo3.com/services/service-level-agreements/" />', + 'message' => '', ], - ], - 'controls' => '<br><input type="text" name="tx_impexp[softrefInputValues][9700f40eaef01981e52bf05e7047c8db]" value="https://typo3.com/services/service-level-agreements/" />', - 'message' => '', - ], - [ - 'ref' => 'SOFTREF', - 'type' => 'softref', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="SOFTREF" class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft" aria-hidden="true"> + [ + 'ref' => 'SOFTREF', + 'type' => 'softref', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="SOFTREF" class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft" aria-hidden="true"> <span class="icon-markup"> <img src="typo3/sysext/impexp/Resources/Public/Icons/status-reference-soft.png" width="16" height="16" alt="" /> </span> </span>', - 'title' => '<em>bodytext, "typolink_tag"</em>: <span title="<a href="https://typo3.com/services/extended-support/" rel="noopener" target="_blank">"><a href="https://typo3.com/services/extended-support/" rel="...</span>', - '_softRefInfo' => - [ - 'field' => 'bodytext', - 'spKey' => 'typolink_tag', - 'matchString' => '<a href="https://typo3.com/services/extended-support/" rel="noopener" target="_blank">', - 'subst' => - [ - 'type' => 'external', - 'tokenID' => 'e0d903270af391bc1e7dddd38eae0072', - 'tokenValue' => 'https://typo3.com/services/extended-support/', + 'title' => '<em>bodytext, "typolink_tag"</em>: <span title="<a href="https://typo3.com/services/extended-support/" rel="noopener" target="_blank">"><a href="https://typo3.com/services/extended-support/" rel="...</span>', + '_softRefInfo' => + [ + 'field' => 'bodytext', + 'spKey' => 'typolink_tag', + 'matchString' => '<a href="https://typo3.com/services/extended-support/" rel="noopener" target="_blank">', + 'subst' => + [ + 'type' => 'external', + 'tokenID' => 'e0d903270af391bc1e7dddd38eae0072', + 'tokenValue' => 'https://typo3.com/services/extended-support/', + ], + ], + 'controls' => 'secondSoftRef<br><input type="text" name="tx_impexp[softrefInputValues][e0d903270af391bc1e7dddd38eae0072]" value="https://typo3.com/services/extended-support/" />', + 'message' => '', ], - ], - 'controls' => 'secondSoftRef<br><input type="text" name="tx_impexp[softrefInputValues][e0d903270af391bc1e7dddd38eae0072]" value="https://typo3.com/services/extended-support/" />', - 'message' => '', - ], - [ - 'ref' => 'SOFTREF', - 'type' => 'softref', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="SOFTREF" class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft" aria-hidden="true"> + [ + 'ref' => 'SOFTREF', + 'type' => 'softref', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="SOFTREF" class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft" aria-hidden="true"> <span class="icon-markup"> <img src="typo3/sysext/impexp/Resources/Public/Icons/status-reference-soft.png" width="16" height="16" alt="" /> </span> </span>', - 'title' => '<em>bodytext, "typolink_tag"</em>: <span title="<a href="https://typo3.com/services/project-reviews/" rel="noopener" target="_blank">"><a href="https://typo3.com/services/project-reviews/" rel="n...</span>', - '_softRefInfo' => - [ - 'field' => 'bodytext', - 'spKey' => 'typolink_tag', - 'matchString' => '<a href="https://typo3.com/services/project-reviews/" rel="noopener" target="_blank">', - 'subst' => - [ - 'type' => 'external', - 'tokenID' => 'e56cdf0a5f2822c64c0111ad24373a54', - 'tokenValue' => 'https://typo3.com/services/project-reviews/', + 'title' => '<em>bodytext, "typolink_tag"</em>: <span title="<a href="https://typo3.com/services/project-reviews/" rel="noopener" target="_blank">"><a href="https://typo3.com/services/project-reviews/" rel="n...</span>', + '_softRefInfo' => + [ + 'field' => 'bodytext', + 'spKey' => 'typolink_tag', + 'matchString' => '<a href="https://typo3.com/services/project-reviews/" rel="noopener" target="_blank">', + 'subst' => + [ + 'type' => 'external', + 'tokenID' => 'e56cdf0a5f2822c64c0111ad24373a54', + 'tokenValue' => 'https://typo3.com/services/project-reviews/', + ], + ], + 'controls' => '', + 'message' => '', ], - ], - 'controls' => '', - 'message' => '', - ], - [ - 'ref' => 'SOFTREF', - 'type' => 'softref', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="SOFTREF" class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft" aria-hidden="true"> + [ + 'ref' => 'SOFTREF', + 'type' => 'softref', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="SOFTREF" class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft" aria-hidden="true"> <span class="icon-markup"> <img src="typo3/sysext/impexp/Resources/Public/Icons/status-reference-soft.png" width="16" height="16" alt="" /> </span> </span>', - 'title' => '<em>bodytext, "typolink_tag"</em>: <span title="<a href="https://typo3.com/products/integrations/google-ads-for-typo3" rel="noopener" target="_blank">"><a href="https://typo3.com/products/integrations/google-ads-...</span>', - '_softRefInfo' => - [ - 'field' => 'bodytext', - 'spKey' => 'typolink_tag', - 'matchString' => '<a href="https://typo3.com/products/integrations/google-ads-for-typo3" rel="noopener" target="_blank">', - 'subst' => - [ - 'type' => 'external', - 'tokenID' => '98931a85208d5f3e47fb02c4ee38b94a', - 'tokenValue' => 'https://typo3.com/products/integrations/google-ads-for-typo3', + 'title' => '<em>bodytext, "typolink_tag"</em>: <span title="<a href="https://typo3.com/products/integrations/google-ads-for-typo3" rel="noopener" target="_blank">"><a href="https://typo3.com/products/integrations/google-ads-...</span>', + '_softRefInfo' => + [ + 'field' => 'bodytext', + 'spKey' => 'typolink_tag', + 'matchString' => '<a href="https://typo3.com/products/integrations/google-ads-for-typo3" rel="noopener" target="_blank">', + 'subst' => + [ + 'type' => 'external', + 'tokenID' => '98931a85208d5f3e47fb02c4ee38b94a', + 'tokenValue' => 'https://typo3.com/products/integrations/google-ads-for-typo3', + ], + ], + 'controls' => '', + 'message' => '', ], - ], - 'controls' => '', - 'message' => '', ], - ], - 'outsidePageTree' => - [ - ], + 'outsidePageTree' => + [ + ], ]; diff --git a/typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImagesInEmptyDatabaseTest.php b/typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImagesInEmptyDatabaseTest.php index 676dd28224da..f2efb951b8e2 100644 --- a/typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImagesInEmptyDatabaseTest.php +++ b/typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImagesInEmptyDatabaseTest.php @@ -194,7 +194,7 @@ final class PagesAndTtContentWithImagesInEmptyDatabaseTest extends AbstractImpor self::assertFileEquals(__DIR__ . '/../Fixtures/Folders/fileadmin/user_upload/typo3_image2.jpg', Environment::getPublicPath() . '/fileadmin/user_upload/typo3_image2.jpg'); $expectedErrors = [ - 'Forcing uids of sys_file records is not supported! They will be imported as new records!', + 'Forcing uids of sys_file records is not supported! They will be imported as new records!', ]; $errors = $subject->getErrorLog(); self::assertSame($expectedErrors, $errors); diff --git a/typo3/sysext/impexp/Tests/Functional/ImportTest.php b/typo3/sysext/impexp/Tests/Functional/ImportTest.php index a25bbbeb8584..92d02c66b039 100644 --- a/typo3/sysext/impexp/Tests/Functional/ImportTest.php +++ b/typo3/sysext/impexp/Tests/Functional/ImportTest.php @@ -204,18 +204,18 @@ final class ImportTest extends AbstractImportExportTestCase '123456789', ], 'tokenID' => '987654321' , 'expected' => [ - [ - 'ref' => 'FILE', - 'type' => 'file', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="FILE" class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-hard" data-identifier="status-reference-hard" aria-hidden="true"> + [ + 'ref' => 'FILE', + 'type' => 'file', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="FILE" class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-hard" data-identifier="status-reference-hard" aria-hidden="true"> ' . "\t" . '<span class="icon-markup"> <img src="typo3/sysext/impexp/Resources/Public/Icons/status-reference-hard.png" width="16" height="16" alt="" /> ' . "\t" . '</span>' . "\n\t\n" . '</span>', - 'title' => 'filename.jpg', - 'showDiffContent' => '', - ], - ], ], + 'title' => 'filename.jpg', + 'showDiffContent' => '', + ], + ], ], ]; } diff --git a/typo3/sysext/indexed_search/Classes/Domain/Repository/IndexSearchRepository.php b/typo3/sysext/indexed_search/Classes/Domain/Repository/IndexSearchRepository.php index 86191547c476..93d14f37f594 100644 --- a/typo3/sysext/indexed_search/Classes/Domain/Repository/IndexSearchRepository.php +++ b/typo3/sysext/indexed_search/Classes/Domain/Repository/IndexSearchRepository.php @@ -1143,9 +1143,9 @@ class IndexSearchRepository 'phash', 'index_grlist', [ - 'phash' => (int)$row['phash'], - 'gr_list' => $this->frontendUserGroupList, - ] + 'phash' => (int)$row['phash'], + 'gr_list' => $this->frontendUserGroupList, + ] ); } return true; diff --git a/typo3/sysext/indexed_search/Classes/ViewHelpers/PageBrowsingViewHelper.php b/typo3/sysext/indexed_search/Classes/ViewHelpers/PageBrowsingViewHelper.php index 6d44106e2c67..e672876f41f9 100644 --- a/typo3/sysext/indexed_search/Classes/ViewHelpers/PageBrowsingViewHelper.php +++ b/typo3/sysext/indexed_search/Classes/ViewHelpers/PageBrowsingViewHelper.php @@ -156,14 +156,14 @@ final class PageBrowsingViewHelper extends AbstractTagBasedViewHelper self::class, implode(' ', [ "document.addEventListener('click', (evt) => {", - "if (!evt.target.classList.contains('tx-indexedsearch-page-selector')) {", - 'return;', - '}', - 'evt.preventDefault();', - 'var data = evt.target.dataset;', - "document.getElementById(data.prefix + '_pointer').value = data.pointer;", - "document.getElementById(data.prefix + '_freeIndexUid').value = data.freeIndexUid;", - 'document.getElementById(data.prefix).submit();', + "if (!evt.target.classList.contains('tx-indexedsearch-page-selector')) {", + 'return;', + '}', + 'evt.preventDefault();', + 'var data = evt.target.dataset;', + "document.getElementById(data.prefix + '_pointer').value = data.pointer;", + "document.getElementById(data.prefix + '_freeIndexUid').value = data.freeIndexUid;", + 'document.getElementById(data.prefix).submit();', '});', ]), [], diff --git a/typo3/sysext/install/Classes/Configuration/Mail/SendmailPreset.php b/typo3/sysext/install/Classes/Configuration/Mail/SendmailPreset.php index e4e8388874cb..fc17494f5ff2 100644 --- a/typo3/sysext/install/Classes/Configuration/Mail/SendmailPreset.php +++ b/typo3/sysext/install/Classes/Configuration/Mail/SendmailPreset.php @@ -43,7 +43,7 @@ class SendmailPreset extends AbstractPreset 'MAIL/transport_smtp_encrypt' => '', 'MAIL/transport_smtp_username' => '', 'MAIL/transport_smtp_password' => '', - ]; + ]; /** * Get configuration values to activate prefix diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ArrayDimensionMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ArrayDimensionMatcherTest.php index 1f04824282a8..9f0f25101a97 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ArrayDimensionMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ArrayDimensionMatcherTest.php @@ -115,7 +115,7 @@ final class ArrayDimensionMatcherTest extends UnitTestCase ], ], ], - ]; + ]; } /** diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ArrayGlobalMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ArrayGlobalMatcherTest.php index 2fb9aadf7680..dad1a5012a18 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ArrayGlobalMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ArrayGlobalMatcherTest.php @@ -80,7 +80,7 @@ final class ArrayGlobalMatcherTest extends UnitTestCase ], ], ], - ]; + ]; } /** diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentDroppedMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentDroppedMatcherTest.php index d938acdc323b..11a9f5e70f43 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentDroppedMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentDroppedMatcherTest.php @@ -216,7 +216,7 @@ final class MethodArgumentDroppedMatcherTest extends UnitTestCase ], ], ], - ]; + ]; } /** diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentDroppedStaticMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentDroppedStaticMatcherTest.php index aac924429d21..6f96a75057d2 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentDroppedStaticMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentDroppedStaticMatcherTest.php @@ -219,7 +219,7 @@ final class MethodArgumentDroppedStaticMatcherTest extends UnitTestCase ], ], ], - ]; + ]; } /** diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentRequiredMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentRequiredMatcherTest.php index 935c57263186..5444e65826a8 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentRequiredMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentRequiredMatcherTest.php @@ -209,7 +209,7 @@ final class MethodArgumentRequiredMatcherTest extends UnitTestCase ], ], ], - ]; + ]; } /** diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentRequiredStaticMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentRequiredStaticMatcherTest.php index ec9e9e18d3a8..d384c1e622c7 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentRequiredStaticMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentRequiredStaticMatcherTest.php @@ -187,7 +187,7 @@ final class MethodArgumentRequiredStaticMatcherTest extends UnitTestCase ], ], ], - ]; + ]; } /** diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentUnusedMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentUnusedMatcherTest.php index a4fd1893edac..a09815bc7cd5 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentUnusedMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentUnusedMatcherTest.php @@ -205,7 +205,7 @@ final class MethodArgumentUnusedMatcherTest extends UnitTestCase ], ], ], - ]; + ]; } /** diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodCallMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodCallMatcherTest.php index 74af0acbf4c4..97062abfeb1e 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodCallMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodCallMatcherTest.php @@ -299,7 +299,7 @@ EOC; ], ], ], - ]; + ]; } /** diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/PropertyProtectedMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/PropertyProtectedMatcherTest.php index 7f42517456c8..77180b225844 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/PropertyProtectedMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/PropertyProtectedMatcherTest.php @@ -114,7 +114,7 @@ final class PropertyProtectedMatcherTest extends UnitTestCase ], ], ], - ]; + ]; } /** diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/PropertyPublicMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/PropertyPublicMatcherTest.php index 7400070e9950..f1077840c46e 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/PropertyPublicMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/PropertyPublicMatcherTest.php @@ -114,7 +114,7 @@ final class PropertyPublicMatcherTest extends UnitTestCase ], ], ], - ]; + ]; } /** diff --git a/typo3/sysext/linkvalidator/Classes/Controller/LinkValidatorController.php b/typo3/sysext/linkvalidator/Classes/Controller/LinkValidatorController.php index 4543b1f54577..9c7270172ea0 100644 --- a/typo3/sysext/linkvalidator/Classes/Controller/LinkValidatorController.php +++ b/typo3/sysext/linkvalidator/Classes/Controller/LinkValidatorController.php @@ -174,11 +174,11 @@ class LinkValidatorController return $view->renderResponse('Backend/Report'); } $view->assignMultiple([ - 'title' => $this->pageRecord ? BackendUtility::getRecordTitle('pages', $this->pageRecord) : '', - 'prefix' => 'check', - 'selectedLevel' => $this->searchLevel['check'], - 'options' => $this->getCheckOptions('check'), - ]); + 'title' => $this->pageRecord ? BackendUtility::getRecordTitle('pages', $this->pageRecord) : '', + 'prefix' => 'check', + 'selectedLevel' => $this->searchLevel['check'], + 'options' => $this->getCheckOptions('check'), + ]); return $view->renderResponse('Backend/CheckLinks'); } diff --git a/typo3/sysext/linkvalidator/Tests/Functional/Repository/BrokenLinkRepositoryTest.php b/typo3/sysext/linkvalidator/Tests/Functional/Repository/BrokenLinkRepositoryTest.php index d3841e5581cd..a0eac54d2f15 100644 --- a/typo3/sysext/linkvalidator/Tests/Functional/Repository/BrokenLinkRepositoryTest.php +++ b/typo3/sysext/linkvalidator/Tests/Functional/Repository/BrokenLinkRepositoryTest.php @@ -293,17 +293,17 @@ final class BrokenLinkRepositoryTest extends FunctionalTestCase [1], // pids [ // expected result [ - 'record_uid' => 1, - 'record_pid' => 1, - 'language' => 0, - 'headline' => 'link', - 'field' => 'bodytext', - 'table_name' => 'tt_content', - 'element_type' => 'textmedia', - 'link_title' => 'link', - 'url' => 'http://localhost/iAmInvalid', - 'link_type' => 'external', - 'needs_recheck' => 0, + 'record_uid' => 1, + 'record_pid' => 1, + 'language' => 0, + 'headline' => 'link', + 'field' => 'bodytext', + 'table_name' => 'tt_content', + 'element_type' => 'textmedia', + 'link_title' => 'link', + 'url' => 'http://localhost/iAmInvalid', + 'link_type' => 'external', + 'needs_recheck' => 0, ], [ 'record_uid' => 2, diff --git a/typo3/sysext/linkvalidator/Tests/Unit/Linktype/ExternalLinktypeTest.php b/typo3/sysext/linkvalidator/Tests/Unit/Linktype/ExternalLinktypeTest.php index c5b781dde739..5f40746de7d8 100644 --- a/typo3/sysext/linkvalidator/Tests/Unit/Linktype/ExternalLinktypeTest.php +++ b/typo3/sysext/linkvalidator/Tests/Unit/Linktype/ExternalLinktypeTest.php @@ -135,17 +135,17 @@ final class ExternalLinktypeTest extends UnitTestCase // regression tests for #89378 yield 'URL with path with dashes' => [ - 'https://example.com/Unternehmen/Ausbildung-Qualifikation/Weiterbildung-in-Niedersachsen/', - 'https://example.com/Unternehmen/Ausbildung-Qualifikation/Weiterbildung-in-Niedersachsen/', - ]; + 'https://example.com/Unternehmen/Ausbildung-Qualifikation/Weiterbildung-in-Niedersachsen/', + 'https://example.com/Unternehmen/Ausbildung-Qualifikation/Weiterbildung-in-Niedersachsen/', + ]; yield 'URL with path with dashes (2)' => [ 'https://example.com/startseite/wirtschaft/wirtschaftsfoerderung/beratung-foerderung/gruenderberatung/gruenderforen.html', 'https://example.com/startseite/wirtschaft/wirtschaftsfoerderung/beratung-foerderung/gruenderberatung/gruenderforen.html', - ]; + ]; yield 'URL with path with dashes (3)' => [ 'http://example.com/universitaet/die-uni-im-ueberblick/lageplan/gebaeude/building/120', 'http://example.com/universitaet/die-uni-im-ueberblick/lageplan/gebaeude/building/120', - ]; + ]; yield 'URL with path and query parameters (including &, ~,; etc.)' => [ 'http://example.com/tv?bcpid=1701167454001&amp;amp;bckey=AQ~~,AAAAAGL7LqU~,aXlKNnCf9d9Tmck-kOc4PGFfCgHjM5JR&amp;amp;bctid=1040702768001', 'http://example.com/tv?bcpid=1701167454001&amp;bckey=AQ~~,AAAAAGL7LqU~,aXlKNnCf9d9Tmck-kOc4PGFfCgHjM5JR&amp;bctid=1040702768001', @@ -163,13 +163,13 @@ final class ExternalLinktypeTest extends UnitTestCase // domains with special characters: should be converted to punycode yield 'domain with special characters' => [ - 'https://www.grün-example.org', - 'https://www.xn--grn-example-uhb.org', - ]; + 'https://www.grün-example.org', + 'https://www.xn--grn-example-uhb.org', + ]; yield 'domain with special characters and path' => [ - 'https://www.grün-example.org/a/bcd-efg/sfsfsfsfsf', - 'https://www.xn--grn-example-uhb.org/a/bcd-efg/sfsfsfsfsf', - ]; + 'https://www.grün-example.org/a/bcd-efg/sfsfsfsfsf', + 'https://www.xn--grn-example-uhb.org/a/bcd-efg/sfsfsfsfsf', + ]; } /** diff --git a/typo3/sysext/lowlevel/Classes/Command/MissingRelationsCommand.php b/typo3/sysext/lowlevel/Classes/Command/MissingRelationsCommand.php index 01467af7d208..aad537529f5d 100644 --- a/typo3/sysext/lowlevel/Classes/Command/MissingRelationsCommand.php +++ b/typo3/sysext/lowlevel/Classes/Command/MissingRelationsCommand.php @@ -283,7 +283,7 @@ If you want to get more detailed information, use the --verbose option.') } else { $offlineVersionRecords[$idx][$rec['hash']] = $infoString; } - // reference to a deleted record + // reference to a deleted record } elseif (isset($GLOBALS['TCA'][$rec['ref_table']]['ctrl']['delete']) && $existingRecords[$idx][$GLOBALS['TCA'][$rec['ref_table']]['ctrl']['delete']]) { if ($isSoftReference) { $deletedRecordsInSoftReferenceRelations[] = $infoString; diff --git a/typo3/sysext/lowlevel/Classes/Controller/DatabaseIntegrityController.php b/typo3/sysext/lowlevel/Classes/Controller/DatabaseIntegrityController.php index 1f0c751606de..c5d213c8d98f 100644 --- a/typo3/sysext/lowlevel/Classes/Controller/DatabaseIntegrityController.php +++ b/typo3/sysext/lowlevel/Classes/Controller/DatabaseIntegrityController.php @@ -841,15 +841,15 @@ class DatabaseIntegrityController } else { $out .= '<div class="btn-group" role="group">'; $out .= '<a class="btn btn-default" href="' . htmlspecialchars((string)$this->uriBuilder->buildUriFromRoute('tce_db', [ - 'cmd' => [ - $table => [ - $row['uid'] => [ - 'undelete' => 1, - ], + 'cmd' => [ + $table => [ + $row['uid'] => [ + 'undelete' => 1, ], ], - 'redirect' => (string)$this->uriBuilder->buildUriFromRoute($this->moduleName), - ])) . '" title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_t3lib_fullsearch.xlf:undelete_only')) . '">'; + ], + 'redirect' => (string)$this->uriBuilder->buildUriFromRoute($this->moduleName), + ])) . '" title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_t3lib_fullsearch.xlf:undelete_only')) . '">'; $out .= $this->iconFactory->getIcon('actions-edit-restore', IconSize::SMALL)->render() . '</a>'; $out .= '</div>'; } diff --git a/typo3/sysext/redirects/Classes/Controller/ManagementController.php b/typo3/sysext/redirects/Classes/Controller/ManagementController.php index c62424476b8a..abb9c672a769 100644 --- a/typo3/sysext/redirects/Classes/Controller/ManagementController.php +++ b/typo3/sysext/redirects/Classes/Controller/ManagementController.php @@ -160,9 +160,9 @@ class ManagementController 'record_edit', [ 'edit' => ['sys_redirect' => ['new'], - ], - 'returnUrl' => (string)$this->uriBuilder->buildUriFromRoute('site_redirects'), - ] + ], + 'returnUrl' => (string)$this->uriBuilder->buildUriFromRoute('site_redirects'), + ] )) ->setTitle($languageService->sL('LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:redirect_add_text')) ->setShowLabelText(true) diff --git a/typo3/sysext/reports/Classes/Report/Status/ImageProcessingStatus.php b/typo3/sysext/reports/Classes/Report/Status/ImageProcessingStatus.php index 96539bb47fdf..d4784a3957a9 100644 --- a/typo3/sysext/reports/Classes/Report/Status/ImageProcessingStatus.php +++ b/typo3/sysext/reports/Classes/Report/Status/ImageProcessingStatus.php @@ -54,7 +54,7 @@ class ImageProcessingStatus implements StatusProviderInterface $severity = ContextualFeedbackSeverity::INFO; $value = $this->getLanguageService()->sL('LLL:EXT:reports/Resources/Private/Language/locallang_reports.xlf:status_disabled'); $message = $this->getLanguageService()->sL('LLL:EXT:reports/Resources/Private/Language/locallang_reports.xlf:status_imageprocessing_disabled'); - // ImageMagick / GraphicsMagick is not enabled, all good + // ImageMagick / GraphicsMagick is not enabled, all good } elseif (!in_array('webp', $imageProcessing->getImageFileExt(), true)) { // webp is not enabled in TYPO3's Configuration $severity = ContextualFeedbackSeverity::INFO; diff --git a/typo3/sysext/seo/Classes/Canonical/CanonicalGenerator.php b/typo3/sysext/seo/Classes/Canonical/CanonicalGenerator.php index f1cd7ce5d39d..6de1412d3c6d 100644 --- a/typo3/sysext/seo/Classes/Canonical/CanonicalGenerator.php +++ b/typo3/sysext/seo/Classes/Canonical/CanonicalGenerator.php @@ -73,9 +73,9 @@ class CanonicalGenerator if (!empty($href)) { $canonical = '<link ' . GeneralUtility::implodeAttributes([ - 'rel' => 'canonical', - 'href' => $href, - ], true) . '/>' . LF; + 'rel' => 'canonical', + 'href' => $href, + ], true) . '/>' . LF; $this->typoScriptFrontendController->additionalHeaderData[] = $canonical; return $canonical; } diff --git a/typo3/sysext/styleguide/Configuration/TCA/tx_styleguide_ctrl_common.php b/typo3/sysext/styleguide/Configuration/TCA/tx_styleguide_ctrl_common.php index fa7bb5f3029f..166c588372e0 100644 --- a/typo3/sysext/styleguide/Configuration/TCA/tx_styleguide_ctrl_common.php +++ b/typo3/sysext/styleguide/Configuration/TCA/tx_styleguide_ctrl_common.php @@ -32,91 +32,91 @@ return [ 'timeRestriction' => ['showitem' => 'starttime, endtime'], 'language' => ['showitem' => 'sys_language_uid, l10n_parent'], ], - 'columns' => [ + 'columns' => [ - 'sys_language_uid' => [ - 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language', - 'config' => [ - 'type' => 'language', - ], - ], - 'l10n_parent' => [ - 'displayCond' => 'FIELD:sys_language_uid:>:0', - 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent', - 'config' => [ - 'type' => 'select', - 'renderType' => 'selectSingle', - 'items' => [ - ['label' => '', 'value' => 0], - ], - 'foreign_table' => 'tx_styleguide_ctrl_common', - 'foreign_table_where' => 'AND {#tx_styleguide_ctrl_common}.{#pid}=###CURRENT_PID### AND {#tx_styleguide_ctrl_common}.{#sys_language_uid} IN (-1,0)', - 'default' => 0, - ], - ], - 'l10n_diffsource' => [ - 'config' => [ - 'type' => 'passthrough', - 'default' => '', - ], - ], - 'hidden' => [ - 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled', - 'config' => [ - 'type' => 'check', - 'renderType' => 'checkboxToggle', - 'items' => [ - [ - 'label' => '', - 'invertStateDisplay' => true, - ], - ], - ], - ], - 'starttime' => [ - 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.starttime', - 'config' => [ - 'type' => 'datetime', - 'eval' => 'int', - 'default' => 0, - 'behaviour' => [ - 'allowLanguageSynchronization' => true, - ], - ], - ], - 'endtime' => [ - 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.endtime', - 'config' => [ - 'type' => 'datetime', - 'eval' => 'int', - 'default' => 0, - 'range' => [ - 'upper' => mktime(0, 0, 0, 1, 1, 2106), - ], - 'behaviour' => [ - 'allowLanguageSynchronization' => true, - ], - ], - ], - 'title' => [ - 'label' => 'LLL:EXT:styleguide/Resources/Private/Language/locallang.xlf:minimalTableTitleField', - 'config' => [ - 'type' => 'input', - 'width' => 200, - 'eval' => 'trim', - 'required' => true, - ], - ], - 'description' => [ - 'label' => 'description', - 'config' => [ - 'type' => 'text', - ], - ], - ], - 'types' => [ - '0' => [ - 'showitem' => ' + 'sys_language_uid' => [ + 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language', + 'config' => [ + 'type' => 'language', + ], + ], + 'l10n_parent' => [ + 'displayCond' => 'FIELD:sys_language_uid:>:0', + 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent', + 'config' => [ + 'type' => 'select', + 'renderType' => 'selectSingle', + 'items' => [ + ['label' => '', 'value' => 0], + ], + 'foreign_table' => 'tx_styleguide_ctrl_common', + 'foreign_table_where' => 'AND {#tx_styleguide_ctrl_common}.{#pid}=###CURRENT_PID### AND {#tx_styleguide_ctrl_common}.{#sys_language_uid} IN (-1,0)', + 'default' => 0, + ], + ], + 'l10n_diffsource' => [ + 'config' => [ + 'type' => 'passthrough', + 'default' => '', + ], + ], + 'hidden' => [ + 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled', + 'config' => [ + 'type' => 'check', + 'renderType' => 'checkboxToggle', + 'items' => [ + [ + 'label' => '', + 'invertStateDisplay' => true, + ], + ], + ], + ], + 'starttime' => [ + 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.starttime', + 'config' => [ + 'type' => 'datetime', + 'eval' => 'int', + 'default' => 0, + 'behaviour' => [ + 'allowLanguageSynchronization' => true, + ], + ], + ], + 'endtime' => [ + 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.endtime', + 'config' => [ + 'type' => 'datetime', + 'eval' => 'int', + 'default' => 0, + 'range' => [ + 'upper' => mktime(0, 0, 0, 1, 1, 2106), + ], + 'behaviour' => [ + 'allowLanguageSynchronization' => true, + ], + ], + ], + 'title' => [ + 'label' => 'LLL:EXT:styleguide/Resources/Private/Language/locallang.xlf:minimalTableTitleField', + 'config' => [ + 'type' => 'input', + 'width' => 200, + 'eval' => 'trim', + 'required' => true, + ], + ], + 'description' => [ + 'label' => 'description', + 'config' => [ + 'type' => 'text', + ], + ], + ], + 'types' => [ + '0' => [ + 'showitem' => ' title, description, --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language, --palette--;;language, @@ -124,6 +124,6 @@ return [ hidden,--palette--;;timeRestriction, --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended, ', - ], - ], + ], + ], ]; diff --git a/typo3/sysext/styleguide/Configuration/TCA/tx_styleguide_ctrl_minimal.php b/typo3/sysext/styleguide/Configuration/TCA/tx_styleguide_ctrl_minimal.php index 47121075189e..911ca09fec20 100644 --- a/typo3/sysext/styleguide/Configuration/TCA/tx_styleguide_ctrl_minimal.php +++ b/typo3/sysext/styleguide/Configuration/TCA/tx_styleguide_ctrl_minimal.php @@ -1,25 +1,25 @@ <?php return [ - 'ctrl' => [ - 'title' => 'LLL:EXT:styleguide/Resources/Private/Language/locallang.xlf:minimalTableTitle', - 'label' => 'title', - 'iconfile' => 'EXT:styleguide/Resources/Public/Icons/tx_styleguide.svg', - 'security' => [ - 'ignorePageTypeRestriction' => true, - ], - ], - 'columns' => [ - 'title' => [ - 'label' => 'LLL:EXT:styleguide/Resources/Private/Language/locallang.xlf:minimalTableTitleField', - 'config' => [ - 'type' => 'input', - ], - ], - ], - 'types' => [ - '0' => [ - 'showitem' => 'title', - ], - ], + 'ctrl' => [ + 'title' => 'LLL:EXT:styleguide/Resources/Private/Language/locallang.xlf:minimalTableTitle', + 'label' => 'title', + 'iconfile' => 'EXT:styleguide/Resources/Public/Icons/tx_styleguide.svg', + 'security' => [ + 'ignorePageTypeRestriction' => true, + ], + ], + 'columns' => [ + 'title' => [ + 'label' => 'LLL:EXT:styleguide/Resources/Private/Language/locallang.xlf:minimalTableTitleField', + 'config' => [ + 'type' => 'input', + ], + ], + ], + 'types' => [ + '0' => [ + 'showitem' => 'title', + ], + ], ]; diff --git a/typo3/sysext/styleguide/Configuration/TCA/tx_styleguide_valuesdefault.php b/typo3/sysext/styleguide/Configuration/TCA/tx_styleguide_valuesdefault.php index ed1900b487ef..83b50dd6fe72 100644 --- a/typo3/sysext/styleguide/Configuration/TCA/tx_styleguide_valuesdefault.php +++ b/typo3/sysext/styleguide/Configuration/TCA/tx_styleguide_valuesdefault.php @@ -194,7 +194,7 @@ return [ ], ], - // @todo add default value examples for type=none + // @todo add default value examples for type=none 'select_1' => [ 'label' => 'select_1 default=2, renderType=selectSingle, three items, second pre-selected', diff --git a/typo3/sysext/styleguide/ext_tables.php b/typo3/sysext/styleguide/ext_tables.php index d178cc4bfa1a..8579fdec4ec0 100644 --- a/typo3/sysext/styleguide/ext_tables.php +++ b/typo3/sysext/styleguide/ext_tables.php @@ -5,13 +5,13 @@ defined('TYPO3') or die(); // Register some custom permission options shown in BE group access lists $GLOBALS['TYPO3_CONF_VARS']['BE']['customPermOptions']['tx_styleguide_custom'] = [ 'header' => 'Custom styleguide permissions', - 'items' => [ - 'key1' => [ - 'Option 1', - // Icon has been registered above - 'tcarecords-tx_styleguide_forms-default', - 'Description 1', - ], + 'items' => [ + 'key1' => [ + 'Option 1', + // Icon has been registered above + 'tcarecords-tx_styleguide_forms-default', + 'Description 1', + ], 'key2' => [ 'Option 2', ], -- GitLab