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 dba23008415d93ffa0f48d9c90f2be1020e178f8..bd581e1cc6c57eece4f11309200effef69017d71 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 b898fc109320a0342c4a35203ec63d11b645d2e2..44f21ef9c8b45618e3d2ec2c816385d4153bdefd 100644 --- a/typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php +++ b/typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php @@ -213,7 +213,7 @@ class ElementInformationController // Check if there is a FileRenderer if ($fileRenderer !== null) { $preview['fileRenderer'] = $fileRenderer->render($this->fileObject, $width, $height); - // else check if we can create an Image preview + // else check if we can create an Image preview } elseif ($this->fileObject->isImage()) { $preview['fileObject'] = $this->fileObject; $preview['width'] = $width; diff --git a/typo3/sysext/backend/Classes/Controller/LoginController.php b/typo3/sysext/backend/Classes/Controller/LoginController.php index 7abd563c14cc777e1a94d268e1d582325c1c8df4..dd33fe2e9289a021193bdd055ef0852bbdccf967 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 e1f25e4678c0efa3927ec88a5c4a684daa6143aa..58bf8acf19ccf348399b09c8aa4fc60ee3e7c0b8 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 b12d01d71bf166c4a4277076e89ff22978f4f907..7a3929aa1c659cbdbfc07e8592a4fb7d43d838a5 100644 --- a/typo3/sysext/backend/Classes/Form/Element/SelectSingleBoxElement.php +++ b/typo3/sysext/backend/Classes/Form/Element/SelectSingleBoxElement.php @@ -211,7 +211,7 @@ class SelectSingleBoxElement extends AbstractFormElement $attributes['value'] = $value; $html = [ '<option ' . GeneralUtility::implodeAttributes($attributes, true, true) . '>', - htmlspecialchars($this->appendValueToLabelInDebugMode($label, $value), ENT_COMPAT, 'UTF-8', false), + htmlspecialchars($this->appendValueToLabelInDebugMode($label, $value), ENT_COMPAT, 'UTF-8', false), '</option>', ]; diff --git a/typo3/sysext/backend/Classes/Form/FieldWizard/SelectIcons.php b/typo3/sysext/backend/Classes/Form/FieldWizard/SelectIcons.php index 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 1bdd6cfa4a395ee95ecb8b7d8cbf2613f8871694..9865cf6d5e32922b644a63f1da91168e1d82fe25 100644 --- a/typo3/sysext/backend/Classes/Form/InlineStackProcessor.php +++ b/typo3/sysext/backend/Classes/Form/InlineStackProcessor.php @@ -282,7 +282,7 @@ class InlineStackProcessor $parts[] = implode('][', $levelData['flexform']); } $name = '[' . implode('][', $parts) . ']'; - // Use in object id attributes: + // Use in object id attributes: } else { $name = implode('-', $parts); diff --git a/typo3/sysext/backend/Classes/RecordList/DatabaseRecordList.php b/typo3/sysext/backend/Classes/RecordList/DatabaseRecordList.php index 7d3dc670fe81fae5242acbc49d6015ad99753809..78e2ba97ad01c32654908c406e85f2ad669fe949 100644 --- a/typo3/sysext/backend/Classes/RecordList/DatabaseRecordList.php +++ b/typo3/sysext/backend/Classes/RecordList/DatabaseRecordList.php @@ -1379,13 +1379,13 @@ class DatabaseRecordList } $view = $this->backendViewFactory->create($this->request); return $view->assignMultiple([ - 'currentUrl' => $this->listURL('', $table, 'pointer'), - 'currentPage' => $currentPage, - 'totalPages' => $totalPages, - 'firstElement' => ((($currentPage - 1) * $itemsPerPage) + 1), - 'lastElement' => $lastElementNumber, - 'colspan' => $paginationColumns, - ]) + 'currentUrl' => $this->listURL('', $table, 'pointer'), + 'currentPage' => $currentPage, + 'totalPages' => $totalPages, + 'firstElement' => ((($currentPage - 1) * $itemsPerPage) + 1), + 'lastElement' => $lastElementNumber, + 'colspan' => $paginationColumns, + ]) ->render('ListNavigation'); } @@ -1531,9 +1531,9 @@ class DatabaseRecordList if (\trim($userTsConfig['options.']['showHistory.'][$table] ?? $userTsConfig['options.']['showHistory'] ?? '1')) { if (!$isDeletePlaceHolder) { $moduleUrl = $this->uriBuilder->buildUriFromRoute('record_history', [ - 'element' => $table . ':' . $row['uid'], - 'returnUrl' => $this->listURL(), - ]) . '#latest'; + 'element' => $table . ':' . $row['uid'], + 'returnUrl' => $this->listURL(), + ]) . '#latest'; $historyAction = '<a class="btn btn-default" href="' . htmlspecialchars($moduleUrl) . '" title="' . htmlspecialchars($this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_mod_web_list.xlf:history')) . '">' . $this->iconFactory->getIcon('actions-document-history-open', IconSize::SMALL)->render() . '</a>'; @@ -1984,9 +1984,9 @@ class DatabaseRecordList $redirectUrl = (string)$this->uriBuilder->buildUriFromRoute( 'record_edit', [ - 'justLocalized' => $table . ':' . $row['uid'] . ':' . $lUid_OnPage, - 'returnUrl' => $this->listURL(), - ] + 'justLocalized' => $table . ':' . $row['uid'] . ':' . $lUid_OnPage, + 'returnUrl' => $this->listURL(), + ] ); $params = []; $params['redirect'] = $redirectUrl; diff --git a/typo3/sysext/backend/Classes/Tree/FileStorageTreeProvider.php b/typo3/sysext/backend/Classes/Tree/FileStorageTreeProvider.php index ab3265640433f6657c5e6af89ac6f978a7fc313f..d39348c950980fd63346ac3905cc8ae6799312e0 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 7cb93d4396103f921b066b3cc7ba5388a0fa9c70..c080f79ce2c28e313ec821561c99accb95e9baf6 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 5ff39df06b2ee926f76f63f08f83c0860e189a21..c2b99300c41c1b98f9f0fe43821618a542e6f635 100644 --- a/typo3/sysext/backend/Tests/Functional/Controller/Page/TreeControllerTest.php +++ b/typo3/sysext/backend/Tests/Functional/Controller/Page/TreeControllerTest.php @@ -281,13 +281,13 @@ final class TreeControllerTest extends FunctionalTestCase ], ], [ - 'uid' => 7000, - 'title' => 'Common Collection', - '_children' => [ - [ - 'uid' => 7100, - 'title' => 'Announcements & News', - '_children' => [ + 'uid' => 7000, + 'title' => 'Common Collection', + '_children' => [ + [ + 'uid' => 7100, + 'title' => 'Announcements & News', + '_children' => [ [ 'uid' => 7110, 'title' => 'Markets', @@ -303,9 +303,9 @@ final class TreeControllerTest extends FunctionalTestCase 'title' => 'Partners', '_children' => [], ], - ], - ], - ], + ], + ], + ], ], ]; self::assertEquals($expected, $actual); diff --git a/typo3/sysext/backend/Tests/Functional/Controller/ResetPasswordControllerTest.php b/typo3/sysext/backend/Tests/Functional/Controller/ResetPasswordControllerTest.php index 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 3cb28843876f86ddac0c16ee6f6b7c5722da2121..ed927c0a4872f29aa317981884740b4bb01079f7 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 d0fea8a45e5d9a83b97948ee686f61b4539a1597..3aff9cf64822a14579825093d6bd069a7bed67d7 100644 --- a/typo3/sysext/backend/Tests/Functional/Template/Components/Buttons/Action/ShortcutButtonTest.php +++ b/typo3/sysext/backend/Tests/Functional/Template/Components/Buttons/Action/ShortcutButtonTest.php @@ -110,7 +110,7 @@ final class ShortcutButtonTest extends FunctionalTestCase 'id' => 123, 'table' => 'some_table', 'GET' => [ - 'clipBoard' => 1, + 'clipBoard' => 1, ], ]), 'RecordListSingleTableCopyToClipboard', diff --git a/typo3/sysext/backend/Tests/Unit/Controller/Wizard/SuggestWizardControllerTest.php b/typo3/sysext/backend/Tests/Unit/Controller/Wizard/SuggestWizardControllerTest.php index 6729b710e0a0399d5b2bee3bd62fe9e99d5dd9e6..b5731be3b751fee03b0f4e92578e2781a7dae8ba 100644 --- a/typo3/sysext/backend/Tests/Unit/Controller/Wizard/SuggestWizardControllerTest.php +++ b/typo3/sysext/backend/Tests/Unit/Controller/Wizard/SuggestWizardControllerTest.php @@ -121,11 +121,11 @@ final class SuggestWizardControllerTest extends UnitTestCase public static function isTableHiddenIsProperlyRetrievedDataProvider(): array { return [ - 'notSetValue' => [false, ['ctrl' => ['hideTable' => null]]], - 'true' => [true, ['ctrl' => ['hideTable' => true]]], - 'false' => [false, ['ctrl' => ['hideTable' => false]]], - 'string with true' => [true, ['ctrl' => ['hideTable' => '1']]], - 'string with false' => [false, ['ctrl' => ['hideTable' => '0']]], + 'notSetValue' => [false, ['ctrl' => ['hideTable' => null]]], + 'true' => [true, ['ctrl' => ['hideTable' => true]]], + 'false' => [false, ['ctrl' => ['hideTable' => false]]], + 'string with true' => [true, ['ctrl' => ['hideTable' => '1']]], + 'string with false' => [false, ['ctrl' => ['hideTable' => '0']]], ]; } diff --git a/typo3/sysext/backend/Tests/Unit/Form/Element/InputHiddenElementTest.php b/typo3/sysext/backend/Tests/Unit/Form/Element/InputHiddenElementTest.php index 73f0c230ca07b52586412f1488e895a805b92a78..eb0b71ecbfab0de4f30f252cede49a03fbbcd676 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/Element/InputHiddenElementTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/Element/InputHiddenElementTest.php @@ -31,7 +31,7 @@ final class InputHiddenElementTest extends UnitTestCase public function renderReturnsElementsAsAdditionalHiddenFields(): void { $data = [ - 'parameterArray' => [ + 'parameterArray' => [ 'itemFormElName' => 'foo', 'itemFormElValue' => 'bar', ], diff --git a/typo3/sysext/backend/Tests/Unit/Form/Element/JsonElementTest.php b/typo3/sysext/backend/Tests/Unit/Form/Element/JsonElementTest.php index 3124606db1d7652fd54e369a8afb8a4b4f28073c..3ce4d2d64c570a739c3ff176177bd5b4b75c47c6 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/Element/JsonElementTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/Element/JsonElementTest.php @@ -46,7 +46,7 @@ final class JsonElementTest extends UnitTestCase public function renderReturnsJsonInStandardTextarea(): void { $data = [ - 'parameterArray' => [ + 'parameterArray' => [ 'itemFormElName' => 'config', 'itemFormElValue' => ['foo' => 'bar'], 'fieldConf' => [ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseRowInitializeNewTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseRowInitializeNewTest.php index 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 fe30ed458a4a40bb63a398599e792d998adcf6bd..913359f8468c55cbe0fe8eb0aaab892f11054ad7 100644 --- a/typo3/sysext/core/Classes/Authentication/AbstractUserAuthentication.php +++ b/typo3/sysext/core/Classes/Authentication/AbstractUserAuthentication.php @@ -511,7 +511,7 @@ abstract class AbstractUserAuthentication implements LoggerAwareInterface if ($ret < 100) { $authenticated = true; } - // $ret is between 100 and 199 which means "I'm not responsible, ask others" + // $ret is between 100 and 199 which means "I'm not responsible, ask others" } else { // $ret is < 0 $authenticated = false; @@ -524,8 +524,8 @@ abstract class AbstractUserAuthentication implements LoggerAwareInterface break; } } - // mimic user authentication to mitigate observable timing discrepancies - // @link https://cwe.mitre.org/data/definitions/208.html + // mimic user authentication to mitigate observable timing discrepancies + // @link https://cwe.mitre.org/data/definitions/208.html } elseif ($activeLogin) { $subType = 'authUser' . $this->loginType; foreach ($this->getAuthServices($subType, $loginData, $authenticatedUserFromSession, $request) as $serviceObj) { diff --git a/typo3/sysext/core/Classes/DataHandling/DataHandler.php b/typo3/sysext/core/Classes/DataHandling/DataHandler.php index b919b669c6d5d2806380c67ec755fccb626ac984..7fb109d46841ca6001ec3c44438621bc578b3dc4 100644 --- a/typo3/sysext/core/Classes/DataHandling/DataHandler.php +++ b/typo3/sysext/core/Classes/DataHandling/DataHandler.php @@ -4210,7 +4210,7 @@ class DataHandler implements LoggerAwareInterface } else { if (!MathUtility::canBeInterpretedAsInteger($realDestPid)) { $newId = $this->copyRecord($v['table'], $v['id'], -(int)($v['id'])); - // If the destination page id is a NEW string, keep it on the same page + // If the destination page id is a NEW string, keep it on the same page } elseif ($this->BE_USER->workspace > 0 && BackendUtility::isTableWorkspaceEnabled($v['table'])) { // A filled $workspaceOptions indicated that this call // has it's origin in previous versionizeRecord() processing @@ -4224,7 +4224,7 @@ class DataHandler implements LoggerAwareInterface $workspaceOptions['label'] ?? 'Auto-created for WS #' . $this->BE_USER->workspace, $workspaceOptions['delete'] ?? false ); - // Otherwise just use plain copyRecord() to create placeholders etc. + // Otherwise just use plain copyRecord() to create placeholders etc. } else { // If a record has been copied already during this request, // prevent superfluous duplication and use the existing copy @@ -8401,15 +8401,15 @@ class DataHandler implements LoggerAwareInterface default: $result = (string)$submittedValue === (string)$storedValue; } - // Null values are allowed, but currently there's a real (not NULL) value. - // Thus, ensure no NULL value was submitted and fallback to the regular behaviour. + // Null values are allowed, but currently there's a real (not NULL) value. + // Thus, ensure no NULL value was submitted and fallback to the regular behaviour. } elseif ($storedValue !== null) { $result = ( $submittedValue !== null && $this->isSubmittedValueEqualToStoredValue($submittedValue, $storedValue, $storedType, false) ); - // Null values are allowed, and currently there's a NULL value. - // Thus, check whether a NULL value was submitted. + // Null values are allowed, and currently there's a NULL value. + // Thus, check whether a NULL value was submitted. } else { $result = ($submittedValue === null); } diff --git a/typo3/sysext/core/Classes/DataHandling/Localization/DataMapProcessor.php b/typo3/sysext/core/Classes/DataHandling/Localization/DataMapProcessor.php index ae69110cece3ebbf8b32fa69a157d3af32956ea2..0d847894ce1c4c261eea9b92d456bfa0b0036962 100644 --- a/typo3/sysext/core/Classes/DataHandling/Localization/DataMapProcessor.php +++ b/typo3/sysext/core/Classes/DataHandling/Localization/DataMapProcessor.php @@ -1033,7 +1033,7 @@ class DataMapProcessor // implicit: use origin pointer if table cannot be translated if (!$isTranslatable) { $ancestorId = (int)$dependentElement[$fieldNames['origin']]; - // only consider element if it reflects the desired language + // only consider element if it reflects the desired language } elseif ((int)$dependentElement[$fieldNames['language']] === $desiredLanguage) { $ancestorId = $this->resolveAncestorId($fieldNames, $dependentElement); } else { diff --git a/typo3/sysext/core/Classes/Database/Schema/DefaultTcaSchema.php b/typo3/sysext/core/Classes/Database/Schema/DefaultTcaSchema.php index 1353b6cca3b01965e29736933dcfc166664ba2a5..948c0994dba5f4da5c1d5db88238b7c3611d2c39 100644 --- a/typo3/sysext/core/Classes/Database/Schema/DefaultTcaSchema.php +++ b/typo3/sysext/core/Classes/Database/Schema/DefaultTcaSchema.php @@ -1141,10 +1141,10 @@ class DefaultTcaSchema $this->quote($fieldName), Types::STRING, [ - 'notnull' => true, - 'default' => '', - 'length' => $dbFieldLength, - ] + 'notnull' => true, + 'default' => '', + 'length' => $dbFieldLength, + ] ); } else { // Final fallback creates a (nullable) text field. diff --git a/typo3/sysext/core/Classes/Html/SimpleParser.php b/typo3/sysext/core/Classes/Html/SimpleParser.php index 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 599aeb7eb69c09b5c15bb2f18ca0e1652c028cba..e37b46e207fe94439a7cea1e1f7ae8c09f592523 100644 --- a/typo3/sysext/core/Classes/Routing/Aspect/PersistedPatternMapper.php +++ b/typo3/sysext/core/Classes/Routing/Aspect/PersistedPatternMapper.php @@ -282,7 +282,7 @@ class PersistedPatternMapper implements PersistedMappableAspectInterface, Static $queryBuilder->expr()->eq('uid', $idParameter), $queryBuilder->expr()->eq($this->languageParentFieldName, $idParameter) ); - // otherwise - basically uid is not in pattern - restrict to languages and apply fallbacks + // otherwise - basically uid is not in pattern - restrict to languages and apply fallbacks } elseif ($languageAware) { $languageIds = $this->resolveAllRelevantLanguageIds(); $constraints[] = $queryBuilder->expr()->in( diff --git a/typo3/sysext/core/Classes/Security/ContentSecurityPolicy/PolicyProvider.php b/typo3/sysext/core/Classes/Security/ContentSecurityPolicy/PolicyProvider.php index 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 eaa0148cd7905954ccaa83d58732d1999e4f641a..21abcbfb1b0c4de7d691858dafe30c9ef927ddba 100644 --- a/typo3/sysext/core/Classes/Utility/GeneralUtility.php +++ b/typo3/sysext/core/Classes/Utility/GeneralUtility.php @@ -1205,10 +1205,10 @@ class GeneralUtility $content = ''; } else { $content = $nl . self::array2xml($v, $NSprefix, $level + 1, '', $spaceInd, $subOptions, [ - 'parentTagName' => $tagName, - 'grandParentTagName' => $stackData['parentTagName'] ?? '', - 'path' => $clearStackPath ? '' : ($stackData['path'] ?? '') . '/' . $tagName, - ]) . ($spaceInd >= 0 ? str_pad('', ($level + 1) * $indentN, $indentChar) : ''); + 'parentTagName' => $tagName, + 'grandParentTagName' => $stackData['parentTagName'] ?? '', + 'path' => $clearStackPath ? '' : ($stackData['path'] ?? '') . '/' . $tagName, + ]) . ($spaceInd >= 0 ? str_pad('', ($level + 1) * $indentN, $indentChar) : ''); } // Do not set "type = array". Makes prettier XML but means that empty arrays are not restored with xml2array if (!isset($options['disableTypeAttrib']) || (int)$options['disableTypeAttrib'] != 2) { diff --git a/typo3/sysext/core/Tests/Functional/DataHandling/DataHandler/HookTest.php b/typo3/sysext/core/Tests/Functional/DataHandling/DataHandler/HookTest.php index aed12c8a0fc5d652dc4d8e291fb34204d5ee4523..b1e71afd865bc9091b0a9e297e960b4861f9b466 100644 --- a/typo3/sysext/core/Tests/Functional/DataHandling/DataHandler/HookTest.php +++ b/typo3/sysext/core/Tests/Functional/DataHandling/DataHandler/HookTest.php @@ -141,8 +141,8 @@ final class HookTest extends FunctionalTestCase ); $this->assertHookInvocationsCount($hookFixture, [ - 'processDatamap_beforeStart', - 'processDatamap_afterAllOperations', + 'processDatamap_beforeStart', + 'processDatamap_afterAllOperations', ], 1); $this->assertHookInvocationsPayload($hookFixture, [ diff --git a/typo3/sysext/core/Tests/Functional/DataHandling/Slug/SlugHelperTest.php b/typo3/sysext/core/Tests/Functional/DataHandling/Slug/SlugHelperTest.php index cf82ff1b01e0a7c25c6c4d74843c07ba6c1b7180..3256b203b54792d7e6c3f52bd8bc3846e956d3e0 100644 --- a/typo3/sysext/core/Tests/Functional/DataHandling/Slug/SlugHelperTest.php +++ b/typo3/sysext/core/Tests/Functional/DataHandling/Slug/SlugHelperTest.php @@ -96,13 +96,13 @@ final class SlugHelperTest extends FunctionalTestCase ], ], 'swiss page / german fallback parent' => [ - '/german-parent/swiss-page', - [ - 'uid' => '13', - 'title' => 'Swiss Page', - 'sys_language_uid' => 3, - ], - ], + '/german-parent/swiss-page', + [ + 'uid' => '13', + 'title' => 'Swiss Page', + 'sys_language_uid' => 3, + ], + ], ]; } diff --git a/typo3/sysext/core/Tests/Functional/RegistryTest.php b/typo3/sysext/core/Tests/Functional/RegistryTest.php index 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/Unit/Configuration/Tca/TcaMigrationTest.php b/typo3/sysext/core/Tests/Unit/Configuration/Tca/TcaMigrationTest.php index 56c0137fa0bfcc79ad76c9e636d89aeab606c326..6126328b878969c3d5fb26d9d0843b0d479d5a2d 100644 --- a/typo3/sysext/core/Tests/Unit/Configuration/Tca/TcaMigrationTest.php +++ b/typo3/sysext/core/Tests/Unit/Configuration/Tca/TcaMigrationTest.php @@ -3062,13 +3062,13 @@ final class TcaMigrationTest extends UnitTestCase { yield 'always_description is removed' => [ 'input' => [ - 'aTable' => [ - 'interface' => [ - 'always_description' => 0, - 'anything_else' => true, - ], - 'columns' => [], - ], + 'aTable' => [ + 'interface' => [ + 'always_description' => 0, + 'anything_else' => true, + ], + 'columns' => [], + ], ], 'expected' => [ 'aTable' => [ diff --git a/typo3/sysext/core/Tests/Unit/ExpressionLanguage/ResolverTest.php b/typo3/sysext/core/Tests/Unit/ExpressionLanguage/ResolverTest.php index 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 afac7663bbc8589c1bf7ce533165a92f504e5e85..1636942aee7a7c5b0294cd9215459dc3bc44ef11 100644 --- a/typo3/sysext/core/Tests/Unit/Mail/MailMessageTest.php +++ b/typo3/sysext/core/Tests/Unit/Mail/MailMessageTest.php @@ -307,11 +307,11 @@ final class MailMessageTest extends UnitTestCase public static function exceptionIsThrownForInvalidArgumentCombinationsDataProvider(): array { return [ - 'setFrom' => ['setFrom'], - 'setReplyTo' => ['setReplyTo'], - 'setTo' => ['setTo'], - 'setCc' => ['setCc'], - 'setBcc' => ['setBcc'], + 'setFrom' => ['setFrom'], + 'setReplyTo' => ['setReplyTo'], + 'setTo' => ['setTo'], + 'setCc' => ['setCc'], + 'setBcc' => ['setBcc'], ]; } diff --git a/typo3/sysext/core/Tests/Unit/Resource/FileTest.php b/typo3/sysext/core/Tests/Unit/Resource/FileTest.php index 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/extbase/Classes/Persistence/Generic/Storage/Typo3DbBackend.php b/typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbBackend.php index 5b2d347ef80b5196af208bea83acdeccc260b41d..eac893ba5c3a142a3766cf3baf3d371e20fc536f 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 ee46efdd15c2a28570ff7cace5592f1b7e9e97dd..382fb6957f7f9ba7880d40be179f3830a4376c90 100644 --- a/typo3/sysext/extbase/Tests/Functional/Utility/LocalizationUtilityTest.php +++ b/typo3/sysext/extbase/Tests/Functional/Utility/LocalizationUtilityTest.php @@ -155,20 +155,20 @@ final class LocalizationUtilityTest extends FunctionalTestCase ->method('getConfiguration') ->with($configurationType, 'label_test', null) ->willReturn(['_LOCAL_LANG' => [ - 'default' => [ - 'key3' => 'English label for key3 from TypoScript', - ], - 'da' => [ - 'key1' => 'key1 value from TS core', - 'key3' => [ - 'subkey1' => 'key3.subkey1 value from TypoScript', - // this key doesn't exist in XLF files - 'subkey2' => [ - 'subsubkey' => 'key3.subkey2.subsubkey value from TypoScript', - ], + 'default' => [ + 'key3' => 'English label for key3 from TypoScript', + ], + 'da' => [ + 'key1' => 'key1 value from TS core', + 'key3' => [ + 'subkey1' => 'key3.subkey1 value from TypoScript', + // this key doesn't exist in XLF files + 'subkey2' => [ + 'subsubkey' => 'key3.subkey2.subsubkey value from TypoScript', ], ], ], + ], ]); GeneralUtility::setSingletonInstance(ConfigurationManagerInterface::class, $configurationManagerInterfaceMock); diff --git a/typo3/sysext/extbase/Tests/Unit/Mvc/View/JsonViewTest.php b/typo3/sysext/extbase/Tests/Unit/Mvc/View/JsonViewTest.php index 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 9ace4bb375a9892e6be06118ca28c3708b707702..3ea4779097d737df751b9c09248d77aff7bf145f 100644 --- a/typo3/sysext/fluid/Classes/ViewHelpers/FormViewHelper.php +++ b/typo3/sysext/fluid/Classes/ViewHelpers/FormViewHelper.php @@ -465,8 +465,8 @@ class FormViewHelper extends AbstractFormViewHelper // basically "request token, yes" - uses form-action URI as scope if ($isTrulyRequestToken || $requestToken === '@nonce') { $requestToken = RequestToken::create($formAction); - // basically "request token with 'my-scope'" - uses 'my-scope' } elseif (is_string($requestToken) && $requestToken !== '') { + // basically "request token with 'my-scope'" - uses 'my-scope' $requestToken = RequestToken::create($requestToken); } if (!$requestToken instanceof RequestToken) { diff --git a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/FormViewHelperTest.php b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/FormViewHelperTest.php index 7f1f6309d2f8900202e8ea75de14ed097e65b951..4265ab65fa14d37c2ae2e51846608c44460bd367 100644 --- a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/FormViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/FormViewHelperTest.php @@ -62,7 +62,7 @@ final class FormViewHelperTest extends FunctionalTestCase 'fieldNamePrefix' => 'fieldNamePrefix<>&"\'', ], // first element having "@extension" in name attribute - '<input type="hidden" name="fieldNamePrefix<>&"'[__referrer][@extension]" value="" />', + '<input type="hidden" name="fieldNamePrefix<>&"'[__referrer][@extension]" value="" />', ], ]; } diff --git a/typo3/sysext/form/Classes/EventListener/DataStructureIdentifierListener.php b/typo3/sysext/form/Classes/EventListener/DataStructureIdentifierListener.php index a4babfb1061d134f8dcd43ec438376aa6bbf6906..e5dc09e46d43dedac9af9871049721abdd568720 100644 --- a/typo3/sysext/form/Classes/EventListener/DataStructureIdentifierListener.php +++ b/typo3/sysext/form/Classes/EventListener/DataStructureIdentifierListener.php @@ -145,11 +145,11 @@ class DataStructureIdentifierListener $translationFile = 'LLL:EXT:form/Resources/Private/Language/Database.xlf'; $dataStructure['sheets']['sDEF']['ROOT']['el']['settings.overrideFinishers'] = [ 'label' => $translationFile . ':tt_content.pi_flexform.formframework.overrideFinishers', - 'onChange' => 'reload', - 'config' => [ - 'type' => 'check', - ], - ]; + 'onChange' => 'reload', + 'config' => [ + 'type' => 'check', + ], + ]; $newSheets = []; @@ -162,10 +162,10 @@ class DataStructureIdentifierListener $dataStructure['sheets']['sDEF']['ROOT']['el']['settings.overrideFinishers'], [ 'description' => $translationFile . ':tt_content.pi_flexform.formframework.overrideFinishers.empty', - 'config' => [ - 'readOnly' => true, - ], - ] + 'config' => [ + 'readOnly' => true, + ], + ] ); } diff --git a/typo3/sysext/form/Tests/Functional/RequestHandling/RequestHandlingTest.php b/typo3/sysext/form/Tests/Functional/RequestHandling/RequestHandlingTest.php index 389240479a03c2780669a282edbbda0c667b5920..e0578d6530c89741b3ef1098bd4baea7fd82282c 100644 --- a/typo3/sysext/form/Tests/Functional/RequestHandling/RequestHandlingTest.php +++ b/typo3/sysext/form/Tests/Functional/RequestHandling/RequestHandlingTest.php @@ -227,9 +227,9 @@ final class RequestHandlingTest extends FunctionalTestCase // ]; yield 'Multistep form / COA_INT FLUIDTEMPLATE through ext:form controller' => [ - 'formIdentifier' => 'FormFromCoaIntFluidtemplateThroughExtFormController', - 'formNamePrefix' => 'tx_form_formframework', - ]; + 'formIdentifier' => 'FormFromCoaIntFluidtemplateThroughExtFormController', + 'formNamePrefix' => 'tx_form_formframework', + ]; } /** @@ -368,8 +368,8 @@ final class RequestHandlingTest extends FunctionalTestCase // ]; yield 'Multistep form / COA_INT FLUIDTEMPLATE through ext:form controller' => [ - 'formIdentifier' => 'FormFromCoaIntFluidtemplateThroughExtFormController', - ]; + 'formIdentifier' => 'FormFromCoaIntFluidtemplateThroughExtFormController', + ]; } /** diff --git a/typo3/sysext/form/Tests/Functional/Service/TranslationServiceTest.php b/typo3/sysext/form/Tests/Functional/Service/TranslationServiceTest.php index 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 933ac8c185952be2b991e54d2dab9b0647e57ce4..44da6b9265a7e8dabdb65371c39057a83163d6d2 100644 --- a/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php +++ b/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php @@ -4320,7 +4320,7 @@ class ContentObjectRenderer implements LoggerAwareInterface if (method_exists($value, 'get' . ucfirst($currentKey))) { $getterMethod = 'get' . ucfirst($currentKey); $value = $value->$getterMethod(...)(); - // server request attribute, such as "routing" + // server request attribute, such as "routing" } elseif ($value instanceof ServerRequestInterface) { $value = $value->getAttribute($currentKey); } else { diff --git a/typo3/sysext/frontend/Classes/DataProcessing/GalleryProcessor.php b/typo3/sysext/frontend/Classes/DataProcessing/GalleryProcessor.php index 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 ee2b25c46539eb9015cbfdab25ac4419797c9213..ea6d291d3e71716affc11f8746dba611f6767232 100644 --- a/typo3/sysext/frontend/Classes/Middleware/PageArgumentValidator.php +++ b/typo3/sysext/frontend/Classes/Middleware/PageArgumentValidator.php @@ -91,7 +91,7 @@ class PageArgumentValidator implements MiddlewareInterface, LoggerAwareInterface ['code' => PageAccessFailureReasons::CACHEHASH_COMPARISON_FAILED] ); } - // No cHash given but was required + // No cHash given but was required } elseif (!$this->evaluatePageArgumentsWithoutCacheHash($cacheInstruction, $pageArguments, $pageNotFoundOnValidationError)) { return GeneralUtility::makeInstance(ErrorController::class)->pageNotFoundAction( $request, diff --git a/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerSiteRequest/PersistedAliasMapperTest.php b/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerSiteRequest/PersistedAliasMapperTest.php index 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 eeb73884185759905ff7b23ff31a0472084e4029..f3553ef65e7abea7175838c16c716d3991d3afd6 100644 --- a/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php +++ b/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php @@ -1870,8 +1870,8 @@ final class ContentObjectRendererTest extends UnitTestCase $this->frontendControllerMock ->config['config']['contentObjectExceptionHandler.'] = [ - 'errorMessage' => 'Global message for testing', - ]; + 'errorMessage' => 'Global message for testing', + ]; $configuration = [ 'exceptionHandler' => '1', 'exceptionHandler.' => [ diff --git a/typo3/sysext/frontend/Tests/Unit/DataProcessing/FlexFormProcessorTest.php b/typo3/sysext/frontend/Tests/Unit/DataProcessing/FlexFormProcessorTest.php index 32431d3ec72a5ca8937561985f6b7907174f4d49..8ef5fa0b60f0d6eae9254235edda582de9a2ccc7 100644 --- a/typo3/sysext/frontend/Tests/Unit/DataProcessing/FlexFormProcessorTest.php +++ b/typo3/sysext/frontend/Tests/Unit/DataProcessing/FlexFormProcessorTest.php @@ -45,8 +45,8 @@ final class FlexFormProcessorTest extends UnitTestCase { $processorConfiguration = ['as' => 'myOutputVariable', 'fieldName' => 'non_existing_field']; $this->contentObjectRendererMock->method('stdWrapValue')->willReturnMap([ - ['fieldName', $processorConfiguration, 'pi_flexform', 'non_existing_field'], - ['as', $processorConfiguration, 'flexFormData', 'myOutputVariable'], + ['fieldName', $processorConfiguration, 'pi_flexform', 'non_existing_field'], + ['as', $processorConfiguration, 'flexFormData', 'myOutputVariable'], ]); $processedData = [ diff --git a/typo3/sysext/impexp/Tests/Functional/Export/PagesAndTtContentTest.php b/typo3/sysext/impexp/Tests/Functional/Export/PagesAndTtContentTest.php index 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 03e2b79654f3b652e98396d98419b27b01e8704b..65383d00b4693cddd745227664203fd44e2bb80e 100644 --- a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsByUpdateWithDiff.php +++ b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsByUpdateWithDiff.php @@ -14,520 +14,520 @@ */ return [ - 'update' => true, - 'showDiff' => true, - 'insidePageTree' => - [ - 0 => + 'update' => true, + 'showDiff' => true, + 'insidePageTree' => [ - 'ref' => 'pages:0', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span title="pages:0" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/apps.svg#apps-pagetree-page-default" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'title' => '', - 'active' => 'active', - 'updatePath' => '<strong>NEW!</strong>', - 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][pages:0]" style="width: 100px"><option value="0">Insert</option><option value="%s">Force UID [0] (Admin)</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_FORCE_UID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), - 'showDiffContent' => '', - 'controls' => '', - 'message' => '', - ], - 1 => - [ - 'ref' => 'sys_file:1', - 'type' => 'record', - 'msg' => 'TABLE "sys_file" will be inserted on ROOT LEVEL! ', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-media-image" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'title' => 'used-1.jpg', - 'active' => 'active', - 'updatePath' => '/', - 'updateMode' => '', - 'showDiffContent' => '<strong class="text-nowrap">[sys_file:1 => 1]:</strong> + 0 => + [ + 'ref' => 'pages:0', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span title="pages:0" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/apps.svg#apps-pagetree-page-default" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'title' => '', + 'active' => 'active', + 'updatePath' => '<strong>NEW!</strong>', + 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][pages:0]" style="width: 100px"><option value="0">Insert</option><option value="%s">Force UID [0] (Admin)</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_FORCE_UID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), + 'showDiffContent' => '', + 'controls' => '', + 'message' => '', + ], + 1 => + [ + 'ref' => 'sys_file:1', + 'type' => 'record', + 'msg' => 'TABLE "sys_file" will be inserted on ROOT LEVEL! ', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-media-image" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'title' => 'used-1.jpg', + 'active' => 'active', + 'updatePath' => '/', + 'updateMode' => '', + 'showDiffContent' => '<strong class="text-nowrap">[sys_file:1 => 1]:</strong> <table class="table table-striped table-hover"> <tr><td>Identifier (identifier)</td><td><del>/user_upload/typo3_image3.</del><ins>/user_upload/used-1.</ins>jpg</td></tr> <tr><td>Filename (name)</td><td><del>typo3_image3.</del><ins>used-1.</ins>jpg</td></tr> <tr><td>SHA1 (sha1)</td><td><del>e873c1e2ffd0f191e183a1057de3eef4d62e782d</del><ins>da9acdf1e105784a57bbffec9520969578287797</ins></td></tr> <tr><td>Size (size)</td><td><del>5565</del><ins>7958</ins></td></tr> </table>', - 'controls' => '', - 'message' => '', - ], - 2 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'controls' => '', - 'message' => '', - ], - 3 => - [ - 'ref' => 'sys_file:2', - 'type' => 'record', - 'msg' => 'TABLE "sys_file" will be inserted on ROOT LEVEL! ', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-media-image" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'title' => 'used-2.jpg', - 'active' => 'active', - 'updatePath' => '/', - 'updateMode' => '', - 'showDiffContent' => '<strong class="text-nowrap">[sys_file:2 => 1]:</strong> + 'controls' => '', + 'message' => '', + ], + 2 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'controls' => '', + 'message' => '', + ], + 3 => + [ + 'ref' => 'sys_file:2', + 'type' => 'record', + 'msg' => 'TABLE "sys_file" will be inserted on ROOT LEVEL! ', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-media-image" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'title' => 'used-2.jpg', + 'active' => 'active', + 'updatePath' => '/', + 'updateMode' => '', + 'showDiffContent' => '<strong class="text-nowrap">[sys_file:2 => 1]:</strong> <table class="table table-striped table-hover"> <tr><td>Identifier (identifier)</td><td><del>/user_upload/used-2.</del><ins>/user_upload/typo3_image3.</ins>jpg</td></tr> <tr><td>Filename (name)</td><td><del>used-2.</del><ins>typo3_image3.</ins>jpg</td></tr> <tr><td>SHA1 (sha1)</td><td><del>c3511df85d21bc578faf71c6a19eeb3ff44af370</del><ins>e873c1e2ffd0f191e183a1057de3eef4d62e782d</ins></td></tr> <tr><td>Size (size)</td><td><del>7425</del><ins>5565</ins></td></tr> </table>', - 'controls' => '', - 'message' => '', - ], - 4 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'controls' => '', - 'message' => '', - ], - 5 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'record', - 'msg' => 'TABLE "sys_file_storage" will be inserted on ROOT LEVEL! ', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-sys_file_storage" data-identifier="mimetypes-x-sys_file_storage" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-sys_file_storage" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'title' => 'fileadmin', - 'active' => 'active', - 'updatePath' => '/', - 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][sys_file_storage:1]" style="width: 100px"><option value="0">Update</option><option value="%s">Import as new</option><option value="%s">Ignore PID</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_AS_NEW, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_IGNORE_PID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), - 'showDiffContent' => '<strong class="text-nowrap">[sys_file_storage:1 => 1]:</strong>' . "\n" - . '<table class="table table-striped table-hover">' . "\n" - . '<tr><td>Is default storage? (is_default)</td><td><del>Yes</del><ins>No</ins></td></tr>' . "\n" - . '<tr><td>Driver Configuration (configuration)</td><td>' . "\n\n" - . '<del> \\n \\n \\n \\n fileadmin/\\n \\n \\n relative\\n \\n \\n 1\\n \\n \\n \\n \\n</del><ins>' . "\t\n" - . "\t\t\n" - . "\t\t\t\n" - . "\t\t\t\t\n" - . "\t\t\t\t\t" . 'fileadmin/' . "\n" - . "\t\t\t\t\n" - . "\t\t\t\t\n" - . "\t\t\t\t\t" . 'relative' . "\n" - . "\t\t\t\t\n" - . "\t\t\t\t\n" - . "\t\t\t\t\t" . '1' . "\n" - . "\t\t\t\t\n" - . "\t\t\t\n" - . "\t\t\n" - . "\t\n" - . '</ins></td></tr> + 'controls' => '', + 'message' => '', + ], + 4 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'controls' => '', + 'message' => '', + ], + 5 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'record', + 'msg' => 'TABLE "sys_file_storage" will be inserted on ROOT LEVEL! ', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-sys_file_storage" data-identifier="mimetypes-x-sys_file_storage" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-sys_file_storage" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'title' => 'fileadmin', + 'active' => 'active', + 'updatePath' => '/', + 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][sys_file_storage:1]" style="width: 100px"><option value="0">Update</option><option value="%s">Import as new</option><option value="%s">Ignore PID</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_AS_NEW, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_IGNORE_PID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), + 'showDiffContent' => '<strong class="text-nowrap">[sys_file_storage:1 => 1]:</strong>' . "\n" + . '<table class="table table-striped table-hover">' . "\n" + . '<tr><td>Is default storage? (is_default)</td><td><del>Yes</del><ins>No</ins></td></tr>' . "\n" + . '<tr><td>Driver Configuration (configuration)</td><td>' . "\n\n" + . '<del> \\n \\n \\n \\n fileadmin/\\n \\n \\n relative\\n \\n \\n 1\\n \\n \\n \\n \\n</del><ins>' . "\t\n" + . "\t\t\n" + . "\t\t\t\n" + . "\t\t\t\t\n" + . "\t\t\t\t\t" . 'fileadmin/' . "\n" + . "\t\t\t\t\n" + . "\t\t\t\t\n" + . "\t\t\t\t\t" . 'relative' . "\n" + . "\t\t\t\t\n" + . "\t\t\t\t\n" + . "\t\t\t\t\t" . '1' . "\n" + . "\t\t\t\t\n" + . "\t\t\t\n" + . "\t\t\n" + . "\t\n" + . '</ins></td></tr> <tr><td>Description (description)</td><td><strong>Field missing</strong> in database</td></tr> </table>', - 'controls' => '', - 'message' => '', - ], - 6 => - [ - 'ref' => 'tt_content:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="tt_content:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text-picture" data-identifier="mimetypes-x-content-text-picture" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-content-text-picture" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'title' => 'CE 1 first image', - 'active' => 'active', - 'updatePath' => '/Root/', - 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][tt_content:1]" style="width: 100px"><option value="0">Update</option><option value="%s">Import as new</option><option value="%s">Ignore PID</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_AS_NEW, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_IGNORE_PID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), - 'showDiffContent' => '<strong class="text-nowrap">[tt_content:1 => 2]:</strong> + 'controls' => '', + 'message' => '', + ], + 6 => + [ + 'ref' => 'tt_content:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="tt_content:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text-picture" data-identifier="mimetypes-x-content-text-picture" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-content-text-picture" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'title' => 'CE 1 first image', + 'active' => 'active', + 'updatePath' => '/Root/', + 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][tt_content:1]" style="width: 100px"><option value="0">Update</option><option value="%s">Import as new</option><option value="%s">Ignore PID</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_AS_NEW, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_IGNORE_PID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), + 'showDiffContent' => '<strong class="text-nowrap">[tt_content:1 => 2]:</strong> <table class="table table-striped table-hover"> <tr><td>Header (header)</td><td><del>CE 1 first image</del><ins>Test content</ins></td></tr> <tr><td>Images (image)</td><td>N/A</td></tr> <tr><td>Type (CType)</td><td><del>Text & Images</del><ins>Text</ins></td></tr> </table>', - 'controls' => '', - 'message' => '', - ], - 7 => - [ - 'ref' => 'sys_file_reference:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/Root/">used-1.jpg</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_reference:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'controls' => '', - 'message' => '', - ], - 8 => - [ - 'ref' => 'sys_file:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">used-1.jpg</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'controls' => '', - 'message' => '', - ], - 9 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 4"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'controls' => '', - 'message' => '', - ], - 10 => - [ - 'ref' => 'tt_content:2', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="tt_content:2" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text-picture" data-identifier="mimetypes-x-content-text-picture" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-content-text-picture" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'title' => 'CE 2 second image', - 'active' => 'active', - 'updatePath' => '/Root/', - 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][tt_content:2]" style="width: 100px"><option value="0">Update</option><option value="%s">Import as new</option><option value="%s">Ignore PID</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_AS_NEW, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_IGNORE_PID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), - 'showDiffContent' => '<strong class="text-nowrap">[tt_content:2 => 1]:</strong>' . "\n" - . '<table class="table table-striped table-hover">' . "\n" - . '<tr><td>Header (header)</td><td><del>CE 2 second image</del><ins>Test content 2</ins></td></tr>' . "\n" - . '<tr><td>Images (image)</td><td>N/A</td></tr>' . "\n" - . '<tr><td>Type (CType)</td><td><del>Text & Images</del><ins>Text</ins></td></tr>' . "\n" - . '</table>', - 'controls' => '', - 'message' => '', - ], - 11 => - [ - 'ref' => 'sys_file_reference:2', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/Root/">used-2.jpg</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_reference:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'controls' => '', - 'message' => '', - ], - 12 => - [ - 'ref' => 'sys_file:2', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">used-2.jpg</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'controls' => '', - 'message' => '', - ], - 13 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 4"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'controls' => '', - 'message' => '', - ], - 14 => - [ - 'ref' => 'tt_content:3', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="tt_content:3" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text-picture" data-identifier="mimetypes-x-content-text-picture" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-content-text-picture" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'title' => 'CE 3 second image', - 'active' => 'active', - 'updatePath' => '<strong>NEW!</strong>', - 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][tt_content:3]" style="width: 100px"><option value="0">Insert</option><option value="%s">Force UID [3] (Admin)</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_FORCE_UID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), - 'showDiffContent' => '', - 'controls' => '', - 'message' => '', - ], - 15 => - [ - 'ref' => 'sys_file_reference:3', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/Root/">used-2.jpg</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_reference:3" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'controls' => '', - 'message' => '', - ], - 16 => - [ - 'ref' => 'sys_file:2', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">used-2.jpg</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'controls' => '', - 'message' => '', - ], - 17 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 4"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'controls' => '', - 'message' => '', - ], - 18 => - [ - 'ref' => 'sys_file_reference:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file_reference:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-other-other" data-identifier="mimetypes-other-other" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-other-other" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'title' => 'used-1.jpg', - 'active' => 'active', - 'updatePath' => '<strong>NEW!</strong>', - 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][sys_file_reference:1]" style="width: 100px"><option value="0">Insert</option><option value="%s">Force UID [1] (Admin)</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_FORCE_UID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), - 'showDiffContent' => '', - 'controls' => '', - 'message' => '', - ], - 19 => - [ - 'ref' => 'sys_file:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">used-1.jpg</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'controls' => '', - 'message' => '', - ], - 20 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'controls' => '', - 'message' => '', - ], - 21 => - [ - 'ref' => 'sys_file_reference:2', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file_reference:2" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-other-other" data-identifier="mimetypes-other-other" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-other-other" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'title' => 'used-2.jpg', - 'active' => 'active', - 'updatePath' => '<strong>NEW!</strong>', - 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][sys_file_reference:2]" style="width: 100px"><option value="0">Insert</option><option value="%s">Force UID [2] (Admin)</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_FORCE_UID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), - 'showDiffContent' => '', - 'controls' => '', - 'message' => '', - ], - 22 => - [ - 'ref' => 'sys_file:2', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">used-2.jpg</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'controls' => '', - 'message' => '', - ], - 23 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'controls' => '', - 'message' => '', - ], - 24 => - [ - 'ref' => 'sys_file_reference:3', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file_reference:3" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-other-other" data-identifier="mimetypes-other-other" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-other-other" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'title' => 'used-2.jpg', - 'active' => 'active', - 'updatePath' => '<strong>NEW!</strong>', - 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][sys_file_reference:3]" style="width: 100px"><option value="0">Insert</option><option value="%s">Force UID [3] (Admin)</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_FORCE_UID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), - 'showDiffContent' => '', - 'controls' => '', - 'message' => '', - ], - 25 => - [ - 'ref' => 'sys_file:2', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">used-2.jpg</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'controls' => '', - 'message' => '', - ], - 26 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'controls' => '', - 'message' => '', + 'controls' => '', + 'message' => '', + ], + 7 => + [ + 'ref' => 'sys_file_reference:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/Root/">used-1.jpg</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_reference:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'controls' => '', + 'message' => '', + ], + 8 => + [ + 'ref' => 'sys_file:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">used-1.jpg</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'controls' => '', + 'message' => '', + ], + 9 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 4"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'controls' => '', + 'message' => '', + ], + 10 => + [ + 'ref' => 'tt_content:2', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="tt_content:2" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text-picture" data-identifier="mimetypes-x-content-text-picture" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-content-text-picture" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'title' => 'CE 2 second image', + 'active' => 'active', + 'updatePath' => '/Root/', + 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][tt_content:2]" style="width: 100px"><option value="0">Update</option><option value="%s">Import as new</option><option value="%s">Ignore PID</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_AS_NEW, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_IGNORE_PID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), + 'showDiffContent' => '<strong class="text-nowrap">[tt_content:2 => 1]:</strong>' . "\n" + . '<table class="table table-striped table-hover">' . "\n" + . '<tr><td>Header (header)</td><td><del>CE 2 second image</del><ins>Test content 2</ins></td></tr>' . "\n" + . '<tr><td>Images (image)</td><td>N/A</td></tr>' . "\n" + . '<tr><td>Type (CType)</td><td><del>Text & Images</del><ins>Text</ins></td></tr>' . "\n" + . '</table>', + 'controls' => '', + 'message' => '', + ], + 11 => + [ + 'ref' => 'sys_file_reference:2', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/Root/">used-2.jpg</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_reference:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'controls' => '', + 'message' => '', + ], + 12 => + [ + 'ref' => 'sys_file:2', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">used-2.jpg</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'controls' => '', + 'message' => '', + ], + 13 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 4"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'controls' => '', + 'message' => '', + ], + 14 => + [ + 'ref' => 'tt_content:3', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="tt_content:3" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text-picture" data-identifier="mimetypes-x-content-text-picture" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-content-text-picture" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'title' => 'CE 3 second image', + 'active' => 'active', + 'updatePath' => '<strong>NEW!</strong>', + 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][tt_content:3]" style="width: 100px"><option value="0">Insert</option><option value="%s">Force UID [3] (Admin)</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_FORCE_UID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), + 'showDiffContent' => '', + 'controls' => '', + 'message' => '', + ], + 15 => + [ + 'ref' => 'sys_file_reference:3', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/Root/">used-2.jpg</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_reference:3" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'controls' => '', + 'message' => '', + ], + 16 => + [ + 'ref' => 'sys_file:2', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">used-2.jpg</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'controls' => '', + 'message' => '', + ], + 17 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 4"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'controls' => '', + 'message' => '', + ], + 18 => + [ + 'ref' => 'sys_file_reference:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file_reference:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-other-other" data-identifier="mimetypes-other-other" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-other-other" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'title' => 'used-1.jpg', + 'active' => 'active', + 'updatePath' => '<strong>NEW!</strong>', + 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][sys_file_reference:1]" style="width: 100px"><option value="0">Insert</option><option value="%s">Force UID [1] (Admin)</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_FORCE_UID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), + 'showDiffContent' => '', + 'controls' => '', + 'message' => '', + ], + 19 => + [ + 'ref' => 'sys_file:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">used-1.jpg</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'controls' => '', + 'message' => '', + ], + 20 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'controls' => '', + 'message' => '', + ], + 21 => + [ + 'ref' => 'sys_file_reference:2', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file_reference:2" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-other-other" data-identifier="mimetypes-other-other" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-other-other" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'title' => 'used-2.jpg', + 'active' => 'active', + 'updatePath' => '<strong>NEW!</strong>', + 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][sys_file_reference:2]" style="width: 100px"><option value="0">Insert</option><option value="%s">Force UID [2] (Admin)</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_FORCE_UID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), + 'showDiffContent' => '', + 'controls' => '', + 'message' => '', + ], + 22 => + [ + 'ref' => 'sys_file:2', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">used-2.jpg</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'controls' => '', + 'message' => '', + ], + 23 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'controls' => '', + 'message' => '', + ], + 24 => + [ + 'ref' => 'sys_file_reference:3', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file_reference:3" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-other-other" data-identifier="mimetypes-other-other" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-other-other" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'title' => 'used-2.jpg', + 'active' => 'active', + 'updatePath' => '<strong>NEW!</strong>', + 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][sys_file_reference:3]" style="width: 100px"><option value="0">Insert</option><option value="%s">Force UID [3] (Admin)</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_FORCE_UID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), + 'showDiffContent' => '', + 'controls' => '', + 'message' => '', + ], + 25 => + [ + 'ref' => 'sys_file:2', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">used-2.jpg</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'controls' => '', + 'message' => '', + ], + 26 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'controls' => '', + 'message' => '', + ], + 27 => + [ + 'ref' => 'pages:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="pages:1" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true">' . "\n" + . "\t" . '<span class="icon-markup">' . "\n" + . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/apps.svg#apps-pagetree-page-default" /></svg>' . "\n" + . "\t" . '</span>' . "\n" + . "\t\n" + . '</span>', + 'title' => 'Root', + 'active' => 'active', + 'updatePath' => '/', + 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][pages:1]" style="width: 100px"><option value="0">Update</option><option value="%s">Import as new</option><option value="%s">Ignore PID</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_AS_NEW, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_IGNORE_PID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), + 'showDiffContent' => '<strong class="text-nowrap">[pages:1 => 1]:</strong>' . "\n" + . 'Match', + 'controls' => '', + 'message' => '', + ], ], - 27 => + 'outsidePageTree' => [ - 'ref' => 'pages:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="pages:1" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true">' . "\n" - . "\t" . '<span class="icon-markup">' . "\n" - . '<svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/apps.svg#apps-pagetree-page-default" /></svg>' . "\n" - . "\t" . '</span>' . "\n" - . "\t\n" - . '</span>', - 'title' => 'Root', - 'active' => 'active', - 'updatePath' => '/', - 'updateMode' => sprintf('<select class="form-select form-select-sm" name="tx_impexp[import_mode][pages:1]" style="width: 100px"><option value="0">Update</option><option value="%s">Import as new</option><option value="%s">Ignore PID</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_AS_NEW, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_IGNORE_PID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), - 'showDiffContent' => '<strong class="text-nowrap">[pages:1 => 1]:</strong>' . "\n" - . 'Match', - 'controls' => '', - 'message' => '', ], - ], - 'outsidePageTree' => - [ - ], ]; diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsWithDiff.php b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsWithDiff.php index 8faf22360802267d0115da9956674c95fbaad388..ad4abf9ebd36d07331e959ffa41fa713fde3910e 100644 --- a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsWithDiff.php +++ b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsWithDiff.php @@ -14,471 +14,471 @@ */ return [ - 'update' => false, - 'showDiff' => true, - 'insidePageTree' => - [ - 0 => + 'update' => false, + 'showDiff' => true, + 'insidePageTree' => [ - 'ref' => 'pages:0', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span title="pages:0" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true"> + 0 => + [ + 'ref' => 'pages:0', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span title="pages:0" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/apps.svg#apps-pagetree-page-default" /></svg> </span> </span>', - 'title' => '', - 'active' => 'active', - 'showDiffContent' => '', - 'controls' => '', - 'message' => '', - ], - 1 => - [ - 'ref' => 'sys_file:1', - 'type' => 'record', - 'msg' => 'TABLE "sys_file" will be inserted on ROOT LEVEL! ', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image" aria-hidden="true"> + 'title' => '', + 'active' => 'active', + 'showDiffContent' => '', + 'controls' => '', + 'message' => '', + ], + 1 => + [ + 'ref' => 'sys_file:1', + 'type' => 'record', + 'msg' => 'TABLE "sys_file" will be inserted on ROOT LEVEL! ', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-media-image" /></svg> </span> </span>', - 'title' => 'used-1.jpg', - 'active' => 'active', - 'showDiffContent' => '', - 'controls' => '', - 'message' => '', - ], - 2 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'title' => 'used-1.jpg', + 'active' => 'active', + 'showDiffContent' => '', + 'controls' => '', + 'message' => '', + ], + 2 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 3 => - [ - 'ref' => 'sys_file:2', - 'type' => 'record', - 'msg' => 'TABLE "sys_file" will be inserted on ROOT LEVEL! ', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 3 => + [ + 'ref' => 'sys_file:2', + 'type' => 'record', + 'msg' => 'TABLE "sys_file" will be inserted on ROOT LEVEL! ', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-media-image" /></svg> </span> </span>', - 'title' => 'used-2.jpg', - 'active' => 'active', - 'showDiffContent' => '<strong class="text-nowrap">[sys_file:2 => 1]:</strong> + 'title' => 'used-2.jpg', + 'active' => 'active', + 'showDiffContent' => '<strong class="text-nowrap">[sys_file:2 => 1]:</strong> <table class="table table-striped table-hover"> <tr><td>Identifier (identifier)</td><td><del>/user_upload/used-2.</del><ins>/user_upload/typo3_image3.</ins>jpg</td></tr> <tr><td>Filename (name)</td><td><del>used-2.</del><ins>typo3_image3.</ins>jpg</td></tr> <tr><td>SHA1 (sha1)</td><td><del>c3511df85d21bc578faf71c6a19eeb3ff44af370</del><ins>e873c1e2ffd0f191e183a1057de3eef4d62e782d</ins></td></tr> <tr><td>Size (size)</td><td><del>7425</del><ins>5565</ins></td></tr> </table>', - 'controls' => '', - 'message' => '', - ], - 4 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 4 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 5 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'record', - 'msg' => 'TABLE "sys_file_storage" will be inserted on ROOT LEVEL! ', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-sys_file_storage" data-identifier="mimetypes-x-sys_file_storage" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 5 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'record', + 'msg' => 'TABLE "sys_file_storage" will be inserted on ROOT LEVEL! ', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-sys_file_storage" data-identifier="mimetypes-x-sys_file_storage" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-sys_file_storage" /></svg> </span> </span>', - 'title' => 'fileadmin', - 'active' => 'active', - 'showDiffContent' => '', - 'controls' => '', - 'message' => '', - ], - 6 => - [ - 'ref' => 'tt_content:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="tt_content:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text-picture" data-identifier="mimetypes-x-content-text-picture" aria-hidden="true"> + 'title' => 'fileadmin', + 'active' => 'active', + 'showDiffContent' => '', + 'controls' => '', + 'message' => '', + ], + 6 => + [ + 'ref' => 'tt_content:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="tt_content:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text-picture" data-identifier="mimetypes-x-content-text-picture" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-content-text-picture" /></svg> </span> </span>', - 'title' => 'CE 1 first image', - 'active' => 'active', - 'showDiffContent' => '<strong class="text-nowrap">[tt_content:1 => 2]:</strong> + 'title' => 'CE 1 first image', + 'active' => 'active', + 'showDiffContent' => '<strong class="text-nowrap">[tt_content:1 => 2]:</strong> <table class="table table-striped table-hover"> <tr><td>Header (header)</td><td><del>CE 1 first image</del><ins>Test content</ins></td></tr> <tr><td>Images (image)</td><td>N/A</td></tr> <tr><td>Type (CType)</td><td><del>Text & Images</del><ins>Text</ins></td></tr> </table>', - 'controls' => '', - 'message' => '', - ], - 7 => - [ - 'ref' => 'sys_file_reference:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/Root/">used-1.jpg</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_reference:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 7 => + [ + 'ref' => 'sys_file_reference:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/Root/">used-1.jpg</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_reference:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 8 => - [ - 'ref' => 'sys_file:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">used-1.jpg</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 8 => + [ + 'ref' => 'sys_file:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">used-1.jpg</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 9 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 4"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 9 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 4"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 10 => - [ - 'ref' => 'tt_content:2', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="tt_content:2" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text-picture" data-identifier="mimetypes-x-content-text-picture" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 10 => + [ + 'ref' => 'tt_content:2', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="tt_content:2" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text-picture" data-identifier="mimetypes-x-content-text-picture" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-content-text-picture" /></svg> </span> </span>', - 'title' => 'CE 2 second image', - 'active' => 'active', - 'showDiffContent' => '<strong class="text-nowrap">[tt_content:2 => 1]:</strong> + 'title' => 'CE 2 second image', + 'active' => 'active', + 'showDiffContent' => '<strong class="text-nowrap">[tt_content:2 => 1]:</strong> <table class="table table-striped table-hover"> <tr><td>Header (header)</td><td><del>CE 2 second image</del><ins>Test content 2</ins></td></tr> <tr><td>Images (image)</td><td>N/A</td></tr> <tr><td>Type (CType)</td><td><del>Text & Images</del><ins>Text</ins></td></tr> </table>', - 'controls' => '', - 'message' => '', - ], - 11 => - [ - 'ref' => 'sys_file_reference:2', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/Root/">used-2.jpg</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_reference:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 11 => + [ + 'ref' => 'sys_file_reference:2', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/Root/">used-2.jpg</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_reference:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 12 => - [ - 'ref' => 'sys_file:2', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">used-2.jpg</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 12 => + [ + 'ref' => 'sys_file:2', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">used-2.jpg</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 13 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 4"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 13 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 4"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 14 => - [ - 'ref' => 'tt_content:3', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="tt_content:3" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text-picture" data-identifier="mimetypes-x-content-text-picture" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 14 => + [ + 'ref' => 'tt_content:3', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="tt_content:3" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text-picture" data-identifier="mimetypes-x-content-text-picture" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-content-text-picture" /></svg> </span> </span>', - 'title' => 'CE 3 second image', - 'active' => 'active', - 'showDiffContent' => '', - 'controls' => '', - 'message' => '', - ], - 15 => - [ - 'ref' => 'sys_file_reference:3', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/Root/">used-2.jpg</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_reference:3" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'title' => 'CE 3 second image', + 'active' => 'active', + 'showDiffContent' => '', + 'controls' => '', + 'message' => '', + ], + 15 => + [ + 'ref' => 'sys_file_reference:3', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/Root/">used-2.jpg</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file_reference:3" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 16 => - [ - 'ref' => 'sys_file:2', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">used-2.jpg</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 16 => + [ + 'ref' => 'sys_file:2', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">used-2.jpg</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 17 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 4"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 17 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 4"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 18 => - [ - 'ref' => 'sys_file_reference:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file_reference:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-other-other" data-identifier="mimetypes-other-other" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 18 => + [ + 'ref' => 'sys_file_reference:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file_reference:1" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-other-other" data-identifier="mimetypes-other-other" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-other-other" /></svg> </span> </span>', - 'title' => 'used-1.jpg', - 'active' => 'active', - 'showDiffContent' => '', - 'controls' => '', - 'message' => '', - ], - 19 => - [ - 'ref' => 'sys_file:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">used-1.jpg</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'title' => 'used-1.jpg', + 'active' => 'active', + 'showDiffContent' => '', + 'controls' => '', + 'message' => '', + ], + 19 => + [ + 'ref' => 'sys_file:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">used-1.jpg</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 20 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 20 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 21 => - [ - 'ref' => 'sys_file_reference:2', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file_reference:2" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-other-other" data-identifier="mimetypes-other-other" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 21 => + [ + 'ref' => 'sys_file_reference:2', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file_reference:2" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-other-other" data-identifier="mimetypes-other-other" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-other-other" /></svg> </span> </span>', - 'title' => 'used-2.jpg', - 'active' => 'active', - 'showDiffContent' => '', - 'controls' => '', - 'message' => '', - ], - 22 => - [ - 'ref' => 'sys_file:2', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">used-2.jpg</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'title' => 'used-2.jpg', + 'active' => 'active', + 'showDiffContent' => '', + 'controls' => '', + 'message' => '', + ], + 22 => + [ + 'ref' => 'sys_file:2', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">used-2.jpg</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 23 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 23 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 24 => - [ - 'ref' => 'sys_file_reference:3', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file_reference:3" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-other-other" data-identifier="mimetypes-other-other" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 24 => + [ + 'ref' => 'sys_file_reference:3', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="sys_file_reference:3" class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-other-other" data-identifier="mimetypes-other-other" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-other-other" /></svg> </span> </span>', - 'title' => 'used-2.jpg', - 'active' => 'active', - 'showDiffContent' => '', - 'controls' => '', - 'message' => '', - ], - 25 => - [ - 'ref' => 'sys_file:2', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">used-2.jpg</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'title' => 'used-2.jpg', + 'active' => 'active', + 'showDiffContent' => '', + 'controls' => '', + 'message' => '', + ], + 25 => + [ + 'ref' => 'sys_file:2', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">used-2.jpg</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 2"></span><span title="sys_file:2" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 26 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 26 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 3"></span><span title="sys_file_storage:1" class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-check" /></svg> </span> </span>', - 'controls' => '', - 'message' => '', - ], - 27 => - [ - 'ref' => 'pages:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="pages:1" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true"> + 'controls' => '', + 'message' => '', + ], + 27 => + [ + 'ref' => 'pages:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span class="indent indent-inline-block" style="--indent-level: 1"></span><span title="pages:1" class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default" aria-hidden="true"> <span class="icon-markup"> <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/apps.svg#apps-pagetree-page-default" /></svg> </span> </span>', - 'title' => 'Root', - 'active' => 'active', - 'showDiffContent' => '<strong class="text-nowrap">[pages:1 => 1]:</strong> + 'title' => 'Root', + 'active' => 'active', + 'showDiffContent' => '<strong class="text-nowrap">[pages:1 => 1]:</strong> Match', - 'controls' => '', - 'message' => '', + 'controls' => '', + 'message' => '', + ], + ], + 'outsidePageTree' => + [ ], - ], - 'outsidePageTree' => - [ - ], ]; diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsWithSoftRefs.php b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsWithSoftRefs.php index 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 a25bbbeb8584e0dd835417b749ae1de6afd2d5f5..92d02c66b0396a124b6835103fb45c3d3a832818 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 86191547c47696d601bd8cb97977ac6faa85759c..93d14f37f5948901c61b477d529a5dea8e325160 100644 --- a/typo3/sysext/indexed_search/Classes/Domain/Repository/IndexSearchRepository.php +++ b/typo3/sysext/indexed_search/Classes/Domain/Repository/IndexSearchRepository.php @@ -1143,9 +1143,9 @@ class IndexSearchRepository 'phash', 'index_grlist', [ - 'phash' => (int)$row['phash'], - 'gr_list' => $this->frontendUserGroupList, - ] + 'phash' => (int)$row['phash'], + 'gr_list' => $this->frontendUserGroupList, + ] ); } return true; diff --git a/typo3/sysext/indexed_search/Classes/ViewHelpers/PageBrowsingViewHelper.php b/typo3/sysext/indexed_search/Classes/ViewHelpers/PageBrowsingViewHelper.php index 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/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 4543b1f545779e39f2bb98a9b5155ae6da4c29e7..9c7270172ea037dac948e41a92bc698f518521f1 100644 --- a/typo3/sysext/linkvalidator/Classes/Controller/LinkValidatorController.php +++ b/typo3/sysext/linkvalidator/Classes/Controller/LinkValidatorController.php @@ -174,11 +174,11 @@ class LinkValidatorController return $view->renderResponse('Backend/Report'); } $view->assignMultiple([ - 'title' => $this->pageRecord ? BackendUtility::getRecordTitle('pages', $this->pageRecord) : '', - 'prefix' => 'check', - 'selectedLevel' => $this->searchLevel['check'], - 'options' => $this->getCheckOptions('check'), - ]); + 'title' => $this->pageRecord ? BackendUtility::getRecordTitle('pages', $this->pageRecord) : '', + 'prefix' => 'check', + 'selectedLevel' => $this->searchLevel['check'], + 'options' => $this->getCheckOptions('check'), + ]); return $view->renderResponse('Backend/CheckLinks'); } diff --git a/typo3/sysext/linkvalidator/Tests/Functional/Repository/BrokenLinkRepositoryTest.php b/typo3/sysext/linkvalidator/Tests/Functional/Repository/BrokenLinkRepositoryTest.php index d3841e5581cdd6460bfb6e78efe436d4e6a64379..a0eac54d2f15a5baea5e152e0b1fa7288f880822 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 c5b781dde7392a1e02c0172be0a0f91bc8d94e5d..5f40746de7d8de136d1a4ca304038299bd5fb602 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 01467af7d2082830306fcd4c45ebf6133e1878bb..aad537529f5d6354a281479af6fcb9797e516398 100644 --- a/typo3/sysext/lowlevel/Classes/Command/MissingRelationsCommand.php +++ b/typo3/sysext/lowlevel/Classes/Command/MissingRelationsCommand.php @@ -283,7 +283,7 @@ If you want to get more detailed information, use the --verbose option.') } else { $offlineVersionRecords[$idx][$rec['hash']] = $infoString; } - // reference to a deleted record + // reference to a deleted record } elseif (isset($GLOBALS['TCA'][$rec['ref_table']]['ctrl']['delete']) && $existingRecords[$idx][$GLOBALS['TCA'][$rec['ref_table']]['ctrl']['delete']]) { if ($isSoftReference) { $deletedRecordsInSoftReferenceRelations[] = $infoString; diff --git a/typo3/sysext/lowlevel/Classes/Controller/DatabaseIntegrityController.php b/typo3/sysext/lowlevel/Classes/Controller/DatabaseIntegrityController.php index 1f0c751606de8ba5ae0669bb0d6906bccc0b5054..c5d213c8d98ff25e9f829cc59b3115d92be07b03 100644 --- a/typo3/sysext/lowlevel/Classes/Controller/DatabaseIntegrityController.php +++ b/typo3/sysext/lowlevel/Classes/Controller/DatabaseIntegrityController.php @@ -841,15 +841,15 @@ class DatabaseIntegrityController } else { $out .= '<div class="btn-group" role="group">'; $out .= '<a class="btn btn-default" href="' . htmlspecialchars((string)$this->uriBuilder->buildUriFromRoute('tce_db', [ - 'cmd' => [ - $table => [ - $row['uid'] => [ - 'undelete' => 1, - ], + 'cmd' => [ + $table => [ + $row['uid'] => [ + 'undelete' => 1, ], ], - 'redirect' => (string)$this->uriBuilder->buildUriFromRoute($this->moduleName), - ])) . '" title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_t3lib_fullsearch.xlf:undelete_only')) . '">'; + ], + 'redirect' => (string)$this->uriBuilder->buildUriFromRoute($this->moduleName), + ])) . '" title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_t3lib_fullsearch.xlf:undelete_only')) . '">'; $out .= $this->iconFactory->getIcon('actions-edit-restore', IconSize::SMALL)->render() . '</a>'; $out .= '</div>'; } diff --git a/typo3/sysext/redirects/Classes/Controller/ManagementController.php b/typo3/sysext/redirects/Classes/Controller/ManagementController.php index c62424476b8a370f906a57f5167bf81731f8fee7..abb9c672a769173980a13646cac3583cd701c939 100644 --- a/typo3/sysext/redirects/Classes/Controller/ManagementController.php +++ b/typo3/sysext/redirects/Classes/Controller/ManagementController.php @@ -160,9 +160,9 @@ class ManagementController 'record_edit', [ 'edit' => ['sys_redirect' => ['new'], - ], - 'returnUrl' => (string)$this->uriBuilder->buildUriFromRoute('site_redirects'), - ] + ], + 'returnUrl' => (string)$this->uriBuilder->buildUriFromRoute('site_redirects'), + ] )) ->setTitle($languageService->sL('LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:redirect_add_text')) ->setShowLabelText(true) diff --git a/typo3/sysext/reports/Classes/Report/Status/ImageProcessingStatus.php b/typo3/sysext/reports/Classes/Report/Status/ImageProcessingStatus.php index 96539bb47fdf41f370e114d828a997cc121b6cf4..d4784a3957a99b1c3b03c12bbec8562667cf524e 100644 --- a/typo3/sysext/reports/Classes/Report/Status/ImageProcessingStatus.php +++ b/typo3/sysext/reports/Classes/Report/Status/ImageProcessingStatus.php @@ -54,7 +54,7 @@ class ImageProcessingStatus implements StatusProviderInterface $severity = ContextualFeedbackSeverity::INFO; $value = $this->getLanguageService()->sL('LLL:EXT:reports/Resources/Private/Language/locallang_reports.xlf:status_disabled'); $message = $this->getLanguageService()->sL('LLL:EXT:reports/Resources/Private/Language/locallang_reports.xlf:status_imageprocessing_disabled'); - // ImageMagick / GraphicsMagick is not enabled, all good + // ImageMagick / GraphicsMagick is not enabled, all good } elseif (!in_array('webp', $imageProcessing->getImageFileExt(), true)) { // webp is not enabled in TYPO3's Configuration $severity = ContextualFeedbackSeverity::INFO; diff --git a/typo3/sysext/seo/Classes/Canonical/CanonicalGenerator.php b/typo3/sysext/seo/Classes/Canonical/CanonicalGenerator.php index 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; } diff --git a/typo3/sysext/styleguide/Configuration/TCA/tx_styleguide_ctrl_common.php b/typo3/sysext/styleguide/Configuration/TCA/tx_styleguide_ctrl_common.php index fa7bb5f3029f8200e725c9de4f912ba057e6507a..166c588372e06d578ff7d91c3da4d7496d3527cb 100644 --- a/typo3/sysext/styleguide/Configuration/TCA/tx_styleguide_ctrl_common.php +++ b/typo3/sysext/styleguide/Configuration/TCA/tx_styleguide_ctrl_common.php @@ -32,91 +32,91 @@ return [ 'timeRestriction' => ['showitem' => 'starttime, endtime'], 'language' => ['showitem' => 'sys_language_uid, l10n_parent'], ], - 'columns' => [ + 'columns' => [ - 'sys_language_uid' => [ - 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language', - 'config' => [ - 'type' => 'language', - ], - ], - 'l10n_parent' => [ - 'displayCond' => 'FIELD:sys_language_uid:>:0', - 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent', - 'config' => [ - 'type' => 'select', - 'renderType' => 'selectSingle', - 'items' => [ - ['label' => '', 'value' => 0], - ], - 'foreign_table' => 'tx_styleguide_ctrl_common', - 'foreign_table_where' => 'AND {#tx_styleguide_ctrl_common}.{#pid}=###CURRENT_PID### AND {#tx_styleguide_ctrl_common}.{#sys_language_uid} IN (-1,0)', - 'default' => 0, - ], - ], - 'l10n_diffsource' => [ - 'config' => [ - 'type' => 'passthrough', - 'default' => '', - ], - ], - 'hidden' => [ - 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled', - 'config' => [ - 'type' => 'check', - 'renderType' => 'checkboxToggle', - 'items' => [ - [ - 'label' => '', - 'invertStateDisplay' => true, - ], - ], - ], - ], - 'starttime' => [ - 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.starttime', - 'config' => [ - 'type' => 'datetime', - 'eval' => 'int', - 'default' => 0, - 'behaviour' => [ - 'allowLanguageSynchronization' => true, - ], - ], - ], - 'endtime' => [ - 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.endtime', - 'config' => [ - 'type' => 'datetime', - 'eval' => 'int', - 'default' => 0, - 'range' => [ - 'upper' => mktime(0, 0, 0, 1, 1, 2106), - ], - 'behaviour' => [ - 'allowLanguageSynchronization' => true, - ], - ], - ], - 'title' => [ - 'label' => 'LLL:EXT:styleguide/Resources/Private/Language/locallang.xlf:minimalTableTitleField', - 'config' => [ - 'type' => 'input', - 'width' => 200, - 'eval' => 'trim', - 'required' => true, - ], - ], - 'description' => [ - 'label' => 'description', - 'config' => [ - 'type' => 'text', - ], - ], - ], - 'types' => [ - '0' => [ - 'showitem' => ' + 'sys_language_uid' => [ + 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language', + 'config' => [ + 'type' => 'language', + ], + ], + 'l10n_parent' => [ + 'displayCond' => 'FIELD:sys_language_uid:>:0', + 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent', + 'config' => [ + 'type' => 'select', + 'renderType' => 'selectSingle', + 'items' => [ + ['label' => '', 'value' => 0], + ], + 'foreign_table' => 'tx_styleguide_ctrl_common', + 'foreign_table_where' => 'AND {#tx_styleguide_ctrl_common}.{#pid}=###CURRENT_PID### AND {#tx_styleguide_ctrl_common}.{#sys_language_uid} IN (-1,0)', + 'default' => 0, + ], + ], + 'l10n_diffsource' => [ + 'config' => [ + 'type' => 'passthrough', + 'default' => '', + ], + ], + 'hidden' => [ + 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled', + 'config' => [ + 'type' => 'check', + 'renderType' => 'checkboxToggle', + 'items' => [ + [ + 'label' => '', + 'invertStateDisplay' => true, + ], + ], + ], + ], + 'starttime' => [ + 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.starttime', + 'config' => [ + 'type' => 'datetime', + 'eval' => 'int', + 'default' => 0, + 'behaviour' => [ + 'allowLanguageSynchronization' => true, + ], + ], + ], + 'endtime' => [ + 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.endtime', + 'config' => [ + 'type' => 'datetime', + 'eval' => 'int', + 'default' => 0, + 'range' => [ + 'upper' => mktime(0, 0, 0, 1, 1, 2106), + ], + 'behaviour' => [ + 'allowLanguageSynchronization' => true, + ], + ], + ], + 'title' => [ + 'label' => 'LLL:EXT:styleguide/Resources/Private/Language/locallang.xlf:minimalTableTitleField', + 'config' => [ + 'type' => 'input', + 'width' => 200, + 'eval' => 'trim', + 'required' => true, + ], + ], + 'description' => [ + 'label' => 'description', + 'config' => [ + 'type' => 'text', + ], + ], + ], + 'types' => [ + '0' => [ + 'showitem' => ' title, description, --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language, --palette--;;language, @@ -124,6 +124,6 @@ return [ hidden,--palette--;;timeRestriction, --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended, ', - ], - ], + ], + ], ]; diff --git a/typo3/sysext/styleguide/Configuration/TCA/tx_styleguide_ctrl_minimal.php b/typo3/sysext/styleguide/Configuration/TCA/tx_styleguide_ctrl_minimal.php index 47121075189e2ae5ca1fa04f3db9a3d9e152a1e7..911ca09fec201409f8565c2bcb6b57ab2c893dac 100644 --- a/typo3/sysext/styleguide/Configuration/TCA/tx_styleguide_ctrl_minimal.php +++ b/typo3/sysext/styleguide/Configuration/TCA/tx_styleguide_ctrl_minimal.php @@ -1,25 +1,25 @@ <?php return [ - 'ctrl' => [ - 'title' => 'LLL:EXT:styleguide/Resources/Private/Language/locallang.xlf:minimalTableTitle', - 'label' => 'title', - 'iconfile' => 'EXT:styleguide/Resources/Public/Icons/tx_styleguide.svg', - 'security' => [ - 'ignorePageTypeRestriction' => true, - ], - ], - 'columns' => [ - 'title' => [ - 'label' => 'LLL:EXT:styleguide/Resources/Private/Language/locallang.xlf:minimalTableTitleField', - 'config' => [ - 'type' => 'input', - ], - ], - ], - 'types' => [ - '0' => [ - 'showitem' => 'title', - ], - ], + 'ctrl' => [ + 'title' => 'LLL:EXT:styleguide/Resources/Private/Language/locallang.xlf:minimalTableTitle', + 'label' => 'title', + 'iconfile' => 'EXT:styleguide/Resources/Public/Icons/tx_styleguide.svg', + 'security' => [ + 'ignorePageTypeRestriction' => true, + ], + ], + 'columns' => [ + 'title' => [ + 'label' => 'LLL:EXT:styleguide/Resources/Private/Language/locallang.xlf:minimalTableTitleField', + 'config' => [ + 'type' => 'input', + ], + ], + ], + 'types' => [ + '0' => [ + 'showitem' => 'title', + ], + ], ]; diff --git a/typo3/sysext/styleguide/Configuration/TCA/tx_styleguide_valuesdefault.php b/typo3/sysext/styleguide/Configuration/TCA/tx_styleguide_valuesdefault.php index ed1900b487efa3b019490f90e00e1dbae0ee438f..83b50dd6fe722b7901f0b37330d709b34141e4b0 100644 --- a/typo3/sysext/styleguide/Configuration/TCA/tx_styleguide_valuesdefault.php +++ b/typo3/sysext/styleguide/Configuration/TCA/tx_styleguide_valuesdefault.php @@ -194,7 +194,7 @@ return [ ], ], - // @todo add default value examples for type=none + // @todo add default value examples for type=none 'select_1' => [ 'label' => 'select_1 default=2, renderType=selectSingle, three items, second pre-selected', diff --git a/typo3/sysext/styleguide/ext_tables.php b/typo3/sysext/styleguide/ext_tables.php index d178cc4bfa1abb65d8639ef9c55c4129c4cc6871..8579fdec4ec029dc5f60d608f133128a72c2a3a8 100644 --- a/typo3/sysext/styleguide/ext_tables.php +++ b/typo3/sysext/styleguide/ext_tables.php @@ -5,13 +5,13 @@ defined('TYPO3') or die(); // Register some custom permission options shown in BE group access lists $GLOBALS['TYPO3_CONF_VARS']['BE']['customPermOptions']['tx_styleguide_custom'] = [ 'header' => 'Custom styleguide permissions', - 'items' => [ - 'key1' => [ - 'Option 1', - // Icon has been registered above - 'tcarecords-tx_styleguide_forms-default', - 'Description 1', - ], + 'items' => [ + 'key1' => [ + 'Option 1', + // Icon has been registered above + 'tcarecords-tx_styleguide_forms-default', + 'Description 1', + ], 'key2' => [ 'Option 2', ],