diff --git a/Build/php-cs-fixer/config.php b/Build/php-cs-fixer/config.php index c6d8851620c24a9e5e386690155017dd0b625828..1d62eed86bc2696ba3f153df2ce559cdf32a0941 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 4bc99089898b5b6fd751dc133ada6b89b3bd9a2b..bb50b5c159531704c3e51de82e436f57ec29653f 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 f8d7e1f908a91866a3ac8f9e085019c93893ca61..363dd8fc11ceae45f9b33f8c92fffca3e5f6345c 100644 --- a/typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php +++ b/typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php @@ -194,7 +194,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 f19ece81065dbd3c48257eda7238c288b07e58a9..5cba3d79fdeef2562d393d7cee976a3433b8c7e6 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 a5187b1cf9a77be416fd8543e4364deb2f575e51..cbe978a36153950a4d8f84296560e533ff2a77e8 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 609b717c79c97b9bc60fd3b4ac6a397db89b2c2b..3ffe47c91f6d04a2329ef03573206ed3e485d579 100644 --- a/typo3/sysext/backend/Classes/Form/Element/SelectSingleBoxElement.php +++ b/typo3/sysext/backend/Classes/Form/Element/SelectSingleBoxElement.php @@ -213,7 +213,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 9313883eb2e5c4e56a8c712d32edeedd79105110..aa76267e5e2d9185e54373121e831357778b4518 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 1596a20c1a863b5c9bf45503ca89def3c1cfbaac..604791577b86733cf2ea0cbc876822af1d7c3ac0 100644 --- a/typo3/sysext/backend/Classes/Form/InlineStackProcessor.php +++ b/typo3/sysext/backend/Classes/Form/InlineStackProcessor.php @@ -280,7 +280,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 68f934539b9dc6f68d5b8110b1e192c3b7353454..d1fb5ceff726929675a859b3fdbcf53f92b4b118 100644 --- a/typo3/sysext/backend/Classes/RecordList/DatabaseRecordList.php +++ b/typo3/sysext/backend/Classes/RecordList/DatabaseRecordList.php @@ -1373,13 +1373,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'); } @@ -1525,9 +1525,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', Icon::SIZE_SMALL)->render() . '</a>'; @@ -1978,9 +1978,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 db7dc94603c751f4ff206f5f3d072b8e21a1b94b..69de666ec79fe0519fd0945f9f2c2f724b8c0a62 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 bb52f55be59093d4d8206ba7b3337fa1df861f0a..78566d5cb1ab0c070b2fb57c4fa57ba80b7fea43 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 80958ab21a592761c32cae3e69ad9be6d2d643d2..78357e4f589a44e8166062634af22431b1836c66 100644 --- a/typo3/sysext/backend/Tests/Functional/Controller/Page/TreeControllerTest.php +++ b/typo3/sysext/backend/Tests/Functional/Controller/Page/TreeControllerTest.php @@ -283,13 +283,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', @@ -305,9 +305,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 81dc893cafa45ae818c44b0f488b9adc3014d8ea..b982655ce3d99cd0cc3b5097aa35d49325520622 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 d1b916f8f3f21d3c0ad8c5cb88d4cec438ae7df0..0975e70027cdd5ff68ca0ce2b0a53df7d65501f1 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 c3cf0b0470b3a0ce497a1f720d4f3cf49b581558..8fad85d9af34af5344813a7f5d1c7c51b604e78d 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 @@ -112,7 +112,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 ff186111ce70c6b0ad48ff9c609e922150e8e5cd..171e8b494db942940a38bed19bbb5a6247fe40fd 100644 --- a/typo3/sysext/backend/Tests/Unit/Controller/Wizard/SuggestWizardControllerTest.php +++ b/typo3/sysext/backend/Tests/Unit/Controller/Wizard/SuggestWizardControllerTest.php @@ -124,11 +124,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 d2110642881edce21a549ea7eb25f2110405ebaf..ce22d19e0484e414d86ea232013ece76974acc5b 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/Element/InputHiddenElementTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/Element/InputHiddenElementTest.php @@ -34,7 +34,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 3a5f5d8ff7240358b391e5f7bec65164c75bc5ca..944edbd2a8be297e5c8ac93635147cf8538ba4fb 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/Element/JsonElementTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/Element/JsonElementTest.php @@ -40,7 +40,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 81a6a20361287c83c6c7e93d4783fdea0bd47326..5fc3c396f09522d5c00d19386deccdc6605df268 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 bb7d6b9ae97c2ab28e0aeb43f56960cf6a22c645..8c45ef8bbccda185d223b90e283a3487610df073 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 0f5efc58a9c2a1de40bb09bf8eeb06b42384cd8c..c0e78f874163e8c89d638e9ea2a34a1b2f47175b 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 8216e2199fba1de2f0ff933738c4177517a2bc2c..7f95a6b86d1ae07f8b1969084851386156506b43 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 cc56edddbf5bf908143a2b9e8336a8e5f1846e7c..054606d5dd907bf6e364333f3e316ee49c5cc88c 100644 --- a/typo3/sysext/core/Classes/Authentication/AbstractUserAuthentication.php +++ b/typo3/sysext/core/Classes/Authentication/AbstractUserAuthentication.php @@ -540,7 +540,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; @@ -553,8 +553,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 60613b87a278d9af6fedf118a338620dd53b932e..7e491fb1503aecb0c25975561669c99932a6aace 100644 --- a/typo3/sysext/core/Classes/DataHandling/DataHandler.php +++ b/typo3/sysext/core/Classes/DataHandling/DataHandler.php @@ -4235,7 +4235,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 @@ -4249,7 +4249,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 @@ -8531,15 +8531,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 e5faca72478a988d46c3640c183fba26dd19634f..eb7dfdb3e4d98322f8ddc71c77431d523b1742be 100644 --- a/typo3/sysext/core/Classes/DataHandling/Localization/DataMapProcessor.php +++ b/typo3/sysext/core/Classes/DataHandling/Localization/DataMapProcessor.php @@ -1031,7 +1031,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/ConnectionPool.php b/typo3/sysext/core/Classes/Database/ConnectionPool.php index 6c7567e2d779ab84c310b3da84620d25c01f3a97..f96dd37319f353520c8441b3d33743515c200575 100644 --- a/typo3/sysext/core/Classes/Database/ConnectionPool.php +++ b/typo3/sysext/core/Classes/Database/ConnectionPool.php @@ -87,8 +87,8 @@ class ConnectionPool 'pdo_sqlite' => PDOSqliteDriver::class, 'pdo_pgsql' => PDOPgSqlDriver::class, // TODO: not supported yet, need to be checked later -// 'pdo_oci' => PDOOCIDriver::class, -// 'drizzle_pdo_mysql' => DrizzlePDOMySQLDriver::class, + // 'pdo_oci' => PDOOCIDriver::class, + // 'drizzle_pdo_mysql' => DrizzlePDOMySQLDriver::class, ]; /** diff --git a/typo3/sysext/core/Classes/Html/SimpleParser.php b/typo3/sysext/core/Classes/Html/SimpleParser.php index 7c9528cfa2117fb4e59b2cc08dd7a6b79f121001..b2bab6b1d950beadb09c673fc883338a3d20aa70 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 9ac39b3bca5d2a204d97f5fcb05cb47ff1d5acb7..889b484a297c5f514fcae36d194494c23744e87b 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 36293f392cfd18a543785b333beb8061c798e7a6..838280c67dbcf366886f1367dfbb8443edabec31 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 040c2ac2d63f5b280ea8aa8643d97b438c09b159..054680cca5707e578d981b1b259c2d11cd0bc19c 100644 --- a/typo3/sysext/core/Classes/Routing/Aspect/PersistedPatternMapper.php +++ b/typo3/sysext/core/Classes/Routing/Aspect/PersistedPatternMapper.php @@ -285,7 +285,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 446f2b4890f66b14cfb5199a123b9df0cfb74ab0..a72a459cb18afc92e7b7a95807bce0389ac37ab1 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 27185337b045d44d8f1e3b65d015edfaadbe31b4..f903a631761404d6a695945503a70d90b3a07d61 100644 --- a/typo3/sysext/core/Classes/Utility/GeneralUtility.php +++ b/typo3/sysext/core/Classes/Utility/GeneralUtility.php @@ -1334,10 +1334,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 ee86e8cb8e52e1934e86d76a946c858f96a48282..1522ff75a10d9ed1b9f1e372811dbe987e8cf79b 100644 --- a/typo3/sysext/core/Tests/Functional/DataHandling/DataHandler/HookTest.php +++ b/typo3/sysext/core/Tests/Functional/DataHandling/DataHandler/HookTest.php @@ -89,8 +89,8 @@ final class HookTest extends AbstractDataHandlerActionTestCase $this->recordIds['newContentId'] = $newTableIds[self::TABLE_Content][0]; $this->assertHookInvocationsCount([ - 'processDatamap_beforeStart', - 'processDatamap_afterAllOperations', + 'processDatamap_beforeStart', + 'processDatamap_afterAllOperations', ], 1); $this->assertHookInvocationsPayload([ diff --git a/typo3/sysext/core/Tests/Functional/DataHandling/Slug/SlugHelperTest.php b/typo3/sysext/core/Tests/Functional/DataHandling/Slug/SlugHelperTest.php index 414ca92fe5a50d65fecec15ff25c2fd6175debd2..6d9581b7b01efff241c53d6b6ff2ef4652809d42 100644 --- a/typo3/sysext/core/Tests/Functional/DataHandling/Slug/SlugHelperTest.php +++ b/typo3/sysext/core/Tests/Functional/DataHandling/Slug/SlugHelperTest.php @@ -125,13 +125,13 @@ final class SlugHelperTest extends AbstractDataHandlerActionTestCase ], ], '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 9cd56e44cb906fdcfc7a49c01f19b83d7b79a633..7fb96a1df39b17888e282828a2b7c664c5fd2b2a 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/FunctionalDeprecated/TypoScript/Parser/TypoScriptParserTest.php b/typo3/sysext/core/Tests/FunctionalDeprecated/TypoScript/Parser/TypoScriptParserTest.php index 4d9208f8e574eec35cadce84b669a2fd788f97ee..27a47a449be217c177e3aec8b60aa0d12a7f5df4 100644 --- a/typo3/sysext/core/Tests/FunctionalDeprecated/TypoScript/Parser/TypoScriptParserTest.php +++ b/typo3/sysext/core/Tests/FunctionalDeprecated/TypoScript/Parser/TypoScriptParserTest.php @@ -37,8 +37,8 @@ final class TypoScriptParserTest extends FunctionalTestCase '[GLOBAL]', 'RTE.default.proc.entryHTMLparser_db = 1', 'RTE.default.proc.entryHTMLparser_db {', - 'tags {', - '}', + 'tags {', + '}', '}', 'RTE.default.FE < RTE.default', diff --git a/typo3/sysext/core/Tests/Unit/ExpressionLanguage/ResolverTest.php b/typo3/sysext/core/Tests/Unit/ExpressionLanguage/ResolverTest.php index 5811d3a10323229bbeadd97066a5fe0d677967d2..abe5c89123b3141c4098084207c50d623ef2243c 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 b214406ee238ab78c4724d13339ff4dee305afe0..47c035f4effb8f2ab3ecd11416bea0ee74970dc5 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 6a13b83ccdd6817c45a3f9bf0251719f94b4a91b..de1f3963d0faad14057dd7c278e74c8556ff6628 100644 --- a/typo3/sysext/core/Tests/Unit/Mail/MailMessageTest.php +++ b/typo3/sysext/core/Tests/Unit/Mail/MailMessageTest.php @@ -304,11 +304,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/Migrations/TcaMigrationTest.php b/typo3/sysext/core/Tests/Unit/Migrations/TcaMigrationTest.php index baac3ee66e0db50bc3d015fc9649df8f38f7880c..54b8f3c92aed8a7bbbde31d7b36ddc38ea231c74 100644 --- a/typo3/sysext/core/Tests/Unit/Migrations/TcaMigrationTest.php +++ b/typo3/sysext/core/Tests/Unit/Migrations/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/Resource/FileTest.php b/typo3/sysext/core/Tests/Unit/Resource/FileTest.php index 9e27a77ca7805a1a355232867e2e3e055aa51baf..400c58a74eb095ab04f6e822ae6ddc17396142c9 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 7643ecaa5fa58ebd93274d8bf9a2046634c7d94a..65fc5e12fd63e1cf7cc5925b432b357393741a31 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 4967ecda7fcae3363fdbc1110b29928c03dc4316..9e7dd52824697a209d3bdf84e751090818e11e7a 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/core/Tests/UnitDeprecated/Configuration/Parser/PageTsConfigParserTest.php b/typo3/sysext/core/Tests/UnitDeprecated/Configuration/Parser/PageTsConfigParserTest.php index 2efedd678bcca38e66d879bf3074f1d9fa8e8d66..3993a0e2cac5644477073d7cd9f96334f371d6b4 100644 --- a/typo3/sysext/core/Tests/UnitDeprecated/Configuration/Parser/PageTsConfigParserTest.php +++ b/typo3/sysext/core/Tests/UnitDeprecated/Configuration/Parser/PageTsConfigParserTest.php @@ -69,11 +69,11 @@ final class PageTsConfigParserTest extends UnitTestCase $cache->set( '1d0a3029a36cc56a82bfdb0642fcd912', [ - 0 => [ - 'sections' => [$cachedSection], - 'TSconfig' => ['mod' => ['web_layout' => 'disabled']], - ], - 1 => 'fb3c41ea55f42a993fc143a54e09bbdd', ] + 0 => [ + 'sections' => [$cachedSection], + 'TSconfig' => ['mod' => ['web_layout' => 'disabled']], + ], + 1 => 'fb3c41ea55f42a993fc143a54e09bbdd', ] ); $subject = new PageTsConfigParser( $typoScriptParserMock, diff --git a/typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbBackend.php b/typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbBackend.php index 5552202eb7f11218fb13b14dd97db5980376e37b..2241f9104fbb6464ae60652a49258fed03a7c98c 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 72d793cc8451d34d04b3711d61c319736e896bf6..ca7cfc38dd4d36c834b13390086bdb888f4413c1 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 b50c2ff607a87c65c94841bfdbd102fd19f11b77..ed5c982e8153097645479ba58f28edb1acda4e43 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 2dcca3e299a9fd3caab56f4d70856267da9dad78..4252bc1a07ea5a6e93c39f3d24fbc8e1df2a4665 100644 --- a/typo3/sysext/extbase/Tests/Functional/Utility/LocalizationUtilityTest.php +++ b/typo3/sysext/extbase/Tests/Functional/Utility/LocalizationUtilityTest.php @@ -156,20 +156,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 77b8692b7123c3c9cc21cb2b604e70887c2bd624..59a7a34bb5e81fb0bb615b43be1264d511f6fb0e 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 f1837b32a542f04b1606fd800b4bb6bab6b32aaf..e426c22c6bcca9b36855d1b24be8495e90c88e5d 100644 --- a/typo3/sysext/fluid/Classes/ViewHelpers/FormViewHelper.php +++ b/typo3/sysext/fluid/Classes/ViewHelpers/FormViewHelper.php @@ -468,8 +468,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 a8c4ba725184ec637e2ae219124777b9643638c6..765377b5b87e3fb1e9612f7e2ce8fcbff091b098 100644 --- a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/FormViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/FormViewHelperTest.php @@ -63,7 +63,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 cba3afdf5cd85bf855dcc490f566f7759b422911..7586ecae362432969fa66658ac3ec07489dcb086 100644 --- a/typo3/sysext/form/Classes/EventListener/DataStructureIdentifierListener.php +++ b/typo3/sysext/form/Classes/EventListener/DataStructureIdentifierListener.php @@ -142,11 +142,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 = []; @@ -159,10 +159,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 b7b0b255b0915307197b12c358d1dd5b027fcc11..69657474bb43b52340d081db5cf254e517ec437b 100644 --- a/typo3/sysext/form/Tests/Functional/RequestHandling/RequestHandlingTest.php +++ b/typo3/sysext/form/Tests/Functional/RequestHandling/RequestHandlingTest.php @@ -226,9 +226,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', + ]; } /** @@ -362,8 +362,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 f089561a1b55e366a36bdfcb709f85d94b5c2215..4a8ad64812428b18d521a8a393153cc319e89c91 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 f16f962f79ca220d0c41a724a2e9216f7a97ad78..9f2360b282e90dd92b6c68d35d9be41ead512051 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 0839745f8bd605f19545689ba7c0fccc64e85e26..456503e2d26d7fa5e7a41bc509c96959d22dd7ad 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 ccee8a61fd886707bd032406009c9d767446f090..e09640db3227b6cf18b2b550a9b43d5b9607a2a9 100644 --- a/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php +++ b/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php @@ -4391,7 +4391,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 03a43279731153c515f3d6cb962d6780a194a81d..8510254d6f2c2d7a8096146d370af136d7dd3d2b 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 3d2b91b3b63415600cd9b9dcd7afb8ba37a8e313..3c9249932bc11e71e908a98f7f80343525040b56 100644 --- a/typo3/sysext/frontend/Classes/Middleware/PageArgumentValidator.php +++ b/typo3/sysext/frontend/Classes/Middleware/PageArgumentValidator.php @@ -99,7 +99,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($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 2b50224ecd57b00edb414c14b9f4d31e801de7bf..2186a024d39a8de8af78f5510f384dd4f104bb99 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 938e7acadaa7409bcbf49e14e4a157a5fe8ed514..f14b55371590b4a625a1bcd96cc8bea7db4d9b4e 100644 --- a/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php +++ b/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php @@ -1924,8 +1924,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 0c1f75771bb032815e789f59edbfdae6571b4198..36f9c706b0c3769c84b946f00175a091aa32b11f 100644 --- a/typo3/sysext/frontend/Tests/Unit/DataProcessing/FlexFormProcessorTest.php +++ b/typo3/sysext/frontend/Tests/Unit/DataProcessing/FlexFormProcessorTest.php @@ -44,8 +44,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 0f886aef2f75d7dd8c1bffbffa22ed4517001b6d..72c8238b872c969d0ce9abf7fc620213fbd28e32 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 9a17869e81e3a46e8209a46b5057e88c5ed2293c..f29dd7e68841798f18f9ca20f48f91934f0909fe 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 785e1fc23ff397b28f4ba7c31148191a138c9edc..8e7b4be20495cc257bc2a4b4ab19038b1c322565 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 c059b9ed1292d41de594a625f1db3280ed75fe3d..eeeeed90c45ba57b277a9c218573f48ebb305938 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 394714bf9530201829bb9c9af5c3a0665dae3084..de2046372b1221fe8db2a7b4642a2462d8933dd8 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 ce75b931dabd8c7a2751d135f63bd3e42b6a9dc5..6ad7dffe3ff45d2cf1704966745330be6afcc29a 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 a4cf45e12d821fc48834657cdf608cbec577dd98..c0c091c39c8dfa1a35c75dfb9c268eb1308d2c8e 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 d0a50f5bc28fb5d3794e83364012abf567bc4b94..7bf014bdb0d8af25e2bb13ad25972c19f9fcd201 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>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>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>Is default storage? (is_default)</td><td><del>Yes</del><ins>No</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>Type (CType)</td><td><del>Text & Images</del><ins>Text</ins></td></tr> <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> </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>Type (CType)</td><td><del>Text & Images</del><ins>Text</ins></td></tr>' . "\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" - . '</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>Type (CType)</td><td><del>Text & Images</del><ins>Text</ins></td></tr>' . "\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" + . '</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 dda9a0fd7e390c29c5dc3cf0581e8d6c5f3cb087..170806f2ef76f4ac8bea895fd760c3ab13b8cb26 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>Type (CType)</td><td><del>Text & Images</del><ins>Text</ins></td></tr> <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> </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>Type (CType)</td><td><del>Text & Images</del><ins>Text</ins></td></tr> <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> </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 079090bbde7700905fe2738c6c53aa3243cd069b..d08024bb6320e5b36044ec090a86badb2c39ecdc 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 676dd28224da0cd2619456e18c34fef75d17be43..f2efb951b8e2806521f5a1f7fcde1c8e8e944a0b 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 4f0e7e1a9123694edd0b0024f371efe18d4764ca..c5b1bfad5df3db7e14c1a4304e65d322d4afb383 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 fc4aa2f80c3a5ba23517f3e2d07a8d62394219a7..531cc81b93d1ee2cdfd2afa9308108beb30112e0 100644 --- a/typo3/sysext/indexed_search/Classes/Domain/Repository/IndexSearchRepository.php +++ b/typo3/sysext/indexed_search/Classes/Domain/Repository/IndexSearchRepository.php @@ -1076,9 +1076,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 6d44106e2c67c74e798ce0546ed2025a6190b3d8..e672876f41f9a9797a7516b8697266e5adb23712 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 e4e8388874cb5a292c84a69c6ef366b796b6c3ee..fc17494f5ff282f323f4b45363988b826549f724 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/Configuration/ExtensionScanner/Php/ClassNameMatcher.php b/typo3/sysext/install/Configuration/ExtensionScanner/Php/ClassNameMatcher.php index 495afa5758cca14a0840d73482cc4319594eabea..ec63974e4edfd589d7b368dc1f2f0deeeff3ee15 100644 --- a/typo3/sysext/install/Configuration/ExtensionScanner/Php/ClassNameMatcher.php +++ b/typo3/sysext/install/Configuration/ExtensionScanner/Php/ClassNameMatcher.php @@ -1679,7 +1679,7 @@ return [ 'restFiles' => [ 'Deprecation-94313-ClassAbstractService.rst', 'Breaking-96107-DeprecatedFunctionalityRemoved.rst', - ], + ], ], 'TYPO3\CMS\Extbase\Mvc\Web\ReferringRequest' => [ 'restFiles' => [ 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 1f04824282a827a160d7470c38d339520f0c3a9c..9f0f25101a977c3050d6dd9372d8ff55d730b840 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 2fb9aadf76807e1b521edbb94b80abd267dafd09..dad1a5012a187a0da9c866b8ae22d7eed6eb6627 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 d938acdc323b006413ac5b34551064697359b3df..11a9f5e70f436df7a8130904f136d1024f8aacc3 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 aac924429d21b0c2aa036dc898b1b2d86f8fb93f..6f96a75057d2f6fb91bca3ff666076746520e6a5 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 935c5726318679f9505b46bc27dadf44ad54c130..5444e65826a8644636206a5cd387bcc6e1086ad1 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 ec9e9e18d3a8273c578c3275000329e8b3f6d773..d384c1e622c7946aecb178601aef1d56340b5075 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 a4fd1893edac749b4ab71a3f3aa6dfb1929d94ac..a09815bc7cd58f2ffa38da84fee1b0aa1328db95 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 74af0acbf4c4ae63dc18a37651ca9d850b8c66c0..97062abfeb1ebfc5f35bb4e1faac1e13adc50d5c 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 7f42517456c8d023d5184250161ba7c714bb3392..77180b2258447d4a24b0203dfc2273a90f1dd631 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 7400070e9950ede2953a184806cab49a3a209ad0..f1077840c46e6707f8123cb816c374fcd7a41e78 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 2c529e05e0fed6c7fc281dde40ac1423d206f4ac..9f224f98ebccbc8afa30fe0deb221a285f208a73 100644 --- a/typo3/sysext/linkvalidator/Classes/Controller/LinkValidatorController.php +++ b/typo3/sysext/linkvalidator/Classes/Controller/LinkValidatorController.php @@ -172,11 +172,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 e928bc6b18e080242d72ef21bd55299e30275162..7939ad78da25b77f91f6eb037548fbddbbaa65c1 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 3d0d5896ad423a89570619470dd8644b4c8af421..048cec02a9a83b380da85453ac7ecd67fa41e474 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 02ed7f305622f5f7b3aa6a1d34841588c6b35c86..7efe7983dba68d11dcbb84111d29263b6b8f316c 100644 --- a/typo3/sysext/lowlevel/Classes/Command/MissingRelationsCommand.php +++ b/typo3/sysext/lowlevel/Classes/Command/MissingRelationsCommand.php @@ -279,7 +279,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 e364c8df68d5b3e0e2a4aeaf82c51eb14a35a8d3..3d4b71adc9b4e2fc17e509c8575fc4167a67ab0e 100644 --- a/typo3/sysext/lowlevel/Classes/Controller/DatabaseIntegrityController.php +++ b/typo3/sysext/lowlevel/Classes/Controller/DatabaseIntegrityController.php @@ -850,15 +850,15 @@ class DatabaseIntegrityController } else { $out .= '<div class="btn-group" role="group">'; $out .= '<a class="btn btn-default" href="' . htmlspecialchars((string)$uriBuilder->buildUriFromRoute('tce_db', [ - 'cmd' => [ - $table => [ - $row['uid'] => [ - 'undelete' => 1, - ], + 'cmd' => [ + $table => [ + $row['uid'] => [ + 'undelete' => 1, ], ], - 'redirect' => (string)$uriBuilder->buildUriFromRoute('system_dbint'), - ])) . '" title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_t3lib_fullsearch.xlf:undelete_only')) . '">'; + ], + 'redirect' => (string)$uriBuilder->buildUriFromRoute('system_dbint'), + ])) . '" title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_t3lib_fullsearch.xlf:undelete_only')) . '">'; $out .= $this->iconFactory->getIcon('actions-edit-restore', Icon::SIZE_SMALL)->render() . '</a>'; $out .= '</div>'; } diff --git a/typo3/sysext/redirects/Classes/Controller/ManagementController.php b/typo3/sysext/redirects/Classes/Controller/ManagementController.php index fa492c0a1086aed2f7fa87dab0e38f6dbc0c50d8..8794f3983586b9bb311a4a59cda3df9ea154ef4a 100644 --- a/typo3/sysext/redirects/Classes/Controller/ManagementController.php +++ b/typo3/sysext/redirects/Classes/Controller/ManagementController.php @@ -158,9 +158,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/seo/Classes/Canonical/CanonicalGenerator.php b/typo3/sysext/seo/Classes/Canonical/CanonicalGenerator.php index f1cd7ce5d39dfabd7c07dd6adf09ed823b445ae5..6de1412d3c6d1c6f066dc731da9d4524d323d898 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; }