diff --git a/Build/php-cs-fixer/config.php b/Build/php-cs-fixer/config.php index 375a41ae3462ebe81164a1dd09de50e826103c7e..6eaa940ebc175a261c0f65561ad070f31e44ad90 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'], 'blank_line_after_opening_tag' => true, 'braces' => ['allow_single_line_closure' => true], diff --git a/typo3/sysext/backend/Classes/Backend/ToolbarItems/ClearCacheToolbarItem.php b/typo3/sysext/backend/Classes/Backend/ToolbarItems/ClearCacheToolbarItem.php index 1947186a60837474756a6424b28c8c8ab4bf5321..e09ff50c8b00ed2df748f6b4dfb4464f287b92f0 100644 --- a/typo3/sysext/backend/Classes/Backend/ToolbarItems/ClearCacheToolbarItem.php +++ b/typo3/sysext/backend/Classes/Backend/ToolbarItems/ClearCacheToolbarItem.php @@ -138,10 +138,10 @@ class ClearCacheToolbarItem implements ToolbarItemInterface $view = $this->getFluidTemplateObject('ClearCacheToolbarItemSingle.html'); $cacheAction = end($this->cacheActions); $view->assignMultiple([ - 'link' => $cacheAction['href'], - 'title' => $cacheAction['title'], - 'iconIdentifier' => $cacheAction['iconIdentifier'], - ]); + 'link' => $cacheAction['href'], + 'title' => $cacheAction['title'], + 'iconIdentifier' => $cacheAction['iconIdentifier'], + ]); return $view->render(); } diff --git a/typo3/sysext/backend/Classes/Clipboard/Clipboard.php b/typo3/sysext/backend/Classes/Clipboard/Clipboard.php index a7b218872bd85139ca46ff1557f1094cece65b96..d21f5a529eeb0bd624589d009525ce65eca82c04 100644 --- a/typo3/sysext/backend/Classes/Clipboard/Clipboard.php +++ b/typo3/sysext/backend/Classes/Clipboard/Clipboard.php @@ -240,7 +240,7 @@ class Clipboard public function printClipboard(string $table = ''): string { $attributes = [ - 'table' => $table, + 'table' => $table, ]; GeneralUtility::makeInstance(PageRenderer::class)->loadRequireJsModule('TYPO3/CMS/Backend/ClipboardPanel'); return '<typo3-backend-clipboard-panel ' . GeneralUtility::implodeAttributes($attributes, true) . '></typo3-backend-clipboard-panel>'; diff --git a/typo3/sysext/backend/Classes/Controller/ColumnSelectorController.php b/typo3/sysext/backend/Classes/Controller/ColumnSelectorController.php index c5bc3c4481ce0d5689b4c30a7ab0afbd07777aff..890c16e69e6322ad19acef27b6e61c542c829279 100644 --- a/typo3/sysext/backend/Classes/Controller/ColumnSelectorController.php +++ b/typo3/sysext/backend/Classes/Controller/ColumnSelectorController.php @@ -73,7 +73,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/ResetPasswordController.php b/typo3/sysext/backend/Classes/Controller/ResetPasswordController.php index 87dbfaac9bea9032d660ac4908f122318fc090ed..6a50072f8d866066bffc8c9ebb49cb5b3d7b3b4f 100644 --- a/typo3/sysext/backend/Classes/Controller/ResetPasswordController.php +++ b/typo3/sysext/backend/Classes/Controller/ResetPasswordController.php @@ -182,9 +182,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 6b9b802f691194a7015a7a802bf3afd7052949ec..3b271e13331590127f161b4068c9d791b2d49c82 100644 --- a/typo3/sysext/backend/Classes/Form/Element/SelectSingleBoxElement.php +++ b/typo3/sysext/backend/Classes/Form/Element/SelectSingleBoxElement.php @@ -219,7 +219,7 @@ class SelectSingleBoxElement extends AbstractFormElement $attributes['value'] = $value; $html = [ '<option ' . GeneralUtility::implodeAttributes($attributes, 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/Element/SelectSingleElement.php b/typo3/sysext/backend/Classes/Form/Element/SelectSingleElement.php index aa7e4c279eac133e37a24d3d03f1d6b5845bf129..8a0a6315b62acea8266bb1ba5940b76a0193a809 100644 --- a/typo3/sysext/backend/Classes/Form/Element/SelectSingleElement.php +++ b/typo3/sysext/backend/Classes/Form/Element/SelectSingleElement.php @@ -266,14 +266,14 @@ class SelectSingleElement extends AbstractFormElement // @deprecated $resultArray['requireJsModules'][] = ['TYPO3/CMS/Backend/FormEngine/Element/SelectSingleElement' => implode(LF, [ 'function(SelectSingleElement) {', - 'SelectSingleElement.initializeOnReady(', - GeneralUtility::quoteJSvalue('#' . $selectId) . ',', - '{', - 'onChange: function() {', - implode('', $parameterArray['fieldChangeFunc']), - '}', - '}', - ');', + 'SelectSingleElement.initializeOnReady(', + GeneralUtility::quoteJSvalue('#' . $selectId) . ',', + '{', + 'onChange: function() {', + implode('', $parameterArray['fieldChangeFunc']), + '}', + '}', + ');', '}', ])]; } diff --git a/typo3/sysext/backend/Classes/Form/FieldWizard/SelectIcons.php b/typo3/sysext/backend/Classes/Form/FieldWizard/SelectIcons.php index 958ef4227d79645b6d01882329314943277209b7..5110b705c22dd3af0f9fc29ffed1f7270807b512 100644 --- a/typo3/sysext/backend/Classes/Form/FieldWizard/SelectIcons.php +++ b/typo3/sysext/backend/Classes/Form/FieldWizard/SelectIcons.php @@ -48,11 +48,11 @@ class SelectIcons extends AbstractNode if ($icon) { $fieldValue = $this->data['databaseRow'][$this->data['fieldName']]; $selectIcons[] = [ - 'title' => $item[0], - 'active' => ($fieldValue[0] ?? false) === (string)($item[1] ?? ''), - 'icon' => $icon, - 'index' => $selectItemCounter, - ]; + 'title' => $item[0], + 'active' => ($fieldValue[0] ?? false) === (string)($item[1] ?? ''), + 'icon' => $icon, + 'index' => $selectItemCounter, + ]; } $selectItemCounter++; } diff --git a/typo3/sysext/backend/Classes/Tree/FileStorageTreeProvider.php b/typo3/sysext/backend/Classes/Tree/FileStorageTreeProvider.php index 07f060f9f6c4c4f0627db7a43613b40cb0573b52..2635e6f46657ce4d0ac06ca205ffc3fe8127ad65 100644 --- a/typo3/sysext/backend/Classes/Tree/FileStorageTreeProvider.php +++ b/typo3/sysext/backend/Classes/Tree/FileStorageTreeProvider.php @@ -250,8 +250,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 e24c2eb569ca711683d29efc5c1e5fea567eb099..5028a229707c642a1d639f94c61a4822e04768c4 100644 --- a/typo3/sysext/backend/Tests/Functional/Controller/EditDocumentControllerTest.php +++ b/typo3/sysext/backend/Tests/Functional/Controller/EditDocumentControllerTest.php @@ -118,13 +118,13 @@ 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 627f20ea25447b81bb243643fb378c2b03d52b49..4b05fc02f00301563f970a45edfe5ac2c44016a8 100644 --- a/typo3/sysext/backend/Tests/Functional/Controller/Page/TreeControllerTest.php +++ b/typo3/sysext/backend/Tests/Functional/Controller/Page/TreeControllerTest.php @@ -294,13 +294,13 @@ 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', @@ -316,9 +316,9 @@ 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 81d4c4a36633a1bc03c70bdf2317eb940da6ddab..b943f18377759565383a370cfc878fb25f6b84e1 100644 --- a/typo3/sysext/backend/Tests/Functional/Controller/ResetPasswordControllerTest.php +++ b/typo3/sysext/backend/Tests/Functional/Controller/ResetPasswordControllerTest.php @@ -115,9 +115,9 @@ 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 @@ 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/Template/Components/Buttons/Action/ShortcutButtonTest.php b/typo3/sysext/backend/Tests/Functional/Template/Components/Buttons/Action/ShortcutButtonTest.php index 7e6f8479cd535421e7b2aadf16c8971698e8c827..2be3d3520be917aaa4dedb8036f165f632a79403 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 @@ -99,7 +99,7 @@ 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 bf080a47da5f608ab7f22873ae14b72c4932d463..9dca6a6b937ebe2d74186c8f141ab83fc226f4e9 100644 --- a/typo3/sysext/backend/Tests/Unit/Controller/Wizard/SuggestWizardControllerTest.php +++ b/typo3/sysext/backend/Tests/Unit/Controller/Wizard/SuggestWizardControllerTest.php @@ -141,11 +141,11 @@ class SuggestWizardControllerTest extends UnitTestCase public 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 cf678ba7b2099e8cbcb17a62d810719b182b6f5f..b563deb5d1f886b2e3da72c7971f2b575cdfd35b 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/Element/InputHiddenElementTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/Element/InputHiddenElementTest.php @@ -37,7 +37,7 @@ class InputHiddenElementTest extends UnitTestCase public function renderReturnsElementsAsAdditionalHiddenFields(): void { $data = [ - 'parameterArray' => [ + 'parameterArray' => [ 'itemFormElName' => 'foo', 'itemFormElValue' => 'bar', ], diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseRowInitializeNewTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseRowInitializeNewTest.php index 6cb479a05f4f5cc6b7820a21d5a17f10b210fac2..c638f5a7a5d4e6351c32abf109d5463619906bd4 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseRowInitializeNewTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseRowInitializeNewTest.php @@ -729,7 +729,7 @@ 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 309ff97f601eaa32a43bc7c06ea755c81e3079df..64f1e92e7d00ee42e820c847878e0143983a2579 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaLanguageTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaLanguageTest.php @@ -376,7 +376,7 @@ class TcaLanguageTest extends UnitTestCase 'aTable.' => [ 'aField.' => [ 'disableNoMatchingValueElement' => '1', - ], + ], ], ], ], @@ -553,35 +553,35 @@ class TcaLanguageTest extends UnitTestCase $siteFinder = $this->prophesize(SiteFinder::class); $siteFinder->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->reveal()); @@ -628,11 +628,11 @@ 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/core/Classes/Database/ConnectionPool.php b/typo3/sysext/core/Classes/Database/ConnectionPool.php index 1bc85a35d8668aed48f86407575ff86e273d18e6..412312343eb865b15a76b38c667e69da89a58814 100644 --- a/typo3/sysext/core/Classes/Database/ConnectionPool.php +++ b/typo3/sysext/core/Classes/Database/ConnectionPool.php @@ -73,8 +73,8 @@ class ConnectionPool 'pdo_pgsql' => PDOPgSqlDriver::class, 'pdo_sqlsrv' => PDOSqlsrvDriver::class, // TODO: not supported yet, need to be checked later -// 'pdo_oci' => PDOOCIDriver::class, -// 'drizzle_pdo_mysql' => DrizzlePDOMySQLDriver::class, + // 'pdo_oci' => PDOOCIDriver::class, + // 'drizzle_pdo_mysql' => DrizzlePDOMySQLDriver::class, ]; /** diff --git a/typo3/sysext/core/Classes/Database/QueryView.php b/typo3/sysext/core/Classes/Database/QueryView.php index f2a21e007226297b5f2362399c0df86ec0d2ebcc..2aaa69b6ea3625b7f55d5bf53e48150fc3f2af5e 100644 --- a/typo3/sysext/core/Classes/Database/QueryView.php +++ b/typo3/sysext/core/Classes/Database/QueryView.php @@ -713,15 +713,15 @@ class QueryView } else { $out .= '<div class="btn-group" role="group">'; $out .= '<a class="btn btn-default" href="' . htmlspecialchars((string)$uriBuilder->buildUriFromRoute('tce_db', [ - 'cmd' => [ - $table => [ - $row['uid'] => [ - 'undelete' => 1, - ], - ], + 'cmd' => [ + $table => [ + $row['uid'] => [ + 'undelete' => 1, ], - 'redirect' => GeneralUtility::linkThisScript(), - ])) . '" title="' . htmlspecialchars($this->languageService->getLL('undelete_only')) . '">'; + ], + ], + 'redirect' => GeneralUtility::linkThisScript(), + ])) . '" title="' . htmlspecialchars($this->languageService->getLL('undelete_only')) . '">'; $out .= $this->iconFactory->getIcon('actions-edit-restore', Icon::SIZE_SMALL)->render() . '</a>'; $formEngineParameters = [ 'edit' => [ @@ -733,15 +733,15 @@ class QueryView ]; $redirectUrl = (string)$uriBuilder->buildUriFromRoute('record_edit', $formEngineParameters); $out .= '<a class="btn btn-default" href="' . htmlspecialchars((string)$uriBuilder->buildUriFromRoute('tce_db', [ - 'cmd' => [ - $table => [ - $row['uid'] => [ - 'undelete' => 1, - ], + 'cmd' => [ + $table => [ + $row['uid'] => [ + 'undelete' => 1, ], ], - 'redirect' => $redirectUrl, - ])) . '" title="' . htmlspecialchars($this->languageService->getLL('undelete_and_edit')) . '">'; + ], + 'redirect' => $redirectUrl, + ])) . '" title="' . htmlspecialchars($this->languageService->getLL('undelete_and_edit')) . '">'; $out .= $this->iconFactory->getIcon('actions-delete-edit', Icon::SIZE_SMALL)->render() . '</a>'; $out .= '</div>'; } 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/Utility/GeneralUtility.php b/typo3/sysext/core/Classes/Utility/GeneralUtility.php index fa57cf9f5a5f156320f07505f1dba19454e9ab5a..b7605364088e851d2d1efb79bcb68db45dc1a4d9 100644 --- a/typo3/sysext/core/Classes/Utility/GeneralUtility.php +++ b/typo3/sysext/core/Classes/Utility/GeneralUtility.php @@ -1427,10 +1427,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 6f1ce009d1a64809f45dbc37b439876d95ea9f52..5269a73a7aa8170f2111c1dcd7abf295f379c694 100644 --- a/typo3/sysext/core/Tests/Functional/DataHandling/DataHandler/HookTest.php +++ b/typo3/sysext/core/Tests/Functional/DataHandling/DataHandler/HookTest.php @@ -89,8 +89,8 @@ class HookTest extends AbstractDataHandlerActionTestCase $this->recordIds['newContentId'] = $newTableIds[self::TABLE_Content][0]; $this->assertHookInvocationsCount([ - 'processDatamap_beforeStart', - 'processDatamap_afterAllOperations', + 'processDatamap_beforeStart', + 'processDatamap_afterAllOperations', ], 1); $this->assertHookInvocationsPayload([ diff --git a/typo3/sysext/core/Tests/Functional/DataHandling/Slug/SlugHelperTest.php b/typo3/sysext/core/Tests/Functional/DataHandling/Slug/SlugHelperTest.php index 55e578342179f0939694a77292af15308b145e2b..65fe7c45cff413f151411fc7fcfb0996f0ba1b09 100644 --- a/typo3/sysext/core/Tests/Functional/DataHandling/Slug/SlugHelperTest.php +++ b/typo3/sysext/core/Tests/Functional/DataHandling/Slug/SlugHelperTest.php @@ -133,13 +133,13 @@ class SlugHelperTest extends AbstractDataHandlerActionTestCase ], ], 'swiss page / german fallback parent' => [ - '/german-parent/swiss-page', - [ - 'uid' => '13', - 'title' => 'Swiss Page', - 'sys_language_uid' => 3, - ], - ], + '/german-parent/swiss-page', + [ + 'uid' => '13', + 'title' => 'Swiss Page', + 'sys_language_uid' => 3, + ], + ], ]; } diff --git a/typo3/sysext/core/Tests/Functional/RegistryTest.php b/typo3/sysext/core/Tests/Functional/RegistryTest.php index 6b31d8e17e925f0a5ef5f53fec6d555208dc3a77..7e6eecd8b8f0ccc248634ae389a65797a67d611f 100644 --- a/typo3/sysext/core/Tests/Functional/RegistryTest.php +++ b/typo3/sysext/core/Tests/Functional/RegistryTest.php @@ -116,14 +116,14 @@ 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/Functional/TypoScript/Parser/TypoScriptParserTest.php b/typo3/sysext/core/Tests/Functional/TypoScript/Parser/TypoScriptParserTest.php index 5891dff14d7e077c4604c0eace20ddbc3b5136bf..4d79be0ec105bb02fd42df72bfbf019e9aa51dea 100644 --- a/typo3/sysext/core/Tests/Functional/TypoScript/Parser/TypoScriptParserTest.php +++ b/typo3/sysext/core/Tests/Functional/TypoScript/Parser/TypoScriptParserTest.php @@ -40,8 +40,8 @@ class TypoScriptParserTest extends FunctionalTestCase '[GLOBAL]', 'RTE.default.proc.entryHTMLparser_db = 1', 'RTE.default.proc.entryHTMLparser_db {', - 'tags {', - '}', + 'tags {', + '}', '}', 'RTE.default.FE < RTE.default', diff --git a/typo3/sysext/core/Tests/Unit/Configuration/Parser/PageTsConfigParserTest.php b/typo3/sysext/core/Tests/Unit/Configuration/Parser/PageTsConfigParserTest.php index f41b23bbd56bd0ed3f615dca2a3284ce9837b2be..8a1b9d055925ba458c8955a94df26fd435492f17 100644 --- a/typo3/sysext/core/Tests/Unit/Configuration/Parser/PageTsConfigParserTest.php +++ b/typo3/sysext/core/Tests/Unit/Configuration/Parser/PageTsConfigParserTest.php @@ -70,11 +70,11 @@ class PageTsConfigParserTest extends UnitTestCase $cache->set( '1d0a3029a36cc56a82bfdb0642fcd912', [ - 0 => [ - 'sections' => [$cachedSection], - 'TSconfig' => ['mod' => ['web_layout' => 'disabled']], - ], - 1 => 'fb3c41ea55f42a993fc143a54e09bbdd', ] + 0 => [ + 'sections' => [$cachedSection], + 'TSconfig' => ['mod' => ['web_layout' => 'disabled']], + ], + 1 => 'fb3c41ea55f42a993fc143a54e09bbdd', ] ); $subject = new PageTsConfigParser( $typoScriptParserProphecy->reveal(), diff --git a/typo3/sysext/core/Tests/Unit/ExpressionLanguage/ResolverTest.php b/typo3/sysext/core/Tests/Unit/ExpressionLanguage/ResolverTest.php index 9f581f21cfedebfde2e5c7e5d1368cb8a20c31c0..c73de3b39da8590faa15a17f7207d425970fa180 100644 --- a/typo3/sysext/core/Tests/Unit/ExpressionLanguage/ResolverTest.php +++ b/typo3/sysext/core/Tests/Unit/ExpressionLanguage/ResolverTest.php @@ -118,7 +118,7 @@ class ResolverTest extends UnitTestCase 'var2' => '2', 'varTrue' => true, 'varFalse' => false, - ]); + ]); GeneralUtility::addInstance(DefaultProvider::class, $contextProphecy->reveal()); $expressionLanguageResolver = new Resolver('default', []); self::assertSame($expectedResult, $expressionLanguageResolver->evaluate($expression)); @@ -158,7 +158,7 @@ class ResolverTest extends UnitTestCase $contextProphecy->getExpressionLanguageVariables()->willReturn([ 'var1' => 'FOO', 'var2' => 'foo', - ]); + ]); GeneralUtility::addInstance(DefaultProvider::class, $contextProphecy->reveal()); GeneralUtility::addInstance(DefaultFunctionsProvider::class, $expressionProvider->reveal()); $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 123fd1ef59c7298e44c427506eca47cbaf730c4a..aeeb3063e090d8e0a760e755d94f6444e30137e2 100644 --- a/typo3/sysext/core/Tests/Unit/Http/ServerRequestFactoryTest.php +++ b/typo3/sysext/core/Tests/Unit/Http/ServerRequestFactoryTest.php @@ -124,39 +124,39 @@ 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 98224b711b0a150a6ceed5b19a6e0492b78deeae..7e3dc15e9eb4af50669728334d1641167ce5afba 100644 --- a/typo3/sysext/core/Tests/Unit/Mail/MailMessageTest.php +++ b/typo3/sysext/core/Tests/Unit/Mail/MailMessageTest.php @@ -347,11 +347,11 @@ class MailMessageTest extends UnitTestCase public 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 fe8e725e7f6ae40cc54f307262cc71397a11a486..59d980202b6d97ae139437c3fff6588d4934a097 100644 --- a/typo3/sysext/core/Tests/Unit/Resource/FileTest.php +++ b/typo3/sysext/core/Tests/Unit/Resource/FileTest.php @@ -222,9 +222,9 @@ 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/Utility/ArrayUtilityTest.php b/typo3/sysext/core/Tests/Unit/Utility/ArrayUtilityTest.php index 9bc6642b8f0902af867a84a7968230e56476db99..17d959087ea2f8315b79eb03cd97b4ba5c6387c0 100644 --- a/typo3/sysext/core/Tests/Unit/Utility/ArrayUtilityTest.php +++ b/typo3/sysext/core/Tests/Unit/Utility/ArrayUtilityTest.php @@ -2780,7 +2780,7 @@ class ArrayUtilityTest extends UnitTestCase 'input' => [ '10.' => [ 'wrap' => 'foo', - ], + ], '20.' => [ 'wrap' => 'bar', ], diff --git a/typo3/sysext/extbase/Tests/Functional/Persistence/QueryLocalizedDataTest.php b/typo3/sysext/extbase/Tests/Functional/Persistence/QueryLocalizedDataTest.php index e0481bca22dbc20a2df96e3fe34a3b851c8c6f48..63481cc8775e0499184d428b3e0114524d8d93d2 100644 --- a/typo3/sysext/extbase/Tests/Functional/Persistence/QueryLocalizedDataTest.php +++ b/typo3/sysext/extbase/Tests/Functional/Persistence/QueryLocalizedDataTest.php @@ -1040,88 +1040,88 @@ class QueryLocalizedDataTest extends FunctionalTestCase public function postsWithoutRespectingSysLanguageDataProvider(): array { $lang0Expected = [ - [ - 'title' => 'Blog 1', - 'uid' => 1, - '_localizedUid' => 1, - ], - [ - 'title' => 'Blog 1', - 'uid' => 1, - '_localizedUid' => 1, - ], - ]; + [ + 'title' => 'Blog 1', + 'uid' => 1, + '_localizedUid' => 1, + ], + [ + 'title' => 'Blog 1', + 'uid' => 1, + '_localizedUid' => 1, + ], + ]; $mixed = [ - [ - 'title' => 'Blog 1', - 'uid' => 1, - '_localizedUid' => 1, - ], - [ - 'title' => 'Blog 1 DK', - 'uid' => 2, - '_localizedUid' => 2, - ], - ]; + [ + 'title' => 'Blog 1', + 'uid' => 1, + '_localizedUid' => 1, + ], + [ + 'title' => 'Blog 1 DK', + 'uid' => 2, + '_localizedUid' => 2, + ], + ]; return [ - [ - 'language' => 0, - 'overlay' => LanguageAspect::OVERLAYS_ON, - 'expected' => $lang0Expected, - ], - [ - 'language' => 0, - 'overlay' => LanguageAspect::OVERLAYS_ON, - 'expected' => $lang0Expected, - ], - [ - 'language' => 0, - 'overlay' => LanguageAspect::OVERLAYS_OFF, - 'expected' => $mixed, - ], - [ - 'language' => 0, - 'overlay' => LanguageAspect::OVERLAYS_OFF, - 'expected' => $mixed, - ], - [ - 'language' => 1, - 'overlay' => LanguageAspect::OVERLAYS_ON, - 'expected' => [ - [ - 'title' => 'Blog 1 DK', - 'uid' => 1, - '_localizedUid' => 2, - ], - [ - 'title' => 'Blog 1 DK', - 'uid' => 1, - '_localizedUid' => 2, - ], - ], - ], - [ - 'language' => 1, - 'overlay' => LanguageAspect::OVERLAYS_ON, - 'expected' => [ - [ - 'title' => 'Blog 1 DK', - 'uid' => 1, - '_localizedUid' => 2, - ], - [ - 'title' => 'Blog 1 DK', - 'uid' => 1, - '_localizedUid' => 2, - ], - ], - ], - [ - 'language' => 1, - 'overlay' => LanguageAspect::OVERLAYS_OFF, - 'expected' => $mixed, - ], - ]; + [ + 'language' => 0, + 'overlay' => LanguageAspect::OVERLAYS_ON, + 'expected' => $lang0Expected, + ], + [ + 'language' => 0, + 'overlay' => LanguageAspect::OVERLAYS_ON, + 'expected' => $lang0Expected, + ], + [ + 'language' => 0, + 'overlay' => LanguageAspect::OVERLAYS_OFF, + 'expected' => $mixed, + ], + [ + 'language' => 0, + 'overlay' => LanguageAspect::OVERLAYS_OFF, + 'expected' => $mixed, + ], + [ + 'language' => 1, + 'overlay' => LanguageAspect::OVERLAYS_ON, + 'expected' => [ + [ + 'title' => 'Blog 1 DK', + 'uid' => 1, + '_localizedUid' => 2, + ], + [ + 'title' => 'Blog 1 DK', + 'uid' => 1, + '_localizedUid' => 2, + ], + ], + ], + [ + 'language' => 1, + 'overlay' => LanguageAspect::OVERLAYS_ON, + 'expected' => [ + [ + 'title' => 'Blog 1 DK', + 'uid' => 1, + '_localizedUid' => 2, + ], + [ + 'title' => 'Blog 1 DK', + 'uid' => 1, + '_localizedUid' => 2, + ], + ], + ], + [ + 'language' => 1, + 'overlay' => LanguageAspect::OVERLAYS_OFF, + 'expected' => $mixed, + ], + ]; } /** diff --git a/typo3/sysext/extbase/Tests/Unit/Mvc/View/JsonViewTest.php b/typo3/sysext/extbase/Tests/Unit/Mvc/View/JsonViewTest.php index b67b3def57c330701abad4d728afafb2a9d6a291..933d0d40c96d7ccb504509a23dd8666a25a44fa4 100644 --- a/typo3/sysext/extbase/Tests/Unit/Mvc/View/JsonViewTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Mvc/View/JsonViewTest.php @@ -130,9 +130,9 @@ class JsonViewTest extends UnitTestCase $configuration = [ '_only' => ['name', 'path', 'properties'], '_descend' => [ - 'properties' => [ - '_exclude' => ['prohibited'], - ], + 'properties' => [ + '_exclude' => ['prohibited'], + ], ], ]; $expected = [ @@ -379,9 +379,9 @@ class JsonViewTest extends UnitTestCase $object->value1 = new \stdClass(); $configuration = [ '_descend' => [ - 'value1' => [ - '_exposeObjectIdentifier' => true, - ], + 'value1' => [ + '_exposeObjectIdentifier' => true, + ], ], ]; diff --git a/typo3/sysext/form/Tests/Functional/RequestHandling/RequestHandlingTest.php b/typo3/sysext/form/Tests/Functional/RequestHandling/RequestHandlingTest.php index d373bf4db44e6ac8bd235d120980f9fc0c0aec95..73cb2acd294f23f63df21cc29b51b010c9c2dccc 100644 --- a/typo3/sysext/form/Tests/Functional/RequestHandling/RequestHandlingTest.php +++ b/typo3/sysext/form/Tests/Functional/RequestHandling/RequestHandlingTest.php @@ -100,9 +100,9 @@ class RequestHandlingTest extends AbstractRequestHandlingTest // ]; yield 'Multistep form / COA_INT FLUIDTEMPLATE through ext:form controller' => [ - 'formIdentifier' => 'FormFromCoaIntFluidtemplateThroughExtFormController', - 'formNamePrefix' => 'tx_form_formframework', - ]; + 'formIdentifier' => 'FormFromCoaIntFluidtemplateThroughExtFormController', + 'formNamePrefix' => 'tx_form_formframework', + ]; } /** @@ -234,8 +234,8 @@ class RequestHandlingTest extends AbstractRequestHandlingTest // ]; yield 'Multistep form / COA_INT FLUIDTEMPLATE through ext:form controller' => [ - 'formIdentifier' => 'FormFromCoaIntFluidtemplateThroughExtFormController', - ]; + 'formIdentifier' => 'FormFromCoaIntFluidtemplateThroughExtFormController', + ]; } /** diff --git a/typo3/sysext/form/Tests/Unit/Domain/Configuration/FormDefinitionConversionServiceTest.php b/typo3/sysext/form/Tests/Unit/Domain/Configuration/FormDefinitionConversionServiceTest.php index 27e6a9bb3d3614f68682f7ed9fa34d76e44fb24e..7870a4de3e712ecffac5f8648ff4efbdc2f75597 100644 --- a/typo3/sysext/form/Tests/Unit/Domain/Configuration/FormDefinitionConversionServiceTest.php +++ b/typo3/sysext/form/Tests/Unit/Domain/Configuration/FormDefinitionConversionServiceTest.php @@ -101,32 +101,32 @@ 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); @@ -163,28 +163,28 @@ 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 f4ccf06254a8675ec7b063f59787b13131d9c853..60ba90cb6d9dca2372fd151fbc8fe646f7574054 100644 --- a/typo3/sysext/form/Tests/Unit/Mvc/Property/TypeConverter/FormDefinitionArrayConverterTest.php +++ b/typo3/sysext/form/Tests/Unit/Mvc/Property/TypeConverter/FormDefinitionArrayConverterTest.php @@ -65,14 +65,14 @@ 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'], [], '', false); @@ -136,12 +136,12 @@ class FormDefinitionArrayConverterTest extends UnitTestCase '_value' => 'yyy1', ], [ - '_label' => 'xxx2', - '_value' => 'yyy2', + '_label' => 'xxx2', + '_value' => 'yyy2', ], [ - '_label' => 'xxx3', - '_value' => 'yyy2', + '_label' => 'xxx3', + '_value' => 'yyy2', ], ], '_label' => 'xxx', @@ -186,14 +186,14 @@ 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); @@ -217,14 +217,14 @@ 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/form/Tests/Unit/Service/TranslationServiceTest.php b/typo3/sysext/form/Tests/Unit/Service/TranslationServiceTest.php index 725702f131ddb2cf330b0931a70468ae6a338c2b..b8606ba0dbedc0beb024cb96acc89f1b28a496b6 100644 --- a/typo3/sysext/form/Tests/Unit/Service/TranslationServiceTest.php +++ b/typo3/sysext/form/Tests/Unit/Service/TranslationServiceTest.php @@ -922,10 +922,10 @@ class TranslationServiceTest extends UnitTestCase $element->getRenderingOptions()->willReturn([ 'translation' => [ 'arguments' => [ - 'label' => [ - 'this', - 'that', - ], + 'label' => [ + 'this', + 'that', + ], ], ], ]); @@ -1008,7 +1008,7 @@ class TranslationServiceTest extends UnitTestCase $textElementXlfPaths = [ 10 => 'EXT:form/Tests/Unit/Service/Fixtures/locallang_text.xlf', 20 => 'EXT:form/Tests/Unit/Service/Fixtures/locallang_additional_text.xlf', - ]; + ]; $formRuntimeIdentifier = 'form-runtime-identifier'; $formElementIdentifier = 'form-element-identifier'; diff --git a/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php b/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php index e745664f4d7ce90ae71ee3f14f3eae22ce5c8ffb..a9c1bdf908e6baed24ba5a681c5060e045ad65e4 100644 --- a/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php +++ b/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php @@ -108,8 +108,8 @@ class TypoScriptFrontendController implements LoggerAwareInterface * List previously publicly accessible variables */ private array $deprecatedPublicProperties = [ - 'ATagParams' => 'Using ATagParams will not be possible anymore in TYPO3 v12.0. Use TSFE->config[config][ATagParams] instead.', - ]; + 'ATagParams' => 'Using ATagParams will not be possible anymore in TYPO3 v12.0. Use TSFE->config[config][ATagParams] instead.', + ]; /** * The page id (int) diff --git a/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php b/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php index 5e4068d4351ac376ba182af26308308a1433c4b5..a5ae1f5a4bc7c44840db72b53c2d8a9b1138bbf6 100644 --- a/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php +++ b/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php @@ -1963,8 +1963,8 @@ 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/ContentObject/FluidTemplateContentObjectTest.php b/typo3/sysext/frontend/Tests/Unit/ContentObject/FluidTemplateContentObjectTest.php index c70f61164b3fb0b5f57b5e030abdb092d749b3c9..548ba6c9bcd4b472a0cd87624f911db6678549b7 100644 --- a/typo3/sysext/frontend/Tests/Unit/ContentObject/FluidTemplateContentObjectTest.php +++ b/typo3/sysext/frontend/Tests/Unit/ContentObject/FluidTemplateContentObjectTest.php @@ -546,10 +546,10 @@ class FluidTemplateContentObjectTest extends UnitTestCase $subject->render($configuration); $standAloneView->setPartialRootPaths([ - 0 => Environment::getPublicPath() . '/main', - 10 => Environment::getPublicPath() . '/foo', - 20 => Environment::getPublicPath() . '/bar', - ]) + 0 => Environment::getPublicPath() . '/main', + 10 => Environment::getPublicPath() . '/foo', + 20 => Environment::getPublicPath() . '/bar', + ]) ->willReturn(new ReturnTypeNode('void')) ->shouldHaveBeenCalled(); } diff --git a/typo3/sysext/impexp/Tests/Functional/Export/PagesAndTtContentTest.php b/typo3/sysext/impexp/Tests/Functional/Export/PagesAndTtContentTest.php index 65bf03aa3ce0172aa7222ce7dba1881027ba4352..530ded56fbc64807ed06c65c52da014448e56188 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; class PagesAndTtContentTest extends AbstractImportExportTestCase { protected $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 $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 afea1bcb39ebcd1338a5cdd946dcdc0eafc3219f..36bae8afd426eb61655cb1a767bf9b76679f7513 100644 --- a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportPageAndRecords.php +++ b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportPageAndRecords.php @@ -1,450 +1,450 @@ <?php return [ - 'update' => false, - 'showDiff' => false, - 'insidePageTree' => - [ - 0 => + 'update' => false, + 'showDiff' => false, + 'insidePageTree' => [ - 'ref' => 'pages:0', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span title="pages:0"><span class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default"> + 0 => + [ + 'ref' => 'pages:0', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span title="pages:0"><span class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default"> <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></span>', - 'title' => '', - 'active' => 'active', - 'controls' => ' + 'title' => '', + 'active' => 'active', + 'controls' => ' <input type="checkbox" class="t3js-exclude-checkbox" name="tx_impexp[exclude][pages:0]" id="checkExcludepages:0" value="1" /> <label for="checkExcludepages:0">Exclude</label>', - 'message' => '', - ], - 1 => - [ - 'ref' => 'be_users:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => ' <span title="be_users:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-user-admin" data-identifier="status-user-admin"> + 'message' => '', + ], + 1 => + [ + 'ref' => 'be_users:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => ' <span title="be_users:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-user-admin" data-identifier="status-user-admin"> <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></span>', - 'title' => 'admin', - 'active' => 'active', - 'controls' => ' + 'title' => 'admin', + 'active' => 'active', + 'controls' => ' <input type="checkbox" class="t3js-exclude-checkbox" name="tx_impexp[exclude][be_users:1]" id="checkExcludebe_users:1" value="1" /> <label for="checkExcludebe_users:1">Exclude</label>', - 'message' => '', - ], - 2 => - [ - 'ref' => 'sys_file:4', - 'type' => 'record', - 'msg' => '', - 'preCode' => ' <span title="sys_file:4"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-text-text" data-identifier="mimetypes-text-text"> + 'message' => '', + ], + 2 => + [ + 'ref' => 'sys_file:4', + 'type' => 'record', + 'msg' => '', + 'preCode' => ' <span title="sys_file:4"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-text-text" data-identifier="mimetypes-text-text"> <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></span>', - 'title' => 'Empty.html', - 'active' => 'active', - 'controls' => ' + 'title' => 'Empty.html', + 'active' => 'active', + 'controls' => ' <input type="checkbox" class="t3js-exclude-checkbox" name="tx_impexp[exclude][sys_file:4]" id="checkExcludesys_file:4" value="1" /> <label for="checkExcludesys_file:4">Exclude</label>', - 'message' => '', - ], - 3 => - [ - 'ref' => 'sys_file:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => ' <span title="sys_file:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image"> + 'message' => '', + ], + 3 => + [ + 'ref' => 'sys_file:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => ' <span title="sys_file:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image"> <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></span>', - 'title' => 'typo3_image2.jpg', - 'active' => 'active', - 'controls' => ' + 'title' => 'typo3_image2.jpg', + 'active' => 'active', + 'controls' => ' <input type="checkbox" class="t3js-exclude-checkbox" name="tx_impexp[exclude][sys_file:1]" id="checkExcludesys_file:1" value="1" /> <label for="checkExcludesys_file:1">Exclude</label>', - 'message' => '', - ], - 4 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> + 'message' => '', + ], + 4 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> <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></span>', - 'controls' => '', - 'message' => '', - ], - 5 => - [ - 'ref' => 'sys_file:2', - 'type' => 'record', - 'msg' => '', - 'preCode' => ' <span title="sys_file:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image"> + 'controls' => '', + 'message' => '', + ], + 5 => + [ + 'ref' => 'sys_file:2', + 'type' => 'record', + 'msg' => '', + 'preCode' => ' <span title="sys_file:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image"> <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></span>', - 'title' => 'typo3_image3.jpg', - 'active' => 'active', - 'controls' => ' + 'title' => 'typo3_image3.jpg', + 'active' => 'active', + 'controls' => ' <input type="checkbox" class="t3js-exclude-checkbox" name="tx_impexp[exclude][sys_file:2]" id="checkExcludesys_file:2" value="1" /> <label for="checkExcludesys_file:2">Exclude</label>', - 'message' => '', - ], - 6 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> + 'message' => '', + ], + 6 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> <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></span>', - 'controls' => '', - 'message' => '', - ], - 7 => - [ - 'ref' => 'sys_file:3', - 'type' => 'record', - 'msg' => '', - 'preCode' => ' <span title="sys_file:3"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image"> + 'controls' => '', + 'message' => '', + ], + 7 => + [ + 'ref' => 'sys_file:3', + 'type' => 'record', + 'msg' => '', + 'preCode' => ' <span title="sys_file:3"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image"> <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></span>', - 'title' => 'typo3_image5.jpg', - 'active' => 'active', - 'controls' => ' + 'title' => 'typo3_image5.jpg', + 'active' => 'active', + 'controls' => ' <input type="checkbox" class="t3js-exclude-checkbox" name="tx_impexp[exclude][sys_file:3]" id="checkExcludesys_file:3" value="1" /> <label for="checkExcludesys_file:3">Exclude</label>', - 'message' => '', - ], - 8 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> + 'message' => '', + ], + 8 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> <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></span>', - 'controls' => '', - 'message' => '', - ], - 9 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => ' <span title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-sys_file_storage" data-identifier="mimetypes-x-sys_file_storage"> + 'controls' => '', + 'message' => '', + ], + 9 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => ' <span title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-sys_file_storage" data-identifier="mimetypes-x-sys_file_storage"> <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></span>', - 'title' => 'fileadmin', - 'active' => 'active', - 'controls' => ' + 'title' => 'fileadmin', + 'active' => 'active', + 'controls' => ' <input type="checkbox" class="t3js-exclude-checkbox" name="tx_impexp[exclude][sys_file_storage:1]" id="checkExcludesys_file_storage:1" value="1" /> <label for="checkExcludesys_file_storage:1">Exclude</label>', - 'message' => '', - ], - 10 => - [ - 'ref' => 'pages:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => ' <span title="pages:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default"> + 'message' => '', + ], + 10 => + [ + 'ref' => 'pages:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => ' <span title="pages:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default"> <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></span>', - 'title' => '<a href="#" >Root</a>', - 'active' => 'active', - 'controls' => ' + 'title' => '<a href="#" >Root</a>', + 'active' => 'active', + 'controls' => ' <input type="checkbox" class="t3js-exclude-checkbox" name="tx_impexp[exclude][pages:1]" id="checkExcludepages:1" value="1" /> <label for="checkExcludepages:1">Exclude</label>', - 'message' => '', - ], - 11 => - [ - 'ref' => 'tt_content:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => ' <span title="tt_content:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text"> + 'message' => '', + ], + 11 => + [ + 'ref' => 'tt_content:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => ' <span title="tt_content:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text"> <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></span>', - 'title' => 'Test content', - 'active' => 'active', - 'controls' => ' + 'title' => 'Test content', + 'active' => 'active', + 'controls' => ' <input type="checkbox" class="t3js-exclude-checkbox" name="tx_impexp[exclude][tt_content:1]" id="checkExcludett_content:1" value="1" /> <label for="checkExcludett_content:1">Exclude</label>', - 'message' => '', - ], - 12 => - [ - 'ref' => 'SOFTREF', - 'type' => 'softref', - 'msg' => '', - 'preCode' => ' <span title="SOFTREF"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft"> + 'message' => '', + ], + 12 => + [ + 'ref' => 'SOFTREF', + 'type' => 'softref', + 'msg' => '', + 'preCode' => ' <span title="SOFTREF"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft"> <span class="icon-markup"> <img src="typo3/sysext/impexp/Resources/Public/Icons/status-reference-soft.png" width="16" height="16" alt="" /> </span> </span></span>', - 'title' => '<em>header_link, "typolink"</em> : <span title="file:2">file:2</span><br/> Record <strong>sys_file:2</strong>', - '_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/> Record <strong>sys_file:2</strong>', + '_softRefInfo' => + [ + 'field' => 'header_link', + 'spKey' => 'typolink', + 'matchString' => 'file:2', + 'subst' => + [ + 'type' => 'db', + 'recordRef' => 'sys_file:2', + 'tokenID' => '2487ce518ed56d22f20f259928ff43f1', + 'tokenValue' => 'file:2', + ], + ], + 'controls' => '<select name="tx_impexp[softrefCfg][2487ce518ed56d22f20f259928ff43f1][mode]"><option value="" selected="selected"></option><option value="editable">Editable</option><option value="exclude">Exclude</option></select><br/>', + 'message' => '', ], - ], - 'controls' => '<select name="tx_impexp[softrefCfg][2487ce518ed56d22f20f259928ff43f1][mode]"><option value="" selected="selected"></option><option value="editable">Editable</option><option value="exclude">Exclude</option></select><br/>', - 'message' => '', - ], - 13 => - [ - 'ref' => 'sys_file:2', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">typo3_image3.jpg</span>', - 'preCode' => ' <span class="" title="sys_file:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> + 13 => + [ + 'ref' => 'sys_file:2', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">typo3_image3.jpg</span>', + 'preCode' => ' <span class="" title="sys_file:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> <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></span>', - 'controls' => '', - 'message' => '', - ], - 14 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> + 'controls' => '', + 'message' => '', + ], + 14 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> <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></span>', - 'controls' => '', - 'message' => '', - ], - 15 => - [ - 'ref' => 'tt_content:2', - 'type' => 'record', - 'msg' => '', - 'preCode' => ' <span title="tt_content:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text"> + 'controls' => '', + 'message' => '', + ], + 15 => + [ + 'ref' => 'tt_content:2', + 'type' => 'record', + 'msg' => '', + 'preCode' => ' <span title="tt_content:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text"> <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></span>', - 'title' => 'Test content 2', - 'active' => 'active', - 'controls' => ' + 'title' => 'Test content 2', + 'active' => 'active', + 'controls' => ' <input type="checkbox" class="t3js-exclude-checkbox" name="tx_impexp[exclude][tt_content:2]" id="checkExcludett_content:2" value="1" /> <label for="checkExcludett_content:2">Exclude</label>', - 'message' => '', - ], - 16 => - [ - 'ref' => 'SOFTREF', - 'type' => 'softref', - 'msg' => '', - 'preCode' => ' <span title="SOFTREF"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft"> + 'message' => '', + ], + 16 => + [ + 'ref' => 'SOFTREF', + 'type' => 'softref', + 'msg' => '', + 'preCode' => ' <span title="SOFTREF"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft"> <span class="icon-markup"> <img src="typo3/sysext/impexp/Resources/Public/Icons/status-reference-soft.png" width="16" height="16" alt="" /> </span> </span></span>', - 'title' => '<em>header_link, "typolink"</em> : <span title="file:4">file:4</span><br/> Record <strong>sys_file:4</strong>', - '_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/> Record <strong>sys_file:4</strong>', + '_softRefInfo' => + [ + 'field' => 'header_link', + 'spKey' => 'typolink', + 'matchString' => 'file:4', + 'subst' => + [ + 'type' => 'db', + 'recordRef' => 'sys_file:4', + 'tokenID' => '81b8b33df54ef433f1cbc7c3e513e6c4', + 'tokenValue' => 'file:4', + ], + ], + 'controls' => '<select name="tx_impexp[softrefCfg][81b8b33df54ef433f1cbc7c3e513e6c4][mode]"><option value="" selected="selected"></option><option value="editable">Editable</option><option value="exclude">Exclude</option></select><br/>', + 'message' => '', ], - ], - 'controls' => '<select name="tx_impexp[softrefCfg][81b8b33df54ef433f1cbc7c3e513e6c4][mode]"><option value="" selected="selected"></option><option value="editable">Editable</option><option value="exclude">Exclude</option></select><br/>', - 'message' => '', - ], - 17 => - [ - 'ref' => 'sys_file:4', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">Empty.html</span>', - 'preCode' => ' <span class="" title="sys_file:4"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> + 17 => + [ + 'ref' => 'sys_file:4', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">Empty.html</span>', + 'preCode' => ' <span class="" title="sys_file:4"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> <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></span>', - 'controls' => '', - 'message' => '', - ], - 18 => - [ - 'ref' => 'tt_content:3', - 'type' => 'record', - 'msg' => '', - 'preCode' => ' <span title="tt_content:3"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text"> + 'controls' => '', + 'message' => '', + ], + 18 => + [ + 'ref' => 'tt_content:3', + 'type' => 'record', + 'msg' => '', + 'preCode' => ' <span title="tt_content:3"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text"> <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></span>', - 'title' => 'Test content 3', - 'active' => 'hidden', - 'controls' => ' + 'title' => 'Test content 3', + 'active' => 'hidden', + 'controls' => ' <input type="checkbox" class="t3js-exclude-checkbox" name="tx_impexp[exclude][tt_content:3]" id="checkExcludett_content:3" value="1" /> <label for="checkExcludett_content:3">Exclude</label>', - 'message' => '', - ], - 19 => - [ - 'ref' => 'SOFTREF', - 'type' => 'softref', - 'msg' => '', - 'preCode' => ' <span title="SOFTREF"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft"> + 'message' => '', + ], + 19 => + [ + 'ref' => 'SOFTREF', + 'type' => 'softref', + 'msg' => '', + 'preCode' => ' <span title="SOFTREF"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft"> <span class="icon-markup"> <img src="typo3/sysext/impexp/Resources/Public/Icons/status-reference-soft.png" width="16" height="16" alt="" /> </span> </span></span>', - 'title' => '<em>header_link, "typolink"</em> : <span title="file:3">file:3</span><br/> Record <strong>sys_file:3</strong>', - '_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/> Record <strong>sys_file:3</strong>', + '_softRefInfo' => + [ + 'field' => 'header_link', + 'spKey' => 'typolink', + 'matchString' => 'file:3', + 'subst' => + [ + 'type' => 'db', + 'recordRef' => 'sys_file:3', + 'tokenID' => '0b1253ebf70ef5be862f29305e404edc', + 'tokenValue' => 'file:3', + ], + ], + 'controls' => '<select name="tx_impexp[softrefCfg][0b1253ebf70ef5be862f29305e404edc][mode]"><option value="" selected="selected"></option><option value="editable">Editable</option><option value="exclude">Exclude</option></select><br/>', + 'message' => '', ], - ], - 'controls' => '<select name="tx_impexp[softrefCfg][0b1253ebf70ef5be862f29305e404edc][mode]"><option value="" selected="selected"></option><option value="editable">Editable</option><option value="exclude">Exclude</option></select><br/>', - 'message' => '', - ], - 20 => - [ - 'ref' => 'sys_file:3', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">typo3_image5.jpg</span>', - 'preCode' => ' <span class="" title="sys_file:3"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> + 20 => + [ + 'ref' => 'sys_file:3', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">typo3_image5.jpg</span>', + 'preCode' => ' <span class="" title="sys_file:3"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> <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></span>', - 'controls' => '', - 'message' => '', - ], - 21 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> + 'controls' => '', + 'message' => '', + ], + 21 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> <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></span>', - 'controls' => '', - 'message' => '', - ], - 22 => - [ - 'ref' => 'pages:2', - 'type' => 'record', - 'msg' => '', - 'preCode' => ' <span title="pages:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default"> + 'controls' => '', + 'message' => '', + ], + 22 => + [ + 'ref' => 'pages:2', + 'type' => 'record', + 'msg' => '', + 'preCode' => ' <span title="pages:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default"> <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></span>', - 'title' => '<a href="#" >Dummy 1-2</a>', - 'active' => 'active', - 'controls' => ' + 'title' => '<a href="#" >Dummy 1-2</a>', + 'active' => 'active', + 'controls' => ' <input type="checkbox" class="t3js-exclude-checkbox" name="tx_impexp[exclude][pages:2]" id="checkExcludepages:2" value="1" /> <label for="checkExcludepages:2">Exclude</label>', - 'message' => '', - ], - 23 => - [ - 'ref' => 'pages:3', - 'type' => 'record', - 'msg' => '', - 'preCode' => ' <span title="pages:3"><span class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default"> + 'message' => '', + ], + 23 => + [ + 'ref' => 'pages:3', + 'type' => 'record', + 'msg' => '', + 'preCode' => ' <span title="pages:3"><span class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default"> <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></span>', - 'title' => '<a href="#" >Dummy 1-3</a>', - 'active' => 'hidden', - 'controls' => ' + 'title' => '<a href="#" >Dummy 1-3</a>', + 'active' => 'hidden', + 'controls' => ' <input type="checkbox" class="t3js-exclude-checkbox" name="tx_impexp[exclude][pages:3]" id="checkExcludepages:3" value="1" /> <label for="checkExcludepages:3">Exclude</label>', - 'message' => '', + '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 2bd427efa1bbd55c4dea41b89241bacc7f8cb0b3..8e32351590e7d42b6276ccdb1efd6db9d614c433 100644 --- a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportPageAndRecordsWithSoftRefs.php +++ b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportPageAndRecordsWithSoftRefs.php @@ -1,295 +1,295 @@ <?php return [ - 'update' => false, - 'showDiff' => false, - 'insidePageTree' => - [ - 0 => + 'update' => false, + 'showDiff' => false, + 'insidePageTree' => [ - 'ref' => 'pages:0', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span title="pages:0"><span class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default"> + 0 => + [ + 'ref' => 'pages:0', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span title="pages:0"><span class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default"> <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></span>', - 'title' => '', - 'active' => 'active', - 'controls' => ' + 'title' => '', + 'active' => 'active', + 'controls' => ' <input type="checkbox" class="t3js-exclude-checkbox" name="tx_impexp[exclude][pages:0]" id="checkExcludepages:0" value="1" /> <label for="checkExcludepages:0">Exclude</label>', - 'message' => '', - ], - 1 => - [ - 'ref' => 'be_users:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => ' <span title="be_users:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-user-admin" data-identifier="status-user-admin"> + 'message' => '', + ], + 1 => + [ + 'ref' => 'be_users:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => ' <span title="be_users:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-user-admin" data-identifier="status-user-admin"> <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></span>', - 'title' => 'admin', - 'active' => 'active', - 'controls' => ' + 'title' => 'admin', + 'active' => 'active', + 'controls' => ' <input type="checkbox" class="t3js-exclude-checkbox" name="tx_impexp[exclude][be_users:1]" id="checkExcludebe_users:1" value="1" /> <label for="checkExcludebe_users:1">Exclude</label>', - 'message' => '', - ], - 2 => - [ - 'ref' => 'sys_file:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => ' <span title="sys_file:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image"> + 'message' => '', + ], + 2 => + [ + 'ref' => 'sys_file:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => ' <span title="sys_file:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image"> <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></span>', - 'title' => 'typo3_image2.jpg', - 'active' => 'active', - 'controls' => ' + 'title' => 'typo3_image2.jpg', + 'active' => 'active', + 'controls' => ' <input type="checkbox" class="t3js-exclude-checkbox" name="tx_impexp[exclude][sys_file:1]" id="checkExcludesys_file:1" value="1" /> <label for="checkExcludesys_file:1">Exclude</label>', - 'message' => '', - ], - 3 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> + 'message' => '', + ], + 3 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> <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></span>', - 'controls' => '', - 'message' => '', - ], - 4 => - [ - 'ref' => 'sys_file:2', - 'type' => 'record', - 'msg' => '', - 'preCode' => ' <span title="sys_file:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image"> + 'controls' => '', + 'message' => '', + ], + 4 => + [ + 'ref' => 'sys_file:2', + 'type' => 'record', + 'msg' => '', + 'preCode' => ' <span title="sys_file:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image"> <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></span>', - 'title' => 'typo3_image3.jpg', - 'active' => 'active', - 'controls' => ' + 'title' => 'typo3_image3.jpg', + 'active' => 'active', + 'controls' => ' <input type="checkbox" class="t3js-exclude-checkbox" name="tx_impexp[exclude][sys_file:2]" id="checkExcludesys_file:2" value="1" /> <label for="checkExcludesys_file:2">Exclude</label>', - 'message' => '', - ], - 5 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> + 'message' => '', + ], + 5 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> <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></span>', - 'controls' => '', - 'message' => '', - ], - 6 => - [ - 'ref' => 'sys_file:3', - 'type' => 'record', - 'msg' => '', - 'preCode' => ' <span title="sys_file:3"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image"> + 'controls' => '', + 'message' => '', + ], + 6 => + [ + 'ref' => 'sys_file:3', + 'type' => 'record', + 'msg' => '', + 'preCode' => ' <span title="sys_file:3"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image"> <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></span>', - 'title' => 'typo3_image5.jpg', - 'active' => 'active', - 'controls' => ' + 'title' => 'typo3_image5.jpg', + 'active' => 'active', + 'controls' => ' <input type="checkbox" class="t3js-exclude-checkbox" name="tx_impexp[exclude][sys_file:3]" id="checkExcludesys_file:3" value="1" /> <label for="checkExcludesys_file:3">Exclude</label>', - 'message' => '', - ], - 7 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> + 'message' => '', + ], + 7 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> <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></span>', - 'controls' => '', - 'message' => '', - ], - 8 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => ' <span title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-sys_file_storage" data-identifier="mimetypes-x-sys_file_storage"> + 'controls' => '', + 'message' => '', + ], + 8 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => ' <span title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-sys_file_storage" data-identifier="mimetypes-x-sys_file_storage"> <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></span>', - 'title' => 'fileadmin', - 'active' => 'active', - 'controls' => ' + 'title' => 'fileadmin', + 'active' => 'active', + 'controls' => ' <input type="checkbox" class="t3js-exclude-checkbox" name="tx_impexp[exclude][sys_file_storage:1]" id="checkExcludesys_file_storage:1" value="1" /> <label for="checkExcludesys_file_storage:1">Exclude</label>', - 'message' => '', - ], - 9 => - [ - 'ref' => 'pages:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => ' <span title="pages:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default"> + 'message' => '', + ], + 9 => + [ + 'ref' => 'pages:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => ' <span title="pages:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default"> <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></span>', - 'title' => '<a href="#" >Root</a>', - 'active' => 'active', - 'controls' => ' + 'title' => '<a href="#" >Root</a>', + 'active' => 'active', + 'controls' => ' <input type="checkbox" class="t3js-exclude-checkbox" name="tx_impexp[exclude][pages:1]" id="checkExcludepages:1" value="1" /> <label for="checkExcludepages:1">Exclude</label>', - 'message' => '', - ], - 10 => - [ - 'ref' => 'tt_content:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => ' <span title="tt_content:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text"> + 'message' => '', + ], + 10 => + [ + 'ref' => 'tt_content:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => ' <span title="tt_content:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text"> <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></span>', - 'title' => 'Test content', - 'active' => 'active', - 'controls' => ' + 'title' => 'Test content', + 'active' => 'active', + 'controls' => ' <input type="checkbox" class="t3js-exclude-checkbox" name="tx_impexp[exclude][tt_content:1]" id="checkExcludett_content:1" value="1" /> <label for="checkExcludett_content:1">Exclude</label>', - 'message' => '', - ], - 11 => - [ - 'ref' => 'SOFTREF', - 'type' => 'softref', - 'msg' => '', - 'preCode' => ' <span title="SOFTREF"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft"> + 'message' => '', + ], + 11 => + [ + 'ref' => 'SOFTREF', + 'type' => 'softref', + 'msg' => '', + 'preCode' => ' <span title="SOFTREF"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft"> <span class="icon-markup"> <img src="typo3/sysext/impexp/Resources/Public/Icons/status-reference-soft.png" width="16" height="16" alt="" /> </span> </span></span>', - 'title' => '<em>header_link, "typolink"</em> : <span title="file:1">file:1</span><br/> Record <strong>sys_file:1</strong>', - '_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/> Record <strong>sys_file:1</strong>', + '_softRefInfo' => + [ + 'field' => 'header_link', + 'spKey' => 'typolink', + 'matchString' => 'file:1', + 'subst' => + [ + 'type' => 'db', + 'recordRef' => 'sys_file:1', + 'tokenID' => '2487ce518ed56d22f20f259928ff43f1', + 'tokenValue' => 'file:1', + ], + ], + 'controls' => '<select name="tx_impexp[softrefCfg][2487ce518ed56d22f20f259928ff43f1][mode]"><option value="" selected="selected"></option><option value="editable">Editable</option><option value="exclude">Exclude</option></select><br/>', + 'message' => '', ], - ], - 'controls' => '<select name="tx_impexp[softrefCfg][2487ce518ed56d22f20f259928ff43f1][mode]"><option value="" selected="selected"></option><option value="editable">Editable</option><option value="exclude">Exclude</option></select><br/>', - 'message' => '', - ], - 12 => - [ - 'ref' => 'sys_file:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">typo3_image2.jpg</span>', - 'preCode' => ' <span class="" title="sys_file:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> + 12 => + [ + 'ref' => 'sys_file:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">typo3_image2.jpg</span>', + 'preCode' => ' <span class="" title="sys_file:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> <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></span>', - 'controls' => '', - 'message' => '', - ], - 13 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> + 'controls' => '', + 'message' => '', + ], + 13 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> <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></span>', - 'controls' => '', - 'message' => '', - ], - 14 => - [ - 'ref' => 'pages:2', - 'type' => 'record', - 'msg' => '', - 'preCode' => ' <span title="pages:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default"> + 'controls' => '', + 'message' => '', + ], + 14 => + [ + 'ref' => 'pages:2', + 'type' => 'record', + 'msg' => '', + 'preCode' => ' <span title="pages:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default"> <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></span>', - 'title' => '<a href="#" >Dummy 1-2</a>', - 'active' => 'active', - 'controls' => ' + 'title' => '<a href="#" >Dummy 1-2</a>', + 'active' => 'active', + 'controls' => ' <input type="checkbox" class="t3js-exclude-checkbox" name="tx_impexp[exclude][pages:2]" id="checkExcludepages:2" value="1" /> <label for="checkExcludepages:2">Exclude</label>', - 'message' => '', - ], - 15 => - [ - 'ref' => 'pages:3', - 'type' => 'record', - 'msg' => '', - 'preCode' => ' <span title="pages:3"><span class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default"> + 'message' => '', + ], + 15 => + [ + 'ref' => 'pages:3', + 'type' => 'record', + 'msg' => '', + 'preCode' => ' <span title="pages:3"><span class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default"> <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></span>', - 'title' => '<a href="#" >Dummy 1-3</a>', - 'active' => 'hidden', - 'controls' => ' + 'title' => '<a href="#" >Dummy 1-3</a>', + 'active' => 'hidden', + 'controls' => ' <input type="checkbox" class="t3js-exclude-checkbox" name="tx_impexp[exclude][pages:3]" id="checkExcludepages:3" value="1" /> <label for="checkExcludepages:3">Exclude</label>', - 'message' => '', + '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 14db601b9e629f73b16905cbd9430d8c7819651e..c037ef9b723bbe4f6bf92b7462ae2472b5ca9fdd 100644 --- a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportRecords.php +++ b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportRecords.php @@ -1,134 +1,134 @@ <?php 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"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text"> + ], + 'outsidePageTree' => + [ + 0 => + [ + 'ref' => 'tt_content:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span title="tt_content:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text"> <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></span>', - 'title' => 'Test content', - 'active' => 'active', - 'controls' => ' + 'title' => 'Test content', + 'active' => 'active', + 'controls' => ' <input type="checkbox" class="t3js-exclude-checkbox" name="tx_impexp[exclude][tt_content:1]" id="checkExcludett_content:1" value="1" /> <label for="checkExcludett_content:1">Exclude</label>', - 'message' => '', - ], - 1 => - [ - 'ref' => 'SOFTREF', - 'type' => 'softref', - 'msg' => '', - 'preCode' => ' <span title="SOFTREF"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft"> + 'message' => '', + ], + 1 => + [ + 'ref' => 'SOFTREF', + 'type' => 'softref', + 'msg' => '', + 'preCode' => ' <span title="SOFTREF"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft"> <span class="icon-markup"> <img src="typo3/sysext/impexp/Resources/Public/Icons/status-reference-soft.png" width="16" height="16" alt="" /> </span> </span></span>', - 'title' => '<em>header_link, "typolink"</em> : <span title="file:2">file:2</span><br/> Record <strong>sys_file:2</strong>', - '_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/> Record <strong>sys_file:2</strong>', + '_softRefInfo' => + [ + 'field' => 'header_link', + 'spKey' => 'typolink', + 'matchString' => 'file:2', + 'subst' => + [ + 'type' => 'db', + 'recordRef' => 'sys_file:2', + 'tokenID' => '2487ce518ed56d22f20f259928ff43f1', + 'tokenValue' => 'file:2', + ], + ], + 'controls' => '<select name="tx_impexp[softrefCfg][2487ce518ed56d22f20f259928ff43f1][mode]"><option value="" selected="selected"></option><option value="editable">Editable</option><option value="exclude">Exclude</option></select><br/>', + 'message' => '', ], - ], - 'controls' => '<select name="tx_impexp[softrefCfg][2487ce518ed56d22f20f259928ff43f1][mode]"><option value="" selected="selected"></option><option value="editable">Editable</option><option value="exclude">Exclude</option></select><br/>', - 'message' => '', - ], - 2 => - [ - 'ref' => 'sys_file:2', - 'type' => 'rel', - 'msg' => 'LOST RELATION (Path: /)', - 'title' => '<span title="/">sys_file:2</span>', - 'preCode' => ' <span class="text-danger" title="sys_file:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-dialog-warning" data-identifier="status-dialog-warning"> + 2 => + [ + 'ref' => 'sys_file:2', + 'type' => 'rel', + 'msg' => 'LOST RELATION (Path: /)', + 'title' => '<span title="/">sys_file:2</span>', + 'preCode' => ' <span class="text-danger" title="sys_file:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-dialog-warning" data-identifier="status-dialog-warning"> <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></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"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text"> + 'controls' => '', + 'message' => '<span class="text-danger">LOST RELATION (Path: /)</span>', + ], + 3 => + [ + 'ref' => 'tt_content:2', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span title="tt_content:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text"> <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></span>', - 'title' => 'Test content 2', - 'active' => 'active', - 'controls' => ' + 'title' => 'Test content 2', + 'active' => 'active', + 'controls' => ' <input type="checkbox" class="t3js-exclude-checkbox" name="tx_impexp[exclude][tt_content:2]" id="checkExcludett_content:2" value="1" /> <label for="checkExcludett_content:2">Exclude</label>', - 'message' => '', - ], - 4 => - [ - 'ref' => 'SOFTREF', - 'type' => 'softref', - 'msg' => '', - 'preCode' => ' <span title="SOFTREF"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft"> + 'message' => '', + ], + 4 => + [ + 'ref' => 'SOFTREF', + 'type' => 'softref', + 'msg' => '', + 'preCode' => ' <span title="SOFTREF"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft"> <span class="icon-markup"> <img src="typo3/sysext/impexp/Resources/Public/Icons/status-reference-soft.png" width="16" height="16" alt="" /> </span> </span></span>', - 'title' => '<em>header_link, "typolink"</em> : <span title="file:4">file:4</span><br/> Record <strong>sys_file:4</strong>', - '_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/> Record <strong>sys_file:4</strong>', + '_softRefInfo' => + [ + 'field' => 'header_link', + 'spKey' => 'typolink', + 'matchString' => 'file:4', + 'subst' => + [ + 'type' => 'db', + 'recordRef' => 'sys_file:4', + 'tokenID' => '81b8b33df54ef433f1cbc7c3e513e6c4', + 'tokenValue' => 'file:4', + ], + ], + 'controls' => '<select name="tx_impexp[softrefCfg][81b8b33df54ef433f1cbc7c3e513e6c4][mode]"><option value="" selected="selected"></option><option value="editable">Editable</option><option value="exclude">Exclude</option></select><br/>', + 'message' => '', ], - ], - 'controls' => '<select name="tx_impexp[softrefCfg][81b8b33df54ef433f1cbc7c3e513e6c4][mode]"><option value="" selected="selected"></option><option value="editable">Editable</option><option value="exclude">Exclude</option></select><br/>', - 'message' => '', - ], - 5 => - [ - 'ref' => 'sys_file:4', - 'type' => 'rel', - 'title' => '<span title="/">sys_file:4</span>', - 'msg' => 'LOST RELATION (Path: /)', - 'preCode' => ' <span class="text-danger" title="sys_file:4"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-dialog-warning" data-identifier="status-dialog-warning"> + 5 => + [ + 'ref' => 'sys_file:4', + 'type' => 'rel', + 'title' => '<span title="/">sys_file:4</span>', + 'msg' => 'LOST RELATION (Path: /)', + 'preCode' => ' <span class="text-danger" title="sys_file:4"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-dialog-warning" data-identifier="status-dialog-warning"> <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></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/RenderPreviewExportTable.php b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportTable.php index cc93f2b8fc54bfddf8f9ef76146720d72341bcea..13533c27ac1b612a0e20d42480ab2853058cf011 100644 --- a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportTable.php +++ b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportTable.php @@ -1,195 +1,195 @@ <?php 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"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text"> + ], + 'outsidePageTree' => + [ + 0 => + [ + 'ref' => 'tt_content:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span title="tt_content:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text"> <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></span>', - 'title' => 'Test content', - 'active' => 'active', - 'controls' => ' + 'title' => 'Test content', + 'active' => 'active', + 'controls' => ' <input type="checkbox" class="t3js-exclude-checkbox" name="tx_impexp[exclude][tt_content:1]" id="checkExcludett_content:1" value="1" /> <label for="checkExcludett_content:1">Exclude</label>', - 'message' => '', - ], - 1 => - [ - 'ref' => 'SOFTREF', - 'type' => 'softref', - 'msg' => '', - 'preCode' => ' <span title="SOFTREF"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft"> + 'message' => '', + ], + 1 => + [ + 'ref' => 'SOFTREF', + 'type' => 'softref', + 'msg' => '', + 'preCode' => ' <span title="SOFTREF"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft"> <span class="icon-markup"> <img src="typo3/sysext/impexp/Resources/Public/Icons/status-reference-soft.png" width="16" height="16" alt="" /> </span> </span></span>', - 'title' => '<em>header_link, "typolink"</em> : <span title="file:2">file:2</span><br/> Record <strong>sys_file:2</strong>', - '_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/> Record <strong>sys_file:2</strong>', + '_softRefInfo' => + [ + 'field' => 'header_link', + 'spKey' => 'typolink', + 'matchString' => 'file:2', + 'subst' => + [ + 'type' => 'db', + 'recordRef' => 'sys_file:2', + 'tokenID' => '2487ce518ed56d22f20f259928ff43f1', + 'tokenValue' => 'file:2', + ], + ], + 'controls' => '<select name="tx_impexp[softrefCfg][2487ce518ed56d22f20f259928ff43f1][mode]"><option value="" selected="selected"></option><option value="editable">Editable</option><option value="exclude">Exclude</option></select><br/>', + 'message' => '', ], - ], - 'controls' => '<select name="tx_impexp[softrefCfg][2487ce518ed56d22f20f259928ff43f1][mode]"><option value="" selected="selected"></option><option value="editable">Editable</option><option value="exclude">Exclude</option></select><br/>', - 'message' => '', - ], - 2 => - [ - 'ref' => 'sys_file:2', - 'type' => 'rel', - 'msg' => 'LOST RELATION (Path: /)', - 'title' => '<span title="/">sys_file:2</span>', - 'preCode' => ' <span class="text-danger" title="sys_file:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-dialog-warning" data-identifier="status-dialog-warning"> + 2 => + [ + 'ref' => 'sys_file:2', + 'type' => 'rel', + 'msg' => 'LOST RELATION (Path: /)', + 'title' => '<span title="/">sys_file:2</span>', + 'preCode' => ' <span class="text-danger" title="sys_file:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-dialog-warning" data-identifier="status-dialog-warning"> <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></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"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text"> + 'controls' => '', + 'message' => '<span class="text-danger">LOST RELATION (Path: /)</span>', + ], + 3 => + [ + 'ref' => 'tt_content:2', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span title="tt_content:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text"> <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></span>', - 'title' => 'Test content 2', - 'active' => 'active', - 'controls' => ' + 'title' => 'Test content 2', + 'active' => 'active', + 'controls' => ' <input type="checkbox" class="t3js-exclude-checkbox" name="tx_impexp[exclude][tt_content:2]" id="checkExcludett_content:2" value="1" /> <label for="checkExcludett_content:2">Exclude</label>', - 'message' => '', - ], - 4 => - [ - 'ref' => 'SOFTREF', - 'type' => 'softref', - 'msg' => '', - 'preCode' => ' <span title="SOFTREF"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft"> + 'message' => '', + ], + 4 => + [ + 'ref' => 'SOFTREF', + 'type' => 'softref', + 'msg' => '', + 'preCode' => ' <span title="SOFTREF"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft"> <span class="icon-markup"> <img src="typo3/sysext/impexp/Resources/Public/Icons/status-reference-soft.png" width="16" height="16" alt="" /> </span> </span></span>', - 'title' => '<em>header_link, "typolink"</em> : <span title="file:4">file:4</span><br/> Record <strong>sys_file:4</strong>', - '_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/> Record <strong>sys_file:4</strong>', + '_softRefInfo' => + [ + 'field' => 'header_link', + 'spKey' => 'typolink', + 'matchString' => 'file:4', + 'subst' => + [ + 'type' => 'db', + 'recordRef' => 'sys_file:4', + 'tokenID' => '81b8b33df54ef433f1cbc7c3e513e6c4', + 'tokenValue' => 'file:4', + ], + ], + 'controls' => '<select name="tx_impexp[softrefCfg][81b8b33df54ef433f1cbc7c3e513e6c4][mode]"><option value="" selected="selected"></option><option value="editable">Editable</option><option value="exclude">Exclude</option></select><br/>', + 'message' => '', ], - ], - 'controls' => '<select name="tx_impexp[softrefCfg][81b8b33df54ef433f1cbc7c3e513e6c4][mode]"><option value="" selected="selected"></option><option value="editable">Editable</option><option value="exclude">Exclude</option></select><br/>', - 'message' => '', - ], - 5 => - [ - 'ref' => 'sys_file:4', - 'type' => 'rel', - 'msg' => 'LOST RELATION (Path: /)', - 'title' => '<span title="/">sys_file:4</span>', - 'preCode' => ' <span class="text-danger" title="sys_file:4"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-dialog-warning" data-identifier="status-dialog-warning"> + 5 => + [ + 'ref' => 'sys_file:4', + 'type' => 'rel', + 'msg' => 'LOST RELATION (Path: /)', + 'title' => '<span title="/">sys_file:4</span>', + 'preCode' => ' <span class="text-danger" title="sys_file:4"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-dialog-warning" data-identifier="status-dialog-warning"> <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></span>', - 'controls' => '', - 'message' => '<span class="text-danger">LOST RELATION (Path: /)</span>', - ], - 6 => - [ - 'ref' => 'tt_content:3', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span title="tt_content:3"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text"> + 'controls' => '', + 'message' => '<span class="text-danger">LOST RELATION (Path: /)</span>', + ], + 6 => + [ + 'ref' => 'tt_content:3', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span title="tt_content:3"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text"> <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></span>', - 'title' => 'Test content 3', - 'active' => 'hidden', - 'controls' => ' + 'title' => 'Test content 3', + 'active' => 'hidden', + 'controls' => ' <input type="checkbox" class="t3js-exclude-checkbox" name="tx_impexp[exclude][tt_content:3]" id="checkExcludett_content:3" value="1" /> <label for="checkExcludett_content:3">Exclude</label>', - 'message' => '', - ], - 7 => - [ - 'ref' => 'SOFTREF', - 'type' => 'softref', - 'msg' => '', - 'preCode' => ' <span title="SOFTREF"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft"> + 'message' => '', + ], + 7 => + [ + 'ref' => 'SOFTREF', + 'type' => 'softref', + 'msg' => '', + 'preCode' => ' <span title="SOFTREF"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft"> <span class="icon-markup"> <img src="typo3/sysext/impexp/Resources/Public/Icons/status-reference-soft.png" width="16" height="16" alt="" /> </span> </span></span>', - 'title' => '<em>header_link, "typolink"</em> : <span title="file:3">file:3</span><br/> Record <strong>sys_file:3</strong>', - '_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/> Record <strong>sys_file:3</strong>', + '_softRefInfo' => + [ + 'field' => 'header_link', + 'spKey' => 'typolink', + 'matchString' => 'file:3', + 'subst' => + [ + 'type' => 'db', + 'recordRef' => 'sys_file:3', + 'tokenID' => '0b1253ebf70ef5be862f29305e404edc', + 'tokenValue' => 'file:3', + ], + ], + 'controls' => '<select name="tx_impexp[softrefCfg][0b1253ebf70ef5be862f29305e404edc][mode]"><option value="" selected="selected"></option><option value="editable">Editable</option><option value="exclude">Exclude</option></select><br/>', + 'message' => '', ], - ], - 'controls' => '<select name="tx_impexp[softrefCfg][0b1253ebf70ef5be862f29305e404edc][mode]"><option value="" selected="selected"></option><option value="editable">Editable</option><option value="exclude">Exclude</option></select><br/>', - 'message' => '', - ], - 8 => - [ - 'ref' => 'sys_file:3', - 'type' => 'rel', - 'msg' => 'LOST RELATION (Path: /)', - 'title' => '<span title="/">sys_file:3</span>', - 'preCode' => ' <span class="text-danger" title="sys_file:3"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-dialog-warning" data-identifier="status-dialog-warning"> + 8 => + [ + 'ref' => 'sys_file:3', + 'type' => 'rel', + 'msg' => 'LOST RELATION (Path: /)', + 'title' => '<span title="/">sys_file:3</span>', + 'preCode' => ' <span class="text-danger" title="sys_file:3"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-dialog-warning" data-identifier="status-dialog-warning"> <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></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 cf37cd4d0462bbd0ec248f82d44fa46337fd50fd..86990c499f91be0b505a7572ddaf59f8c46e8d95 100644 --- a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecords.php +++ b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecords.php @@ -1,224 +1,224 @@ <?php return [ - 'update' => false, - 'showDiff' => false, - 'insidePageTree' => - [ - 0 => + 'update' => false, + 'showDiff' => false, + 'insidePageTree' => [ - 'ref' => 'pages:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span title="pages:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default"> + 0 => + [ + 'ref' => 'pages:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span title="pages:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default"> <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></span>', - 'title' => 'Root', - 'active' => 'active', - 'controls' => '', - 'message' => '', - ], - 1 => - [ - 'ref' => 'tt_content:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => ' <span title="tt_content:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text"> + 'title' => 'Root', + 'active' => 'active', + 'controls' => '', + 'message' => '', + ], + 1 => + [ + 'ref' => 'tt_content:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => ' <span title="tt_content:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text"> <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></span>', - 'title' => 'Test content', - 'active' => 'active', - 'controls' => '', - 'message' => '', - ], - 2 => - [ - 'ref' => 'SOFTREF', - 'type' => 'softref', - 'msg' => '', - 'preCode' => ' <span title="SOFTREF"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft"> + 'title' => 'Test content', + 'active' => 'active', + 'controls' => '', + 'message' => '', + ], + 2 => + [ + 'ref' => 'SOFTREF', + 'type' => 'softref', + 'msg' => '', + 'preCode' => ' <span title="SOFTREF"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft"> <span class="icon-markup"> <img src="typo3/sysext/impexp/Resources/Public/Icons/status-reference-soft.png" width="16" height="16" alt="" /> </span> </span></span>', - 'title' => '<em>header_link, "typolink"</em> : <span title="file:2">file:2</span><br/> Record <strong>sys_file:2</strong>', - '_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/> Record <strong>sys_file:2</strong>', + '_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="" title="sys_file:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> + 3 => + [ + 'ref' => 'sys_file:2', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">typo3_image3.jpg</span>', + 'preCode' => ' <span class="" title="sys_file:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> <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></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="text-danger" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-dialog-warning" data-identifier="status-dialog-warning"> + '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="text-danger" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-dialog-warning" data-identifier="status-dialog-warning"> <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></span>', - 'controls' => '', - 'message' => '<span class="text-danger">LOST RELATION (Path: /)</span>', - ], - 5 => - [ - 'ref' => 'tt_content:2', - 'type' => 'record', - 'msg' => '', - 'preCode' => ' <span title="tt_content:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text"> + 'controls' => '', + 'message' => '<span class="text-danger">LOST RELATION (Path: /)</span>', + ], + 5 => + [ + 'ref' => 'tt_content:2', + 'type' => 'record', + 'msg' => '', + 'preCode' => ' <span title="tt_content:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text"> <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></span>', - 'title' => 'Test content 2', - 'active' => 'active', - 'controls' => '', - 'message' => '', - ], - 6 => - [ - 'ref' => 'SOFTREF', - 'type' => 'softref', - 'msg' => '', - 'preCode' => ' <span title="SOFTREF"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft"> + 'title' => 'Test content 2', + 'active' => 'active', + 'controls' => '', + 'message' => '', + ], + 6 => + [ + 'ref' => 'SOFTREF', + 'type' => 'softref', + 'msg' => '', + 'preCode' => ' <span title="SOFTREF"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft"> <span class="icon-markup"> <img src="typo3/sysext/impexp/Resources/Public/Icons/status-reference-soft.png" width="16" height="16" alt="" /> </span> </span></span>', - 'title' => '<em>header_link, "typolink"</em> : <span title="file:4">file:4</span><br/> Record <strong>sys_file:4</strong>', - '_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/> Record <strong>sys_file:4</strong>', + '_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="" title="sys_file:4"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> + 7 => + [ + 'ref' => 'sys_file:4', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">Empty.html</span>', + 'preCode' => ' <span class="" title="sys_file:4"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> <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></span>', - 'controls' => '', - 'message' => '', - ], - 8 => - [ - 'ref' => 'pages:2', - 'type' => 'record', - 'msg' => '', - 'preCode' => ' <span title="pages:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default"> + 'controls' => '', + 'message' => '', + ], + 8 => + [ + 'ref' => 'pages:2', + 'type' => 'record', + 'msg' => '', + 'preCode' => ' <span title="pages:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default"> <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></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"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image"> + 0 => + [ + 'ref' => 'sys_file:2', + 'type' => 'record', + 'msg' => 'TABLE "sys_file" will be inserted on ROOT LEVEL! ', + 'preCode' => '<span title="sys_file:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image"> <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></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="text-danger" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-dialog-warning" data-identifier="status-dialog-warning"> + '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="text-danger" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-dialog-warning" data-identifier="status-dialog-warning"> <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></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"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-text-text" data-identifier="mimetypes-text-text"> + '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"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-text-text" data-identifier="mimetypes-text-text"> <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></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 87688b782d0af01e6c42be932a95d5e651f2f2f1..e191e966a3305ccd10a527944504db5e3c9b04f9 100644 --- a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsByUpdate.php +++ b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsByUpdate.php @@ -1,170 +1,170 @@ <?php return [ - 'update' => true, - 'showDiff' => false, - 'insidePageTree' => - [ - 0 => + 'update' => true, + 'showDiff' => false, + 'insidePageTree' => [ - 'ref' => 'pages:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span title="pages:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default"> + 0 => + [ + 'ref' => 'pages:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span title="pages:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default"> <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></span>', - 'title' => '<a href="#" >Root</a>', - 'active' => 'active', - 'updatePath' => '/', - 'updateMode' => sprintf('<select name="tx_impexp[import_mode][pages:1]"><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 title="tt_content:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text"> + 'title' => '<a href="#" >Root</a>', + 'active' => 'active', + 'updatePath' => '/', + 'updateMode' => sprintf('<select name="tx_impexp[import_mode][pages:1]"><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 title="tt_content:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text"> <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></span>', - 'title' => 'Test content', - 'active' => 'active', - 'updatePath' => '/Root/', - 'updateMode' => sprintf('<select name="tx_impexp[import_mode][tt_content:1]"><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 title="SOFTREF"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft"> + 'title' => 'Test content', + 'active' => 'active', + 'updatePath' => '/Root/', + 'updateMode' => sprintf('<select name="tx_impexp[import_mode][tt_content:1]"><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 title="SOFTREF"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft"> <span class="icon-markup"> <img src="typo3/sysext/impexp/Resources/Public/Icons/status-reference-soft.png" width="16" height="16" alt="" /> </span> </span></span>', - 'title' => '<em>header_link, "typolink"</em> : <span title="file:2">file:2</span><br/> Record <strong>sys_file:2</strong>', - '_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/> Record <strong>sys_file:2</strong>', + '_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="text-danger" title="sys_file:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-dialog-warning" data-identifier="status-dialog-warning"> + 3 => + [ + 'ref' => 'sys_file:2', + 'type' => 'rel', + 'msg' => 'LOST RELATION (Path: /)', + 'title' => '<span title="/">sys_file:2</span>', + 'preCode' => ' <span class="text-danger" title="sys_file:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-dialog-warning" data-identifier="status-dialog-warning"> <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></span>', - 'controls' => '', - 'message' => '', - ], - 4 => - [ - 'ref' => 'tt_content:2', - 'type' => 'record', - 'msg' => '', - 'preCode' => ' <span title="tt_content:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text"> + 'controls' => '', + 'message' => '', + ], + 4 => + [ + 'ref' => 'tt_content:2', + 'type' => 'record', + 'msg' => '', + 'preCode' => ' <span title="tt_content:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text"> <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></span>', - 'title' => 'Test content 2', - 'active' => 'active', - 'updatePath' => '/Root/', - 'updateMode' => sprintf('<select name="tx_impexp[import_mode][tt_content:2]"><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 title="SOFTREF"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft"> + 'title' => 'Test content 2', + 'active' => 'active', + 'updatePath' => '/Root/', + 'updateMode' => sprintf('<select name="tx_impexp[import_mode][tt_content:2]"><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 title="SOFTREF"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft"> <span class="icon-markup"> <img src="typo3/sysext/impexp/Resources/Public/Icons/status-reference-soft.png" width="16" height="16" alt="" /> </span> </span></span>', - 'title' => '<em>header_link, "typolink"</em> : <span title="file:4">file:4</span><br/> Record <strong>sys_file:4</strong>', - '_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/> Record <strong>sys_file:4</strong>', + '_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="text-danger" title="sys_file:4"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-dialog-warning" data-identifier="status-dialog-warning"> + 6 => + [ + 'ref' => 'sys_file:4', + 'type' => 'rel', + 'msg' => 'LOST RELATION (Record not found!)', + 'title' => '<span title="/">sys_file:4</span>', + 'preCode' => ' <span class="text-danger" title="sys_file:4"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-dialog-warning" data-identifier="status-dialog-warning"> <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></span>', - 'controls' => '', - 'message' => '', - ], - 7 => - [ - 'ref' => 'pages:2', - 'type' => 'record', - 'msg' => '', - 'preCode' => ' <span title="pages:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default"> + 'controls' => '', + 'message' => '', + ], + 7 => + [ + 'ref' => 'pages:2', + 'type' => 'record', + 'msg' => '', + 'preCode' => ' <span title="pages:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default"> <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></span>', - 'title' => '<a href="#" >Dummy 1-2</a>', - 'active' => 'active', - 'updatePath' => '/Root/', - 'updateMode' => sprintf('<select name="tx_impexp[import_mode][pages:2]"><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' => '<a href="#" >Dummy 1-2</a>', + 'active' => 'active', + 'updatePath' => '/Root/', + 'updateMode' => sprintf('<select name="tx_impexp[import_mode][pages:2]"><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 26d4c25d6a35c203dcd3aaa5188c1b9f80969e69..64b2ee5e712096fc8e75a31769a71bffe6e9da3b 100644 --- a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsByUpdateWithDiff.php +++ b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsByUpdateWithDiff.php @@ -1,520 +1,520 @@ <?php return [ - 'update' => true, - 'showDiff' => true, - 'insidePageTree' => - [ - 0 => + 'update' => true, + 'showDiff' => true, + 'insidePageTree' => [ - 'ref' => 'pages:0', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span title="pages:0"><span class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default">' . "\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></span>', - 'title' => '', - 'active' => 'active', - 'updatePath' => '<strong>NEW!</strong>', - 'updateMode' => sprintf('<select name="tx_impexp[import_mode][pages:0]"><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' => 'ERROR: One of the inputs were not an array!', - 'controls' => '', - 'message' => '', - ], - 1 => - [ - 'ref' => 'sys_file:1', - 'type' => 'record', - 'msg' => 'TABLE "sys_file" will be inserted on ROOT LEVEL! ', - 'preCode' => ' <span title="sys_file:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image">' . "\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></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"><span class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default">' . "\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></span>', + 'title' => '', + 'active' => 'active', + 'updatePath' => '<strong>NEW!</strong>', + 'updateMode' => sprintf('<select name="tx_impexp[import_mode][pages:0]"><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' => 'ERROR: One of the inputs were not an array!', + 'controls' => '', + 'message' => '', + ], + 1 => + [ + 'ref' => 'sys_file:1', + 'type' => 'record', + 'msg' => 'TABLE "sys_file" will be inserted on ROOT LEVEL! ', + 'preCode' => ' <span title="sys_file:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image">' . "\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></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="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">' . "\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></span>', - 'controls' => '', - 'message' => '', - ], - 3 => - [ - 'ref' => 'sys_file:2', - 'type' => 'record', - 'msg' => 'TABLE "sys_file" will be inserted on ROOT LEVEL! ', - 'preCode' => ' <span title="sys_file:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image">' . "\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></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="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">' . "\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></span>', + 'controls' => '', + 'message' => '', + ], + 3 => + [ + 'ref' => 'sys_file:2', + 'type' => 'record', + 'msg' => 'TABLE "sys_file" will be inserted on ROOT LEVEL! ', + 'preCode' => ' <span title="sys_file:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image">' . "\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></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="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">' . "\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></span>', - 'controls' => '', - 'message' => '', - ], - 5 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'record', - 'msg' => 'TABLE "sys_file_storage" will be inserted on ROOT LEVEL! ', - 'preCode' => ' <span title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-sys_file_storage" data-identifier="mimetypes-x-sys_file_storage">' . "\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></span>', - 'title' => 'fileadmin', - 'active' => 'active', - 'updatePath' => '/', - 'updateMode' => sprintf('<select name="tx_impexp[import_mode][sys_file_storage:1]"><option value="0">Update</option><option value="%s">Import as new</option><option value="%s">Ignore PID</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_AS_NEW, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_IGNORE_PID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), - 'showDiffContent' => '<strong class="text-nowrap">[sys_file_storage:1 => 1]:</strong>' . "\n" - . '<table class="table table-striped table-hover">' . "\n" - . '<tr><td>Driver Configuration (configuration)</td><td>' . "\n\n" - . '<del> \\n \\n \\n \\n fileadmin/\\n \\n \\n relative\\n \\n \\n 1\\n \\n \\n \\n \\n</del><ins>' . "\t\n" - . "\t\t\n" - . "\t\t\t\n" - . "\t\t\t\t\n" - . "\t\t\t\t\t" . 'fileadmin/' . "\n" - . "\t\t\t\t\n" - . "\t\t\t\t\n" - . "\t\t\t\t\t" . 'relative' . "\n" - . "\t\t\t\t\n" - . "\t\t\t\t\n" - . "\t\t\t\t\t" . '1' . "\n" - . "\t\t\t\t\n" - . "\t\t\t\n" - . "\t\t\n" - . "\t\n" - . '</ins></td></tr> + 'controls' => '', + 'message' => '', + ], + 4 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">' . "\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></span>', + 'controls' => '', + 'message' => '', + ], + 5 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'record', + 'msg' => 'TABLE "sys_file_storage" will be inserted on ROOT LEVEL! ', + 'preCode' => ' <span title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-sys_file_storage" data-identifier="mimetypes-x-sys_file_storage">' . "\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></span>', + 'title' => 'fileadmin', + 'active' => 'active', + 'updatePath' => '/', + 'updateMode' => sprintf('<select name="tx_impexp[import_mode][sys_file_storage:1]"><option value="0">Update</option><option value="%s">Import as new</option><option value="%s">Ignore PID</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_AS_NEW, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_IGNORE_PID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), + 'showDiffContent' => '<strong class="text-nowrap">[sys_file_storage:1 => 1]:</strong>' . "\n" + . '<table class="table table-striped table-hover">' . "\n" + . '<tr><td>Driver Configuration (configuration)</td><td>' . "\n\n" + . '<del> \\n \\n \\n \\n fileadmin/\\n \\n \\n relative\\n \\n \\n 1\\n \\n \\n \\n \\n</del><ins>' . "\t\n" + . "\t\t\n" + . "\t\t\t\n" + . "\t\t\t\t\n" + . "\t\t\t\t\t" . 'fileadmin/' . "\n" + . "\t\t\t\t\n" + . "\t\t\t\t\n" + . "\t\t\t\t\t" . 'relative' . "\n" + . "\t\t\t\t\n" + . "\t\t\t\t\n" + . "\t\t\t\t\t" . '1' . "\n" + . "\t\t\t\t\n" + . "\t\t\t\n" + . "\t\t\n" + . "\t\n" + . '</ins></td></tr> <tr><td>Is default storage? (is_default)</td><td><del>Yes</del><ins>No</ins></td></tr> <tr><td>Description (description)</td><td><strong>Field missing</strong> in database</td></tr> </table>', - 'controls' => '', - 'message' => '', - ], - 6 => - [ - 'ref' => 'tt_content:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => ' <span title="tt_content:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text-picture" data-identifier="mimetypes-x-content-text-picture">' . "\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></span>', - 'title' => 'CE 1 first image', - 'active' => 'active', - 'updatePath' => '/Root/', - 'updateMode' => sprintf('<select name="tx_impexp[import_mode][tt_content:1]"><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 title="tt_content:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text-picture" data-identifier="mimetypes-x-content-text-picture">' . "\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></span>', + 'title' => 'CE 1 first image', + 'active' => 'active', + 'updatePath' => '/Root/', + 'updateMode' => sprintf('<select name="tx_impexp[import_mode][tt_content:1]"><option value="0">Update</option><option value="%s">Import as new</option><option value="%s">Ignore PID</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_AS_NEW, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_IGNORE_PID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), + 'showDiffContent' => '<strong class="text-nowrap">[tt_content:1 => 2]:</strong> <table class="table table-striped table-hover"> <tr><td>Type (CType)</td><td><del>Text & Images</del><ins>Text</ins></td></tr> <tr><td>Header (header)</td><td><del>CE 1 first image</del><ins>Test content</ins></td></tr> <tr><td>Images (image)</td><td>N/A</td></tr> </table>', - 'controls' => '', - 'message' => '', - ], - 7 => - [ - 'ref' => 'sys_file_reference:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/Root/">used-1.jpg</span>', - 'preCode' => ' <span class="" title="sys_file_reference:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">' . "\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></span>', - 'controls' => '', - 'message' => '', - ], - 8 => - [ - 'ref' => 'sys_file:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">used-1.jpg</span>', - 'preCode' => ' <span class="" title="sys_file:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">' . "\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></span>', - 'controls' => '', - 'message' => '', - ], - 9 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">' . "\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></span>', - 'controls' => '', - 'message' => '', - ], - 10 => - [ - 'ref' => 'tt_content:2', - 'type' => 'record', - 'msg' => '', - 'preCode' => ' <span title="tt_content:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text-picture" data-identifier="mimetypes-x-content-text-picture">' . "\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></span>', - 'title' => 'CE 2 second image', - 'active' => 'active', - 'updatePath' => '/Root/', - 'updateMode' => sprintf('<select name="tx_impexp[import_mode][tt_content:2]"><option value="0">Update</option><option value="%s">Import as new</option><option value="%s">Ignore PID</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_AS_NEW, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_IGNORE_PID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), - 'showDiffContent' => '<strong class="text-nowrap">[tt_content:2 => 1]:</strong>' . "\n" - . '<table class="table table-striped table-hover">' . "\n" - . '<tr><td>Type (CType)</td><td><del>Text & Images</del><ins>Text</ins></td></tr>' . "\n" - . '<tr><td>Header (header)</td><td><del>CE 2 second image</del><ins>Test content 2</ins></td></tr>' . "\n" - . '<tr><td>Images (image)</td><td>N/A</td></tr>' . "\n" - . '</table>', - 'controls' => '', - 'message' => '', - ], - 11 => - [ - 'ref' => 'sys_file_reference:2', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/Root/">used-2.jpg</span>', - 'preCode' => ' <span class="" title="sys_file_reference:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">' . "\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></span>', - 'controls' => '', - 'message' => '', - ], - 12 => - [ - 'ref' => 'sys_file:2', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">used-2.jpg</span>', - 'preCode' => ' <span class="" title="sys_file:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">' . "\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></span>', - 'controls' => '', - 'message' => '', - ], - 13 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">' . "\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></span>', - 'controls' => '', - 'message' => '', - ], - 14 => - [ - 'ref' => 'tt_content:3', - 'type' => 'record', - 'msg' => '', - 'preCode' => ' <span title="tt_content:3"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text-picture" data-identifier="mimetypes-x-content-text-picture">' . "\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></span>', - 'title' => 'CE 3 second image', - 'active' => 'active', - 'updatePath' => '<strong>NEW!</strong>', - 'updateMode' => sprintf('<select name="tx_impexp[import_mode][tt_content:3]"><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' => 'ERROR: One of the inputs were not an array!', - 'controls' => '', - 'message' => '', - ], - 15 => - [ - 'ref' => 'sys_file_reference:3', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/Root/">used-2.jpg</span>', - 'preCode' => ' <span class="" title="sys_file_reference:3"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">' . "\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></span>', - 'controls' => '', - 'message' => '', - ], - 16 => - [ - 'ref' => 'sys_file:2', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">used-2.jpg</span>', - 'preCode' => ' <span class="" title="sys_file:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">' . "\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></span>', - 'controls' => '', - 'message' => '', - ], - 17 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">' . "\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></span>', - 'controls' => '', - 'message' => '', - ], - 18 => - [ - 'ref' => 'sys_file_reference:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => ' <span title="sys_file_reference:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-other-other" data-identifier="mimetypes-other-other">' . "\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></span>', - 'title' => 'used-1.jpg', - 'active' => 'active', - 'updatePath' => '<strong>NEW!</strong>', - 'updateMode' => sprintf('<select name="tx_impexp[import_mode][sys_file_reference:1]"><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' => 'ERROR: One of the inputs were not an array!', - 'controls' => '', - 'message' => '', - ], - 19 => - [ - 'ref' => 'sys_file:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">used-1.jpg</span>', - 'preCode' => ' <span class="" title="sys_file:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">' . "\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></span>', - 'controls' => '', - 'message' => '', - ], - 20 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">' . "\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></span>', - 'controls' => '', - 'message' => '', - ], - 21 => - [ - 'ref' => 'sys_file_reference:2', - 'type' => 'record', - 'msg' => '', - 'preCode' => ' <span title="sys_file_reference:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-other-other" data-identifier="mimetypes-other-other">' . "\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></span>', - 'title' => 'used-2.jpg', - 'active' => 'active', - 'updatePath' => '<strong>NEW!</strong>', - 'updateMode' => sprintf('<select name="tx_impexp[import_mode][sys_file_reference:2]"><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' => 'ERROR: One of the inputs were not an array!', - 'controls' => '', - 'message' => '', - ], - 22 => - [ - 'ref' => 'sys_file:2', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">used-2.jpg</span>', - 'preCode' => ' <span class="" title="sys_file:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">' . "\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></span>', - 'controls' => '', - 'message' => '', - ], - 23 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">' . "\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></span>', - 'controls' => '', - 'message' => '', - ], - 24 => - [ - 'ref' => 'sys_file_reference:3', - 'type' => 'record', - 'msg' => '', - 'preCode' => ' <span title="sys_file_reference:3"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-other-other" data-identifier="mimetypes-other-other">' . "\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></span>', - 'title' => 'used-2.jpg', - 'active' => 'active', - 'updatePath' => '<strong>NEW!</strong>', - 'updateMode' => sprintf('<select name="tx_impexp[import_mode][sys_file_reference:3]"><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' => 'ERROR: One of the inputs were not an array!', - 'controls' => '', - 'message' => '', - ], - 25 => - [ - 'ref' => 'sys_file:2', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">used-2.jpg</span>', - 'preCode' => ' <span class="" title="sys_file:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">' . "\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></span>', - 'controls' => '', - 'message' => '', - ], - 26 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">' . "\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></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="" title="sys_file_reference:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">' . "\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></span>', + 'controls' => '', + 'message' => '', + ], + 8 => + [ + 'ref' => 'sys_file:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">used-1.jpg</span>', + 'preCode' => ' <span class="" title="sys_file:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">' . "\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></span>', + 'controls' => '', + 'message' => '', + ], + 9 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">' . "\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></span>', + 'controls' => '', + 'message' => '', + ], + 10 => + [ + 'ref' => 'tt_content:2', + 'type' => 'record', + 'msg' => '', + 'preCode' => ' <span title="tt_content:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text-picture" data-identifier="mimetypes-x-content-text-picture">' . "\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></span>', + 'title' => 'CE 2 second image', + 'active' => 'active', + 'updatePath' => '/Root/', + 'updateMode' => sprintf('<select name="tx_impexp[import_mode][tt_content:2]"><option value="0">Update</option><option value="%s">Import as new</option><option value="%s">Ignore PID</option><option value="%s">Exclude</option></select>', \TYPO3\CMS\Impexp\Import::IMPORT_MODE_AS_NEW, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_IGNORE_PID, \TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE), + 'showDiffContent' => '<strong class="text-nowrap">[tt_content:2 => 1]:</strong>' . "\n" + . '<table class="table table-striped table-hover">' . "\n" + . '<tr><td>Type (CType)</td><td><del>Text & Images</del><ins>Text</ins></td></tr>' . "\n" + . '<tr><td>Header (header)</td><td><del>CE 2 second image</del><ins>Test content 2</ins></td></tr>' . "\n" + . '<tr><td>Images (image)</td><td>N/A</td></tr>' . "\n" + . '</table>', + 'controls' => '', + 'message' => '', + ], + 11 => + [ + 'ref' => 'sys_file_reference:2', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/Root/">used-2.jpg</span>', + 'preCode' => ' <span class="" title="sys_file_reference:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">' . "\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></span>', + 'controls' => '', + 'message' => '', + ], + 12 => + [ + 'ref' => 'sys_file:2', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">used-2.jpg</span>', + 'preCode' => ' <span class="" title="sys_file:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">' . "\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></span>', + 'controls' => '', + 'message' => '', + ], + 13 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">' . "\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></span>', + 'controls' => '', + 'message' => '', + ], + 14 => + [ + 'ref' => 'tt_content:3', + 'type' => 'record', + 'msg' => '', + 'preCode' => ' <span title="tt_content:3"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text-picture" data-identifier="mimetypes-x-content-text-picture">' . "\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></span>', + 'title' => 'CE 3 second image', + 'active' => 'active', + 'updatePath' => '<strong>NEW!</strong>', + 'updateMode' => sprintf('<select name="tx_impexp[import_mode][tt_content:3]"><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' => 'ERROR: One of the inputs were not an array!', + 'controls' => '', + 'message' => '', + ], + 15 => + [ + 'ref' => 'sys_file_reference:3', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/Root/">used-2.jpg</span>', + 'preCode' => ' <span class="" title="sys_file_reference:3"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">' . "\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></span>', + 'controls' => '', + 'message' => '', + ], + 16 => + [ + 'ref' => 'sys_file:2', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">used-2.jpg</span>', + 'preCode' => ' <span class="" title="sys_file:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">' . "\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></span>', + 'controls' => '', + 'message' => '', + ], + 17 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">' . "\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></span>', + 'controls' => '', + 'message' => '', + ], + 18 => + [ + 'ref' => 'sys_file_reference:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => ' <span title="sys_file_reference:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-other-other" data-identifier="mimetypes-other-other">' . "\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></span>', + 'title' => 'used-1.jpg', + 'active' => 'active', + 'updatePath' => '<strong>NEW!</strong>', + 'updateMode' => sprintf('<select name="tx_impexp[import_mode][sys_file_reference:1]"><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' => 'ERROR: One of the inputs were not an array!', + 'controls' => '', + 'message' => '', + ], + 19 => + [ + 'ref' => 'sys_file:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">used-1.jpg</span>', + 'preCode' => ' <span class="" title="sys_file:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">' . "\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></span>', + 'controls' => '', + 'message' => '', + ], + 20 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">' . "\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></span>', + 'controls' => '', + 'message' => '', + ], + 21 => + [ + 'ref' => 'sys_file_reference:2', + 'type' => 'record', + 'msg' => '', + 'preCode' => ' <span title="sys_file_reference:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-other-other" data-identifier="mimetypes-other-other">' . "\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></span>', + 'title' => 'used-2.jpg', + 'active' => 'active', + 'updatePath' => '<strong>NEW!</strong>', + 'updateMode' => sprintf('<select name="tx_impexp[import_mode][sys_file_reference:2]"><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' => 'ERROR: One of the inputs were not an array!', + 'controls' => '', + 'message' => '', + ], + 22 => + [ + 'ref' => 'sys_file:2', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">used-2.jpg</span>', + 'preCode' => ' <span class="" title="sys_file:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">' . "\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></span>', + 'controls' => '', + 'message' => '', + ], + 23 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">' . "\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></span>', + 'controls' => '', + 'message' => '', + ], + 24 => + [ + 'ref' => 'sys_file_reference:3', + 'type' => 'record', + 'msg' => '', + 'preCode' => ' <span title="sys_file_reference:3"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-other-other" data-identifier="mimetypes-other-other">' . "\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></span>', + 'title' => 'used-2.jpg', + 'active' => 'active', + 'updatePath' => '<strong>NEW!</strong>', + 'updateMode' => sprintf('<select name="tx_impexp[import_mode][sys_file_reference:3]"><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' => 'ERROR: One of the inputs were not an array!', + 'controls' => '', + 'message' => '', + ], + 25 => + [ + 'ref' => 'sys_file:2', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">used-2.jpg</span>', + 'preCode' => ' <span class="" title="sys_file:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">' . "\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></span>', + 'controls' => '', + 'message' => '', + ], + 26 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked">' . "\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></span>', + 'controls' => '', + 'message' => '', + ], + 27 => + [ + 'ref' => 'pages:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => ' <span title="pages:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default">' . "\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></span>', + 'title' => '<a href="#" >Root</a>', + 'active' => 'active', + 'updatePath' => '/', + 'updateMode' => sprintf('<select name="tx_impexp[import_mode][pages:1]"><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 title="pages:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default">' . "\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></span>', - 'title' => '<a href="#" >Root</a>', - 'active' => 'active', - 'updatePath' => '/', - 'updateMode' => sprintf('<select name="tx_impexp[import_mode][pages:1]"><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 4f08b5ff352e5ca58743cf3f0d9610d0cfd70041..993de4598d8f83faceea6694ff0375aaad89c68a 100644 --- a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsWithDiff.php +++ b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsWithDiff.php @@ -1,471 +1,471 @@ <?php return [ - 'update' => false, - 'showDiff' => true, - 'insidePageTree' => - [ - 0 => + 'update' => false, + 'showDiff' => true, + 'insidePageTree' => [ - 'ref' => 'pages:0', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span title="pages:0"><span class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default"> + 0 => + [ + 'ref' => 'pages:0', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span title="pages:0"><span class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default"> <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></span>', - 'title' => '', - 'active' => 'active', - 'showDiffContent' => 'ERROR: One of the inputs were not an array!', - 'controls' => '', - 'message' => '', - ], - 1 => - [ - 'ref' => 'sys_file:1', - 'type' => 'record', - 'msg' => 'TABLE "sys_file" will be inserted on ROOT LEVEL! ', - 'preCode' => ' <span title="sys_file:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image"> + 'title' => '', + 'active' => 'active', + 'showDiffContent' => 'ERROR: One of the inputs were not an array!', + 'controls' => '', + 'message' => '', + ], + 1 => + [ + 'ref' => 'sys_file:1', + 'type' => 'record', + 'msg' => 'TABLE "sys_file" will be inserted on ROOT LEVEL! ', + 'preCode' => ' <span title="sys_file:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image"> <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></span>', - 'title' => 'used-1.jpg', - 'active' => 'active', - 'showDiffContent' => 'ERROR: One of the inputs were not an array!', - 'controls' => '', - 'message' => '', - ], - 2 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> + 'title' => 'used-1.jpg', + 'active' => 'active', + 'showDiffContent' => 'ERROR: One of the inputs were not an array!', + 'controls' => '', + 'message' => '', + ], + 2 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> <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></span>', - 'controls' => '', - 'message' => '', - ], - 3 => - [ - 'ref' => 'sys_file:2', - 'type' => 'record', - 'msg' => 'TABLE "sys_file" will be inserted on ROOT LEVEL! ', - 'preCode' => ' <span title="sys_file:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image"> + 'controls' => '', + 'message' => '', + ], + 3 => + [ + 'ref' => 'sys_file:2', + 'type' => 'record', + 'msg' => 'TABLE "sys_file" will be inserted on ROOT LEVEL! ', + 'preCode' => ' <span title="sys_file:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-media-image" data-identifier="mimetypes-media-image"> <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></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="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> + 'controls' => '', + 'message' => '', + ], + 4 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> <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></span>', - 'controls' => '', - 'message' => '', - ], - 5 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'record', - 'msg' => 'TABLE "sys_file_storage" will be inserted on ROOT LEVEL! ', - 'preCode' => ' <span title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-sys_file_storage" data-identifier="mimetypes-x-sys_file_storage"> + 'controls' => '', + 'message' => '', + ], + 5 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'record', + 'msg' => 'TABLE "sys_file_storage" will be inserted on ROOT LEVEL! ', + 'preCode' => ' <span title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-sys_file_storage" data-identifier="mimetypes-x-sys_file_storage"> <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></span>', - 'title' => 'fileadmin', - 'active' => 'active', - 'showDiffContent' => 'ERROR: One of the inputs were not an array!', - 'controls' => '', - 'message' => '', - ], - 6 => - [ - 'ref' => 'tt_content:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => ' <span title="tt_content:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text-picture" data-identifier="mimetypes-x-content-text-picture"> + 'title' => 'fileadmin', + 'active' => 'active', + 'showDiffContent' => 'ERROR: One of the inputs were not an array!', + 'controls' => '', + 'message' => '', + ], + 6 => + [ + 'ref' => 'tt_content:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => ' <span title="tt_content:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text-picture" data-identifier="mimetypes-x-content-text-picture"> <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></span>', - 'title' => 'CE 1 first image', - 'active' => 'active', - 'showDiffContent' => '<strong class="text-nowrap">[tt_content:1 => 2]:</strong> + 'title' => 'CE 1 first image', + 'active' => 'active', + 'showDiffContent' => '<strong class="text-nowrap">[tt_content:1 => 2]:</strong> <table class="table table-striped table-hover"> <tr><td>Type (CType)</td><td><del>Text & Images</del><ins>Text</ins></td></tr> <tr><td>Header (header)</td><td><del>CE 1 first image</del><ins>Test content</ins></td></tr> <tr><td>Images (image)</td><td>N/A</td></tr> </table>', - 'controls' => '', - 'message' => '', - ], - 7 => - [ - 'ref' => 'sys_file_reference:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/Root/">used-1.jpg</span>', - 'preCode' => ' <span class="" title="sys_file_reference:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> + 'controls' => '', + 'message' => '', + ], + 7 => + [ + 'ref' => 'sys_file_reference:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/Root/">used-1.jpg</span>', + 'preCode' => ' <span class="" title="sys_file_reference:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> <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></span>', - 'controls' => '', - 'message' => '', - ], - 8 => - [ - 'ref' => 'sys_file:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">used-1.jpg</span>', - 'preCode' => ' <span class="" title="sys_file:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> + 'controls' => '', + 'message' => '', + ], + 8 => + [ + 'ref' => 'sys_file:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">used-1.jpg</span>', + 'preCode' => ' <span class="" title="sys_file:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> <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></span>', - 'controls' => '', - 'message' => '', - ], - 9 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> + 'controls' => '', + 'message' => '', + ], + 9 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> <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></span>', - 'controls' => '', - 'message' => '', - ], - 10 => - [ - 'ref' => 'tt_content:2', - 'type' => 'record', - 'msg' => '', - 'preCode' => ' <span title="tt_content:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text-picture" data-identifier="mimetypes-x-content-text-picture"> + 'controls' => '', + 'message' => '', + ], + 10 => + [ + 'ref' => 'tt_content:2', + 'type' => 'record', + 'msg' => '', + 'preCode' => ' <span title="tt_content:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text-picture" data-identifier="mimetypes-x-content-text-picture"> <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></span>', - 'title' => 'CE 2 second image', - 'active' => 'active', - 'showDiffContent' => '<strong class="text-nowrap">[tt_content:2 => 1]:</strong> + 'title' => 'CE 2 second image', + 'active' => 'active', + 'showDiffContent' => '<strong class="text-nowrap">[tt_content:2 => 1]:</strong> <table class="table table-striped table-hover"> <tr><td>Type (CType)</td><td><del>Text & Images</del><ins>Text</ins></td></tr> <tr><td>Header (header)</td><td><del>CE 2 second image</del><ins>Test content 2</ins></td></tr> <tr><td>Images (image)</td><td>N/A</td></tr> </table>', - 'controls' => '', - 'message' => '', - ], - 11 => - [ - 'ref' => 'sys_file_reference:2', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/Root/">used-2.jpg</span>', - 'preCode' => ' <span class="" title="sys_file_reference:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> + 'controls' => '', + 'message' => '', + ], + 11 => + [ + 'ref' => 'sys_file_reference:2', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/Root/">used-2.jpg</span>', + 'preCode' => ' <span class="" title="sys_file_reference:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> <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></span>', - 'controls' => '', - 'message' => '', - ], - 12 => - [ - 'ref' => 'sys_file:2', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">used-2.jpg</span>', - 'preCode' => ' <span class="" title="sys_file:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> + 'controls' => '', + 'message' => '', + ], + 12 => + [ + 'ref' => 'sys_file:2', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">used-2.jpg</span>', + 'preCode' => ' <span class="" title="sys_file:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> <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></span>', - 'controls' => '', - 'message' => '', - ], - 13 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> + 'controls' => '', + 'message' => '', + ], + 13 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> <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></span>', - 'controls' => '', - 'message' => '', - ], - 14 => - [ - 'ref' => 'tt_content:3', - 'type' => 'record', - 'msg' => '', - 'preCode' => ' <span title="tt_content:3"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text-picture" data-identifier="mimetypes-x-content-text-picture"> + 'controls' => '', + 'message' => '', + ], + 14 => + [ + 'ref' => 'tt_content:3', + 'type' => 'record', + 'msg' => '', + 'preCode' => ' <span title="tt_content:3"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text-picture" data-identifier="mimetypes-x-content-text-picture"> <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></span>', - 'title' => 'CE 3 second image', - 'active' => 'active', - 'showDiffContent' => 'ERROR: One of the inputs were not an array!', - 'controls' => '', - 'message' => '', - ], - 15 => - [ - 'ref' => 'sys_file_reference:3', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/Root/">used-2.jpg</span>', - 'preCode' => ' <span class="" title="sys_file_reference:3"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> + 'title' => 'CE 3 second image', + 'active' => 'active', + 'showDiffContent' => 'ERROR: One of the inputs were not an array!', + 'controls' => '', + 'message' => '', + ], + 15 => + [ + 'ref' => 'sys_file_reference:3', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/Root/">used-2.jpg</span>', + 'preCode' => ' <span class="" title="sys_file_reference:3"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> <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></span>', - 'controls' => '', - 'message' => '', - ], - 16 => - [ - 'ref' => 'sys_file:2', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">used-2.jpg</span>', - 'preCode' => ' <span class="" title="sys_file:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> + 'controls' => '', + 'message' => '', + ], + 16 => + [ + 'ref' => 'sys_file:2', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">used-2.jpg</span>', + 'preCode' => ' <span class="" title="sys_file:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> <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></span>', - 'controls' => '', - 'message' => '', - ], - 17 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> + 'controls' => '', + 'message' => '', + ], + 17 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> <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></span>', - 'controls' => '', - 'message' => '', - ], - 18 => - [ - 'ref' => 'sys_file_reference:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => ' <span title="sys_file_reference:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-other-other" data-identifier="mimetypes-other-other"> + 'controls' => '', + 'message' => '', + ], + 18 => + [ + 'ref' => 'sys_file_reference:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => ' <span title="sys_file_reference:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-other-other" data-identifier="mimetypes-other-other"> <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></span>', - 'title' => 'used-1.jpg', - 'active' => 'active', - 'showDiffContent' => 'ERROR: One of the inputs were not an array!', - 'controls' => '', - 'message' => '', - ], - 19 => - [ - 'ref' => 'sys_file:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">used-1.jpg</span>', - 'preCode' => ' <span class="" title="sys_file:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> + 'title' => 'used-1.jpg', + 'active' => 'active', + 'showDiffContent' => 'ERROR: One of the inputs were not an array!', + 'controls' => '', + 'message' => '', + ], + 19 => + [ + 'ref' => 'sys_file:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">used-1.jpg</span>', + 'preCode' => ' <span class="" title="sys_file:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> <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></span>', - 'controls' => '', - 'message' => '', - ], - 20 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> + 'controls' => '', + 'message' => '', + ], + 20 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> <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></span>', - 'controls' => '', - 'message' => '', - ], - 21 => - [ - 'ref' => 'sys_file_reference:2', - 'type' => 'record', - 'msg' => '', - 'preCode' => ' <span title="sys_file_reference:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-other-other" data-identifier="mimetypes-other-other"> + 'controls' => '', + 'message' => '', + ], + 21 => + [ + 'ref' => 'sys_file_reference:2', + 'type' => 'record', + 'msg' => '', + 'preCode' => ' <span title="sys_file_reference:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-other-other" data-identifier="mimetypes-other-other"> <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></span>', - 'title' => 'used-2.jpg', - 'active' => 'active', - 'showDiffContent' => 'ERROR: One of the inputs were not an array!', - 'controls' => '', - 'message' => '', - ], - 22 => - [ - 'ref' => 'sys_file:2', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">used-2.jpg</span>', - 'preCode' => ' <span class="" title="sys_file:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> + 'title' => 'used-2.jpg', + 'active' => 'active', + 'showDiffContent' => 'ERROR: One of the inputs were not an array!', + 'controls' => '', + 'message' => '', + ], + 22 => + [ + 'ref' => 'sys_file:2', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">used-2.jpg</span>', + 'preCode' => ' <span class="" title="sys_file:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> <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></span>', - 'controls' => '', - 'message' => '', - ], - 23 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> + 'controls' => '', + 'message' => '', + ], + 23 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> <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></span>', - 'controls' => '', - 'message' => '', - ], - 24 => - [ - 'ref' => 'sys_file_reference:3', - 'type' => 'record', - 'msg' => '', - 'preCode' => ' <span title="sys_file_reference:3"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-other-other" data-identifier="mimetypes-other-other"> + 'controls' => '', + 'message' => '', + ], + 24 => + [ + 'ref' => 'sys_file_reference:3', + 'type' => 'record', + 'msg' => '', + 'preCode' => ' <span title="sys_file_reference:3"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-other-other" data-identifier="mimetypes-other-other"> <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></span>', - 'title' => 'used-2.jpg', - 'active' => 'active', - 'showDiffContent' => 'ERROR: One of the inputs were not an array!', - 'controls' => '', - 'message' => '', - ], - 25 => - [ - 'ref' => 'sys_file:2', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">used-2.jpg</span>', - 'preCode' => ' <span class="" title="sys_file:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> + 'title' => 'used-2.jpg', + 'active' => 'active', + 'showDiffContent' => 'ERROR: One of the inputs were not an array!', + 'controls' => '', + 'message' => '', + ], + 25 => + [ + 'ref' => 'sys_file:2', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">used-2.jpg</span>', + 'preCode' => ' <span class="" title="sys_file:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> <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></span>', - 'controls' => '', - 'message' => '', - ], - 26 => - [ - 'ref' => 'sys_file_storage:1', - 'type' => 'rel', - 'msg' => '', - 'title' => '<span title="/">fileadmin</span>', - 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> + 'controls' => '', + 'message' => '', + ], + 26 => + [ + 'ref' => 'sys_file_storage:1', + 'type' => 'rel', + 'msg' => '', + 'title' => '<span title="/">fileadmin</span>', + 'preCode' => ' <span class="" title="sys_file_storage:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-status-checked" data-identifier="status-status-checked"> <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></span>', - 'controls' => '', - 'message' => '', - ], - 27 => - [ - 'ref' => 'pages:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => ' <span title="pages:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default"> + 'controls' => '', + 'message' => '', + ], + 27 => + [ + 'ref' => 'pages:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => ' <span title="pages:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default"> <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></span>', - 'title' => '<a href="#" >Root</a>', - 'active' => 'active', - 'showDiffContent' => '<strong class="text-nowrap">[pages:1 => 1]:</strong> + 'title' => '<a href="#" >Root</a>', + '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 7af2acf37327261d3a343be40c6cbd61dce13b73..a82993a445ac548f43d6cc7a5c0a6c3c4c751b0e 100644 --- a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsWithSoftRefs.php +++ b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsWithSoftRefs.php @@ -1,146 +1,146 @@ <?php return [ - 'update' => false, - 'showDiff' => false, - 'insidePageTree' => - [ + 'update' => false, + 'showDiff' => false, + 'insidePageTree' => [ - 'ref' => 'pages:1', - 'type' => 'record', - 'msg' => '', - 'preCode' => '<span title="pages:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default"> + [ + 'ref' => 'pages:1', + 'type' => 'record', + 'msg' => '', + 'preCode' => '<span title="pages:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default"> <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></span>', - 'title' => 'Congratulations', - 'active' => 'active', - 'controls' => '', - 'message' => '', - ], - [ - 'ref' => 'tt_content:212', - 'type' => 'record', - 'msg' => '', - 'preCode' => ' <span title="tt_content:212"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text"> + 'title' => 'Congratulations', + 'active' => 'active', + 'controls' => '', + 'message' => '', + ], + [ + 'ref' => 'tt_content:212', + 'type' => 'record', + 'msg' => '', + 'preCode' => ' <span title="tt_content:212"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text"> <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></span>', - 'title' => 'Professional Services', - 'active' => 'active', - 'controls' => '', - 'message' => '', - ], - [ - 'ref' => 'SOFTREF', - 'type' => 'softref', - 'msg' => '', - 'preCode' => ' <span title="SOFTREF"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft"> + 'title' => 'Professional Services', + 'active' => 'active', + 'controls' => '', + 'message' => '', + ], + [ + 'ref' => 'SOFTREF', + 'type' => 'softref', + 'msg' => '', + 'preCode' => ' <span title="SOFTREF"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft"> <span class="icon-markup"> <img src="typo3/sysext/impexp/Resources/Public/Icons/status-reference-soft.png" width="16" height="16" alt="" /> </span> </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 title="SOFTREF"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft"> + [ + 'ref' => 'SOFTREF', + 'type' => 'softref', + 'msg' => '', + 'preCode' => ' <span title="SOFTREF"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft"> <span class="icon-markup"> <img src="typo3/sysext/impexp/Resources/Public/Icons/status-reference-soft.png" width="16" height="16" alt="" /> </span> </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 title="SOFTREF"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft"> + [ + 'ref' => 'SOFTREF', + 'type' => 'softref', + 'msg' => '', + 'preCode' => ' <span title="SOFTREF"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft"> <span class="icon-markup"> <img src="typo3/sysext/impexp/Resources/Public/Icons/status-reference-soft.png" width="16" height="16" alt="" /> </span> </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 title="SOFTREF"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft"> + [ + 'ref' => 'SOFTREF', + 'type' => 'softref', + 'msg' => '', + 'preCode' => ' <span title="SOFTREF"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft"> <span class="icon-markup"> <img src="typo3/sysext/impexp/Resources/Public/Icons/status-reference-soft.png" width="16" height="16" alt="" /> </span> </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 bb583726ef418755140650261cd5e7e2ef1f3113..a6aa452e51174c43ed044b89ff7fd833ee094f83 100644 --- a/typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImagesInEmptyDatabaseTest.php +++ b/typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImagesInEmptyDatabaseTest.php @@ -195,7 +195,7 @@ class PagesAndTtContentWithImagesInEmptyDatabaseTest extends AbstractImportExpor 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 74139682af06861fb9133ebaed0de3bc9dd06210..af7fa98c4b8a3ba72d43e904fbb88090b417484b 100644 --- a/typo3/sysext/impexp/Tests/Functional/ImportTest.php +++ b/typo3/sysext/impexp/Tests/Functional/ImportTest.php @@ -206,18 +206,18 @@ class ImportTest extends AbstractImportExportTestCase '123456789', ], 'tokenID' => '987654321' , 'expected' => [ - [ - 'ref' => 'FILE', - 'type' => 'file', - 'msg' => '', - 'preCode' => ' <span title="FILE"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-hard" data-identifier="status-reference-hard"> + [ + 'ref' => 'FILE', + 'type' => 'file', + 'msg' => '', + 'preCode' => ' <span title="FILE"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-hard" data-identifier="status-reference-hard"> ' . "\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></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 64962445294aaabeb5aca02cc09b4cb28ff1618c..8a0268582d4eca3202f98f4d30ef3951f84925ac 100644 --- a/typo3/sysext/indexed_search/Classes/Domain/Repository/IndexSearchRepository.php +++ b/typo3/sysext/indexed_search/Classes/Domain/Repository/IndexSearchRepository.php @@ -1172,9 +1172,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/install/Classes/Configuration/Mail/SendmailPreset.php b/typo3/sysext/install/Classes/Configuration/Mail/SendmailPreset.php index e4e8388874cb5a292c84a69c6ef366b796b6c3ee..fc17494f5ff282f323f4b45363988b826549f724 100644 --- a/typo3/sysext/install/Classes/Configuration/Mail/SendmailPreset.php +++ b/typo3/sysext/install/Classes/Configuration/Mail/SendmailPreset.php @@ -43,7 +43,7 @@ class SendmailPreset extends AbstractPreset 'MAIL/transport_smtp_encrypt' => '', 'MAIL/transport_smtp_username' => '', 'MAIL/transport_smtp_password' => '', - ]; + ]; /** * Get configuration values to activate prefix diff --git a/typo3/sysext/install/Configuration/ExtensionScanner/Php/ClassNameMatcher.php b/typo3/sysext/install/Configuration/ExtensionScanner/Php/ClassNameMatcher.php index a0d401b7614588b7d5c089e6fe90cc8b8e144a42..c2b619b68de9f07da163111aa108eebad872909a 100644 --- a/typo3/sysext/install/Configuration/ExtensionScanner/Php/ClassNameMatcher.php +++ b/typo3/sysext/install/Configuration/ExtensionScanner/Php/ClassNameMatcher.php @@ -1662,7 +1662,7 @@ return [ 'TYPO3\CMS\Core\Service\AbstractService' => [ 'restFiles' => [ 'Deprecation-94313-ClassAbstractService.rst', - ], + ], ], 'TYPO3\CMS\Extbase\Mvc\Web\ReferringRequest' => [ 'restFiles' => [ diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ArrayDimensionMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ArrayDimensionMatcherTest.php index 3a7bbca9b1768d84e1e0b467a04df7b4e1bd4f7f..54fcb3d5b5e48e1ed5186322d1e3fcd2958968ec 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ArrayDimensionMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ArrayDimensionMatcherTest.php @@ -121,7 +121,7 @@ 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 7af04b6dfbec6c252197715a5e569ef0d1c59c1f..4af665cc0f44ce6b92e373ecdbddb36cfe738825 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ArrayGlobalMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ArrayGlobalMatcherTest.php @@ -86,7 +86,7 @@ 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 4e6fc0a74d92c20d36a0d62b102953d489b96824..c9609f46ccc85dcffb0ae04480a8ea958a842c09 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentDroppedMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentDroppedMatcherTest.php @@ -222,7 +222,7 @@ 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 d0ebb32962084fb3e22449a674ed8df5c9be251f..b1765fcb5264291bc6696146dbf92aa85cee9509 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentDroppedStaticMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentDroppedStaticMatcherTest.php @@ -225,7 +225,7 @@ 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 4a21be36b01da7d631c27b758c972900127b1b96..0e903207937a341a908d5e1c096791970953c664 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentRequiredMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentRequiredMatcherTest.php @@ -215,7 +215,7 @@ 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 0467d43d9994e3050d14d86e56758c4554ce8474..cfacfb2047b0d0205e864d6dfb64f52f97ae06a5 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentRequiredStaticMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentRequiredStaticMatcherTest.php @@ -193,7 +193,7 @@ 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 b6f76baa0f7eaf9138b17b3f50f9c98456542652..bf69fb66d49ac66c321f5b25536f2818b16ffad4 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentUnusedMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentUnusedMatcherTest.php @@ -211,7 +211,7 @@ 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 a9bc99742363eaf6109311407455554aefd10572..bd8d199d5818f509ddd31f3a76606f188f636cce 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodCallMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodCallMatcherTest.php @@ -305,7 +305,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 3bae7fd8bc5222b804c9b0e3a1f28dd28527e643..b245708d2c9da02db8e7140131465dcbb3362e3c 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/PropertyProtectedMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/PropertyProtectedMatcherTest.php @@ -120,7 +120,7 @@ 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 252f5dc538780cca68921741865ea5e9a39356bf..39e90f47f260eb4a6cdda355af42291c66be37f7 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/PropertyPublicMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/PropertyPublicMatcherTest.php @@ -120,7 +120,7 @@ class PropertyPublicMatcherTest extends UnitTestCase ], ], ], - ]; + ]; } /** diff --git a/typo3/sysext/linkvalidator/Tests/Functional/Repository/BrokenLinkRepositoryTest.php b/typo3/sysext/linkvalidator/Tests/Functional/Repository/BrokenLinkRepositoryTest.php index 5704d30c6c12f8582e9830a439d1e4075b0e3469..126daafd0220a5dc4b7dd1fba3b2750f858463b3 100644 --- a/typo3/sysext/linkvalidator/Tests/Functional/Repository/BrokenLinkRepositoryTest.php +++ b/typo3/sysext/linkvalidator/Tests/Functional/Repository/BrokenLinkRepositoryTest.php @@ -366,17 +366,17 @@ class BrokenLinkRepositoryTest extends FunctionalTestCase // 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 c0460684bfcd07dd635e749b2d63279b1c0f16be..c300b6f6ee51e0ffd5f9692c10b8f0e0c4f5ddac 100644 --- a/typo3/sysext/linkvalidator/Tests/Unit/Linktype/ExternalLinktypeTest.php +++ b/typo3/sysext/linkvalidator/Tests/Unit/Linktype/ExternalLinktypeTest.php @@ -157,17 +157,17 @@ 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', @@ -185,13 +185,13 @@ 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/Database/QueryGenerator.php b/typo3/sysext/lowlevel/Classes/Database/QueryGenerator.php index d49fa95a21bf44bace37e5c15d86958c9db2dd33..9ae32632352a19ffbf2a8bb65c21e56c74280595 100644 --- a/typo3/sysext/lowlevel/Classes/Database/QueryGenerator.php +++ b/typo3/sysext/lowlevel/Classes/Database/QueryGenerator.php @@ -944,15 +944,15 @@ class QueryGenerator } else { $out .= '<div class="btn-group" role="group">'; $out .= '<a class="btn btn-default" href="' . htmlspecialchars((string)$uriBuilder->buildUriFromRoute('tce_db', [ - 'cmd' => [ - $table => [ - $row['uid'] => [ - 'undelete' => 1, - ], - ], + 'cmd' => [ + $table => [ + $row['uid'] => [ + 'undelete' => 1, ], - 'redirect' => GeneralUtility::linkThisScript(), - ])) . '" title="' . htmlspecialchars($languageService->getLL('undelete_only')) . '">'; + ], + ], + 'redirect' => GeneralUtility::linkThisScript(), + ])) . '" title="' . htmlspecialchars($languageService->getLL('undelete_only')) . '">'; $out .= $this->iconFactory->getIcon('actions-edit-restore', Icon::SIZE_SMALL)->render() . '</a>'; $formEngineParameters = [ 'edit' => [ @@ -964,15 +964,15 @@ class QueryGenerator ]; $redirectUrl = (string)$uriBuilder->buildUriFromRoute('record_edit', $formEngineParameters); $out .= '<a class="btn btn-default" href="' . htmlspecialchars((string)$uriBuilder->buildUriFromRoute('tce_db', [ - 'cmd' => [ - $table => [ - $row['uid'] => [ - 'undelete' => 1, - ], + 'cmd' => [ + $table => [ + $row['uid'] => [ + 'undelete' => 1, ], ], - 'redirect' => $redirectUrl, - ])) . '" title="' . htmlspecialchars($languageService->getLL('undelete_and_edit')) . '">'; + ], + 'redirect' => $redirectUrl, + ])) . '" title="' . htmlspecialchars($languageService->getLL('undelete_and_edit')) . '">'; $out .= $this->iconFactory->getIcon('actions-delete-edit', Icon::SIZE_SMALL)->render() . '</a>'; $out .= '</div>'; } diff --git a/typo3/sysext/opendocs/Tests/Unit/Service/OpenDocumentServiceTest.php b/typo3/sysext/opendocs/Tests/Unit/Service/OpenDocumentServiceTest.php index 627ab6030215487f6b860ec37f12df970528e5cf..ed7729517e92b2bab963a58b97aeff19b7bfb58e 100644 --- a/typo3/sysext/opendocs/Tests/Unit/Service/OpenDocumentServiceTest.php +++ b/typo3/sysext/opendocs/Tests/Unit/Service/OpenDocumentServiceTest.php @@ -121,14 +121,14 @@ class OpenDocumentServiceTest extends UnitTestCase 'identifier9', ]); $this->backendUser->getModuleData('opendocs::recent')->willReturn([ - 'identifier8' => [ 'data8' ], - 'identifier7' => [ 'data7' ], - 'identifier6' => [ 'data6' ], - 'identifier5' => [ 'data5' ], - 'identifier4' => [ 'data4' ], - 'identifier3' => [ 'data3' ], - 'identifier2' => [ 'data2' ], - 'identifier1' => [ 'data1' ], + 'identifier8' => [ 'data8' ], + 'identifier7' => [ 'data7' ], + 'identifier6' => [ 'data6' ], + 'identifier5' => [ 'data5' ], + 'identifier4' => [ 'data4' ], + 'identifier3' => [ 'data3' ], + 'identifier2' => [ 'data2' ], + 'identifier1' => [ 'data1' ], ]); $expectedOpenDocumentsData = [ @@ -140,14 +140,14 @@ class OpenDocumentServiceTest extends UnitTestCase $this->backendUser->pushModuleData('FormEngine', $expectedOpenDocumentsData)->shouldBeCalled(); $expectedRecentDocumentsData = [ - 'identifier9' => [ 'data9' ], - 'identifier8' => [ 'data8' ], - 'identifier7' => [ 'data7' ], - 'identifier6' => [ 'data6' ], - 'identifier5' => [ 'data5' ], - 'identifier4' => [ 'data4' ], - 'identifier3' => [ 'data3' ], - 'identifier2' => [ 'data2' ], + 'identifier9' => [ 'data9' ], + 'identifier8' => [ 'data8' ], + 'identifier7' => [ 'data7' ], + 'identifier6' => [ 'data6' ], + 'identifier5' => [ 'data5' ], + 'identifier4' => [ 'data4' ], + 'identifier3' => [ 'data3' ], + 'identifier2' => [ 'data2' ], ]; $this->backendUser->pushModuleData('opendocs::recent', $expectedRecentDocumentsData)->shouldBeCalled(); diff --git a/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php b/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php index d33aa427b6599c25bd15abd72ec132e447f10b9f..7d4ae57ec5190f266feffa06adf55c25316ab58f 100644 --- a/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php +++ b/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php @@ -1517,9 +1517,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()->getLL('history')) . '">' . $this->iconFactory->getIcon('actions-document-history-open', Icon::SIZE_SMALL)->render() . '</a>'; @@ -2032,9 +2032,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/recordlist/Tests/Functional/RecordList/DownloadRecordListTest.php b/typo3/sysext/recordlist/Tests/Functional/RecordList/DownloadRecordListTest.php index 4d05205f018bf5a9f90e6b5951caec1ad2fef2e6..6524418d23c75be27bec4a3e2452bdc114420f7f 100644 --- a/typo3/sysext/recordlist/Tests/Functional/RecordList/DownloadRecordListTest.php +++ b/typo3/sysext/recordlist/Tests/Functional/RecordList/DownloadRecordListTest.php @@ -134,31 +134,31 @@ class DownloadRecordListTest extends FunctionalTestCase $contentRows = $subject->getRecords('pages', 1, $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/redirects/Classes/Controller/ManagementController.php b/typo3/sysext/redirects/Classes/Controller/ManagementController.php index 2bbd3da9289c0c0ce26a6e7e969ef4c664987956..0cd061961d73257afef89041038dbc3f5dc25502 100644 --- a/typo3/sysext/redirects/Classes/Controller/ManagementController.php +++ b/typo3/sysext/redirects/Classes/Controller/ManagementController.php @@ -163,9 +163,9 @@ class ManagementController 'record_edit', [ 'edit' => ['sys_redirect' => ['new'], - ], - 'returnUrl' => (string)$uriBuilder->buildUriFromRoute('site_redirects'), - ] + ], + 'returnUrl' => (string)$uriBuilder->buildUriFromRoute('site_redirects'), + ] )) ->setTitle($this->getLanguageService()->getLL('redirect_add_text')) ->setIcon($this->iconFactory->getIcon('actions-add', Icon::SIZE_SMALL)); diff --git a/typo3/sysext/scheduler/Classes/Controller/SchedulerModuleController.php b/typo3/sysext/scheduler/Classes/Controller/SchedulerModuleController.php index 92d76ee5dc4c40c1f4b458c25f7503ca56bd518b..a4957189a7cef8c336133d2ef19d64a8bc4742e9 100644 --- a/typo3/sysext/scheduler/Classes/Controller/SchedulerModuleController.php +++ b/typo3/sysext/scheduler/Classes/Controller/SchedulerModuleController.php @@ -178,9 +178,9 @@ class SchedulerModuleController GeneralUtility::getFileAbsFileName('EXT:scheduler/Resources/Private/Templates/Backend/SchedulerModule/Index.html') ); $this->view->assignMultiple([ - 'headline' => $this->getLanguageService()->getLL('function.' . $this->MOD_SETTINGS['function']), - 'sectionTitle' => $this->getSectionTitle(), - 'content' => $content, + 'headline' => $this->getLanguageService()->getLL('function.' . $this->MOD_SETTINGS['function']), + 'sectionTitle' => $this->getSectionTitle(), + 'content' => $content, ]); $this->getButtons($request); diff --git a/typo3/sysext/seo/Classes/Canonical/CanonicalGenerator.php b/typo3/sysext/seo/Classes/Canonical/CanonicalGenerator.php index 6e9de1793ec87d0fe22c5f61d8262e9380471973..9ce7216871fcbe32e25f36b84287951ba29c6548 100644 --- a/typo3/sysext/seo/Classes/Canonical/CanonicalGenerator.php +++ b/typo3/sysext/seo/Classes/Canonical/CanonicalGenerator.php @@ -82,9 +82,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; }