From b7bf7e12f5bb63362045a446a3a1808039a08ac5 Mon Sep 17 00:00:00 2001 From: Benjamin Kott Date: Wed, 9 Oct 2024 14:42:28 +0200 Subject: [PATCH] [TASK] Add trailing comma in multiline fixer rule --- .php-cs-fixer.dist.php | 7 +- Build/deploy.php | 6 +- Classes/DataProcessing/CsvFileProcessor.php | 2 +- .../ExpressionLanguage/ConditionProvider.php | 2 +- Classes/Hooks/PageRenderer/GoogleFontHook.php | 2 +- Classes/Icons/FileIcon.php | 2 +- Classes/Parser/ScssParser.php | 4 +- Classes/Service/CompileService.php | 6 +- Classes/Service/GoogleFontService.php | 2 +- Classes/Service/IconService.php | 6 +- Classes/Updates/AbstractUpdate.php | 2 +- .../Updates/AccordionMediaOrientUpdate.php | 2 +- Classes/Updates/BackendLayoutUpdate.php | 4 +- .../Updates/BulletContentElementUpdate.php | 4 +- .../Updates/CarouselContentElementUpdate.php | 4 +- Classes/Updates/CarouselItemTypeUpdate.php | 2 +- .../Updates/FrameClassToBackgroundUpdate.php | 4 +- Classes/Updates/FrameClassToOptionsUpdate.php | 4 +- Classes/Updates/FrameClassUpdate.php | 4 +- Classes/Updates/PanelContentElementUpdate.php | 2 +- Classes/Updates/TabMediaOrientUpdate.php | 2 +- Classes/Updates/TableContentElementUpdate.php | 2 +- Classes/Updates/TexticonIconUpdate.php | 4 +- Classes/Updates/TexticonSizeUpdate.php | 2 +- Classes/Updates/TexticonTypeUpdate.php | 2 +- Classes/Utility/ExternalMediaUtility.php | 4 +- Classes/Utility/ImageVariantsUtility.php | 14 +- .../ViewHelpers/Data/PaginateViewHelper.php | 4 +- Classes/ViewHelpers/FrameViewHelper.php | 2 +- Configuration/ExpressionLanguage.php | 2 +- Configuration/Icons.php | 60 +- Tests/Functional/Parser/ScssParserTest.php | 6 +- .../AccordionContentElementUpdateTest.php | 2 +- .../AccordionMediaOrientUpdateTest.php | 2 +- .../Updates/BackendLayoutUpdateTest.php | 2 +- .../BulletContentElementUpdateTest.php | 2 +- .../CarouselContentElementUpdateTest.php | 2 +- .../Updates/CarouselItemLayoutUpdateTest.php | 2 +- .../Updates/CarouselItemTypeUpdateTest.php | 2 +- .../ExternalMediaContentElementUpdateTest.php | 2 +- .../FrameClassToBackgroundUpdateTest.php | 2 +- .../Updates/FrameClassToOptionsUpdateTest.php | 2 +- .../Updates/FrameClassUpdateTest.php | 2 +- .../ListGroupContentElementUpdateTest.php | 2 +- .../Updates/PanelContentElementUpdateTest.php | 2 +- .../Updates/TabContentElementUpdateTest.php | 2 +- .../Updates/TabMediaOrientUpdateTest.php | 2 +- .../Updates/TableContentElementUpdateTest.php | 2 +- .../TexticonContentElementUpdateTest.php | 2 +- .../Updates/TexticonIconUpdateTest.php | 2 +- .../Updates/TexticonSizeUpdateTest.php | 2 +- .../Updates/TexticonTypeUpdateTest.php | 2 +- Tests/Unit/Compiler/ScssCompilerTest.php | 4 +- .../DataProcessing/SkiplinkProcessorTest.php | 6 +- .../Unit/Utility/ExternalMediaUtilityTest.php | 22 +- .../Unit/Utility/ImageVariantsUtilityTest.php | 606 +++++++++--------- ext_emconf.php | 4 +- ext_localconf.php | 2 +- 58 files changed, 432 insertions(+), 427 deletions(-) diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index f0cc6f689..652092548 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -62,7 +62,12 @@ 'native_function_casing' => true, 'self_accessor' => true, 'no_short_bool_cast' => true, - 'no_unneeded_control_parentheses' => true + 'no_unneeded_control_parentheses' => true, + 'trailing_comma_in_multiline' => [ + 'elements' => [ + 'arrays', + ], + ], ]) ->setFinder( PhpCsFixer\Finder::create() diff --git a/Build/deploy.php b/Build/deploy.php index e8efdf8d2..6d6e6c983 100644 --- a/Build/deploy.php +++ b/Build/deploy.php @@ -54,14 +54,14 @@ 'config', 'web/fileadmin', 'web/typo3temp', - 'web/uploads' + 'web/uploads', ]); set('shared_files', [ 'composer.json', 'web/.htaccess', 'web/typo3conf/AdditionalConfiguration.php', 'web/typo3conf/LocalConfiguration.php', - 'web/typo3conf/PackageStates.php' + 'web/typo3conf/PackageStates.php', ]); // Set Writeable files @@ -70,7 +70,7 @@ 'web/fileadmin', 'web/typo3temp', 'web/typo3conf', - 'web/uploads' + 'web/uploads', ]); // Misc diff --git a/Classes/DataProcessing/CsvFileProcessor.php b/Classes/DataProcessing/CsvFileProcessor.php index 01ee5c59e..1781fef0d 100644 --- a/Classes/DataProcessing/CsvFileProcessor.php +++ b/Classes/DataProcessing/CsvFileProcessor.php @@ -61,7 +61,7 @@ public function process(ContentObjectRenderer $cObj, array $contentObjectConfigu $fieldDelimiter, $fieldEnclosure, $maximumColumns - ) + ), ]; } } diff --git a/Classes/ExpressionLanguage/ConditionProvider.php b/Classes/ExpressionLanguage/ConditionProvider.php index 597ec9a3f..0b158f375 100644 --- a/Classes/ExpressionLanguage/ConditionProvider.php +++ b/Classes/ExpressionLanguage/ConditionProvider.php @@ -21,7 +21,7 @@ class ConditionProvider extends AbstractProvider public function __construct() { $this->expressionLanguageVariables = [ - 'extension' => GeneralUtility::makeInstance(ExtensionWrapper::class) + 'extension' => GeneralUtility::makeInstance(ExtensionWrapper::class), ]; } } diff --git a/Classes/Hooks/PageRenderer/GoogleFontHook.php b/Classes/Hooks/PageRenderer/GoogleFontHook.php index 469069863..0e9f60b8b 100644 --- a/Classes/Hooks/PageRenderer/GoogleFontHook.php +++ b/Classes/Hooks/PageRenderer/GoogleFontHook.php @@ -25,7 +25,7 @@ class GoogleFontHook */ protected $includeMapping = [ 'includeCSSLibs' => 'cssLibs', - 'includeCSS' => 'cssFiles' + 'includeCSS' => 'cssFiles', ]; /** diff --git a/Classes/Icons/FileIcon.php b/Classes/Icons/FileIcon.php index c4c8b5752..7bd941d95 100644 --- a/Classes/Icons/FileIcon.php +++ b/Classes/Icons/FileIcon.php @@ -61,7 +61,7 @@ public function render(): string $processingInstructions = [ 'width' => $width . 'c', - 'height' => $height . 'c' + 'height' => $height . 'c', ]; $processedImage = $imageService->applyProcessingInstructions($image, $processingInstructions); $imageUri = $imageService->getImageUri($processedImage); diff --git a/Classes/Parser/ScssParser.php b/Classes/Parser/ScssParser.php index 3c239de0d..95665b189 100644 --- a/Classes/Parser/ScssParser.php +++ b/Classes/Parser/ScssParser.php @@ -178,8 +178,8 @@ function ($args) use ( 'etag' => md5($css), 'files' => $compilationResult->getIncludedFiles(), 'variables' => $settings['variables'], - 'sourceMap' => $settings['options']['sourceMap'] - ] + 'sourceMap' => $settings['options']['sourceMap'], + ], ]; } } diff --git a/Classes/Service/CompileService.php b/Classes/Service/CompileService.php index 3ddbb3515..1fb52d7fa 100644 --- a/Classes/Service/CompileService.php +++ b/Classes/Service/CompileService.php @@ -50,7 +50,7 @@ public function getCompiledFile(ServerRequestInterface $request, string $file): 'file' => [ 'absolute' => $absoluteFile, 'relative' => $file, - 'info' => pathinfo($absoluteFile) + 'info' => pathinfo($absoluteFile), ], 'cache' => [ 'tempDirectory' => $this->tempDirectory, @@ -59,9 +59,9 @@ public function getCompiledFile(ServerRequestInterface $request, string $file): 'options' => [ 'override' => (bool) ($configuration['overrideParserVariables'] ?? false), 'sourceMap' => (bool) ($configuration['cssSourceMapping'] ?? false), - 'compress' => true + 'compress' => true, ], - 'variables' => [] + 'variables' => [], ]; // Parser diff --git a/Classes/Service/GoogleFontService.php b/Classes/Service/GoogleFontService.php index 986e6f5e6..ccb185c30 100644 --- a/Classes/Service/GoogleFontService.php +++ b/Classes/Service/GoogleFontService.php @@ -56,7 +56,7 @@ protected function cacheFile(string $file): bool /** @var ResponseInterface */ $response = $requestFactory->request($file, 'GET', [ - 'headers' => ['User-Agent' => 'Mozilla/5.0 Gecko/20100101 Firefox/94.0 AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36 Edg/97.0.1072.55'] + 'headers' => ['User-Agent' => 'Mozilla/5.0 Gecko/20100101 Firefox/94.0 AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36 Edg/97.0.1072.55'], ]); if ($response->getStatusCode() >= 300) { diff --git a/Classes/Service/IconService.php b/Classes/Service/IconService.php index b9a1ebe83..41e3680ed 100644 --- a/Classes/Service/IconService.php +++ b/Classes/Service/IconService.php @@ -27,7 +27,7 @@ public function getIconSetItems(array &$configuration): void foreach ($iconProviders as $iconProvider) { $iconSets[] = [ $iconProvider->getName(), - $iconProvider->getIdentifier() + $iconProvider->getIdentifier(), ]; } @@ -40,7 +40,7 @@ public function getIconItems(array &$configuration): void $iconItems[] = [ 'LLL:EXT:bootstrap_package/Resources/Private/Language/Backend.xlf:option.none', 0, - 'EXT:bootstrap_package/Resources/Public/Images/Icons/none.svg' + 'EXT:bootstrap_package/Resources/Public/Images/Icons/none.svg', ]; $iconSetField = $configuration['config']['itemsProcConfig']['iconSetField'] ?? 'icon_set'; @@ -52,7 +52,7 @@ public function getIconItems(array &$configuration): void $iconItems[] = [ $icon->getName(), $icon->getIdentifier(), - $icon->getPreviewImage() + $icon->getPreviewImage(), ]; } } diff --git a/Classes/Updates/AbstractUpdate.php b/Classes/Updates/AbstractUpdate.php index f620acab0..0f22c69f7 100644 --- a/Classes/Updates/AbstractUpdate.php +++ b/Classes/Updates/AbstractUpdate.php @@ -64,7 +64,7 @@ public function getDescription(): string public function getPrerequisites(): array { return [ - DatabaseUpdatedPrerequisite::class + DatabaseUpdatedPrerequisite::class, ]; } diff --git a/Classes/Updates/AccordionMediaOrientUpdate.php b/Classes/Updates/AccordionMediaOrientUpdate.php index 342f6d7c0..8758413b6 100644 --- a/Classes/Updates/AccordionMediaOrientUpdate.php +++ b/Classes/Updates/AccordionMediaOrientUpdate.php @@ -38,7 +38,7 @@ class AccordionMediaOrientUpdate extends AbstractUpdate implements UpgradeWizard */ protected $mapping = [ 0 => 'left', - 1 => 'right' + 1 => 'right', ]; public function updateNecessary(): bool diff --git a/Classes/Updates/BackendLayoutUpdate.php b/Classes/Updates/BackendLayoutUpdate.php index 859468291..09a84d83a 100644 --- a/Classes/Updates/BackendLayoutUpdate.php +++ b/Classes/Updates/BackendLayoutUpdate.php @@ -42,7 +42,7 @@ class BackendLayoutUpdate extends AbstractUpdate implements UpgradeWizardInterfa 'pagets__default_subnavigation_right' => 'pagets__subnavigation_right', 'pagets__default_subnavigation_right_2_columns' => 'pagets__subnavigation_right_2_columns', 'pagets__default_subnavigation_left' => 'pagets__subnavigation_left', - 'pagets__default_subnavigation_left_2_columns' => 'pagets__subnavigation_left_2_columns' + 'pagets__default_subnavigation_left_2_columns' => 'pagets__subnavigation_left_2_columns', ]; public function updateNecessary(): bool @@ -71,7 +71,7 @@ public function executeUpdate(): bool (int) $record['uid'], [ 'backend_layout' => $this->mapValues(strval($record['backend_layout'])), - 'backend_layout_next_level' => $this->mapValues(strval($record['backend_layout_next_level'])) + 'backend_layout_next_level' => $this->mapValues(strval($record['backend_layout_next_level'])), ] ); } diff --git a/Classes/Updates/BulletContentElementUpdate.php b/Classes/Updates/BulletContentElementUpdate.php index 52f273523..f3cc577c6 100644 --- a/Classes/Updates/BulletContentElementUpdate.php +++ b/Classes/Updates/BulletContentElementUpdate.php @@ -54,7 +54,7 @@ public function executeUpdate(): bool (int) $record['uid'], [ 'layout' => (string) 0, - 'bullets_type' => (string) $this->mapValues(intval($record['layout'])) + 'bullets_type' => (string) $this->mapValues(intval($record['layout'])), ] ); } @@ -65,7 +65,7 @@ public function executeUpdate(): bool protected function mapValues(int $layout): int { $mapping = [ - 110 => 1 + 110 => 1, ]; if (array_key_exists($layout, $mapping)) { return $mapping[$layout]; diff --git a/Classes/Updates/CarouselContentElementUpdate.php b/Classes/Updates/CarouselContentElementUpdate.php index 6d4878154..3ec034310 100644 --- a/Classes/Updates/CarouselContentElementUpdate.php +++ b/Classes/Updates/CarouselContentElementUpdate.php @@ -48,7 +48,7 @@ public function executeUpdate(): bool (int) $record['uid'], [ 'layout' => $this->resetLayout(intval($record['layout'])), - 'CType' => $this->mapValues(intval($record['layout'])) + 'CType' => $this->mapValues(intval($record['layout'])), ] ); } @@ -68,7 +68,7 @@ protected function mapValues(int $layout): string { $mapping = [ 110 => 'carousel_small', - 120 => 'carousel_fullscreen' + 120 => 'carousel_fullscreen', ]; if (array_key_exists($layout, $mapping)) { return $mapping[$layout]; diff --git a/Classes/Updates/CarouselItemTypeUpdate.php b/Classes/Updates/CarouselItemTypeUpdate.php index d4893aa34..b64a108ad 100644 --- a/Classes/Updates/CarouselItemTypeUpdate.php +++ b/Classes/Updates/CarouselItemTypeUpdate.php @@ -57,7 +57,7 @@ protected function mapValues(string $type): string { $mapping = [ 'textandimage' => 'text_and_image', - 'backgroundimage' => 'background_image' + 'backgroundimage' => 'background_image', ]; if (array_key_exists($type, $mapping)) { return $mapping[$type]; diff --git a/Classes/Updates/FrameClassToBackgroundUpdate.php b/Classes/Updates/FrameClassToBackgroundUpdate.php index 2b9b18488..d86009962 100644 --- a/Classes/Updates/FrameClassToBackgroundUpdate.php +++ b/Classes/Updates/FrameClassToBackgroundUpdate.php @@ -38,7 +38,7 @@ class FrameClassToBackgroundUpdate extends AbstractUpdate implements UpgradeWiza */ protected $mapping = [ 'well' => 'light', - 'jumbotron' => 'primary' + 'jumbotron' => 'primary', ]; public function updateNecessary(): bool @@ -62,7 +62,7 @@ public function executeUpdate(): bool (int) $record['uid'], [ $this->field => 'default', - 'background_color_class' => $newValue + 'background_color_class' => $newValue, ] ); } diff --git a/Classes/Updates/FrameClassToOptionsUpdate.php b/Classes/Updates/FrameClassToOptionsUpdate.php index 17b982a1c..e41b0b0d6 100644 --- a/Classes/Updates/FrameClassToOptionsUpdate.php +++ b/Classes/Updates/FrameClassToOptionsUpdate.php @@ -41,7 +41,7 @@ class FrameClassToOptionsUpdate extends AbstractUpdate implements UpgradeWizardI 'ruler-after' => 'ruler-after', 'indent' => 'indent-left,indent-right', 'indent-left' => 'indent-left', - 'indent-right' => 'indent-right' + 'indent-right' => 'indent-right', ]; public function updateNecessary(): bool @@ -65,7 +65,7 @@ public function executeUpdate(): bool (int) $record['uid'], [ $this->field => 'default', - 'frame_options' => $newValue + 'frame_options' => $newValue, ] ); } diff --git a/Classes/Updates/FrameClassUpdate.php b/Classes/Updates/FrameClassUpdate.php index ba5bd03ed..9952942ac 100644 --- a/Classes/Updates/FrameClassUpdate.php +++ b/Classes/Updates/FrameClassUpdate.php @@ -52,7 +52,7 @@ public function executeUpdate(): bool (int) $record['uid'], [ 'section_frame' => '0', - 'frame_class' => $this->mapSectionFrame(intval($record['section_frame'])) + 'frame_class' => $this->mapSectionFrame(intval($record['section_frame'])), ] ); } @@ -71,7 +71,7 @@ protected function mapSectionFrame(int $sectionFrame): string 12 => 'indent-right', 20 => 'well', 21 => 'jumbotron', - 66 => 'none' + 66 => 'none', ]; if (array_key_exists($sectionFrame, $mapping)) { return $mapping[$sectionFrame]; diff --git a/Classes/Updates/PanelContentElementUpdate.php b/Classes/Updates/PanelContentElementUpdate.php index 491838a27..56cdc3d95 100644 --- a/Classes/Updates/PanelContentElementUpdate.php +++ b/Classes/Updates/PanelContentElementUpdate.php @@ -49,7 +49,7 @@ public function executeUpdate(): bool [ 'CType' => 'panel', 'layout' => '0', - 'panel_class' => $this->mapValues(intval($record['layout'])) + 'panel_class' => $this->mapValues(intval($record['layout'])), ] ); } diff --git a/Classes/Updates/TabMediaOrientUpdate.php b/Classes/Updates/TabMediaOrientUpdate.php index 8cec8a8a0..9719678ad 100644 --- a/Classes/Updates/TabMediaOrientUpdate.php +++ b/Classes/Updates/TabMediaOrientUpdate.php @@ -38,7 +38,7 @@ class TabMediaOrientUpdate extends AbstractUpdate implements UpgradeWizardInterf */ protected $mapping = [ 0 => 'left', - 1 => 'right' + 1 => 'right', ]; public function updateNecessary(): bool diff --git a/Classes/Updates/TableContentElementUpdate.php b/Classes/Updates/TableContentElementUpdate.php index 52d696b9d..05d4d62b9 100644 --- a/Classes/Updates/TableContentElementUpdate.php +++ b/Classes/Updates/TableContentElementUpdate.php @@ -54,7 +54,7 @@ public function executeUpdate(): bool (int) $record['uid'], [ 'layout' => '0', - 'table_class' => $this->mapValues(intval($record['layout'])) + 'table_class' => $this->mapValues(intval($record['layout'])), ] ); } diff --git a/Classes/Updates/TexticonIconUpdate.php b/Classes/Updates/TexticonIconUpdate.php index de3b77b35..660731525 100644 --- a/Classes/Updates/TexticonIconUpdate.php +++ b/Classes/Updates/TexticonIconUpdate.php @@ -33,7 +33,7 @@ public function updateNecessary(): bool $queryBuilder = $this->createQueryBuilder(); $criteria = [ $this->createLikeCriteria($queryBuilder, 'icon', 'Glyphicons%'), - $this->createLikeCriteria($queryBuilder, 'icon', 'Ionicons%') + $this->createLikeCriteria($queryBuilder, 'icon', 'Ionicons%'), ]; $records = $this->getRecordsByCriteria($queryBuilder, $criteria, AbstractUpdate::CONDITION_OR); @@ -45,7 +45,7 @@ public function executeUpdate(): bool $queryBuilder = $this->createQueryBuilder(); $criteria = [ $this->createLikeCriteria($queryBuilder, 'icon', 'Glyphicons%'), - $this->createLikeCriteria($queryBuilder, 'icon', 'Ionicons%') + $this->createLikeCriteria($queryBuilder, 'icon', 'Ionicons%'), ]; $records = $this->getRecordsByCriteria($queryBuilder, $criteria, AbstractUpdate::CONDITION_OR); diff --git a/Classes/Updates/TexticonSizeUpdate.php b/Classes/Updates/TexticonSizeUpdate.php index e55219cb5..8807c8c1b 100644 --- a/Classes/Updates/TexticonSizeUpdate.php +++ b/Classes/Updates/TexticonSizeUpdate.php @@ -40,7 +40,7 @@ class TexticonSizeUpdate extends AbstractUpdate implements UpgradeWizardInterfac 0 => 'default', 1 => 'medium', 2 => 'large', - 3 => 'awesome' + 3 => 'awesome', ]; public function updateNecessary(): bool diff --git a/Classes/Updates/TexticonTypeUpdate.php b/Classes/Updates/TexticonTypeUpdate.php index 7bdcbc16c..b3c0d3507 100644 --- a/Classes/Updates/TexticonTypeUpdate.php +++ b/Classes/Updates/TexticonTypeUpdate.php @@ -39,7 +39,7 @@ class TexticonTypeUpdate extends AbstractUpdate implements UpgradeWizardInterfac protected $mapping = [ 0 => 'default', 1 => 'square', - 2 => 'circle' + 2 => 'circle', ]; public function updateNecessary(): bool diff --git a/Classes/Utility/ExternalMediaUtility.php b/Classes/Utility/ExternalMediaUtility.php index cd2aef225..5c2d915f1 100644 --- a/Classes/Utility/ExternalMediaUtility.php +++ b/Classes/Utility/ExternalMediaUtility.php @@ -22,7 +22,7 @@ class ExternalMediaUtility protected array $mediaProvider = [ 'youtube', 'youtu', - 'vimeo' + 'vimeo', ]; /** @@ -44,7 +44,7 @@ public function getEmbedCode(?string $url, ?string $class, ?string $title = null if ($embedUrl !== null) { $attributes = [ 'src' => $embedUrl, - 'frameborder' => '0' + 'frameborder' => '0', ]; if ($title !== null && trim($title) !== '') { $attributes['title'] = trim($title); diff --git a/Classes/Utility/ImageVariantsUtility.php b/Classes/Utility/ImageVariantsUtility.php index a5e2526b2..2718407ba 100644 --- a/Classes/Utility/ImageVariantsUtility.php +++ b/Classes/Utility/ImageVariantsUtility.php @@ -31,27 +31,27 @@ class ImageVariantsUtility protected static $defaultVariants = [ 'default' => [ 'breakpoint' => 1400, - 'width' => 1280 + 'width' => 1280, ], 'xlarge' => [ 'breakpoint' => 1200, - 'width' => 1100 + 'width' => 1100, ], 'large' => [ 'breakpoint' => 992, - 'width' => 920 + 'width' => 920, ], 'medium' => [ 'breakpoint' => 768, - 'width' => 680 + 'width' => 680, ], 'small' => [ 'breakpoint' => 576, - 'width' => 500 + 'width' => 500, ], 'extrasmall' => [ - 'width' => 374 - ] + 'width' => 374, + ], ]; /** diff --git a/Classes/ViewHelpers/Data/PaginateViewHelper.php b/Classes/ViewHelpers/Data/PaginateViewHelper.php index f09d6ebba..0c13223b2 100644 --- a/Classes/ViewHelpers/Data/PaginateViewHelper.php +++ b/Classes/ViewHelpers/Data/PaginateViewHelper.php @@ -60,7 +60,7 @@ public function render(): string 'itemsPerPage' => 10, 'insertAbove' => false, 'insertBelow' => true, - 'section' => '' + 'section' => '', ]; ArrayUtility::mergeRecursiveWithOverrule($configuration, $this->arguments['configuration'], false); @@ -80,7 +80,7 @@ public function render(): string 'id' => $id, 'paginator' => $paginator, 'pagination' => $pagination, - 'configuration' => $configuration + 'configuration' => $configuration, ]); $paginationRendered = $paginationView->render(); diff --git a/Classes/ViewHelpers/FrameViewHelper.php b/Classes/ViewHelpers/FrameViewHelper.php index 8e39c01dc..7cbfabce8 100644 --- a/Classes/ViewHelpers/FrameViewHelper.php +++ b/Classes/ViewHelpers/FrameViewHelper.php @@ -158,7 +158,7 @@ public function render() ], 'variants' => $configuration['variants'], 'content' => $this->renderChildren(), - 'frameAttributes' => GeneralUtility::implodeAttributes($configuration['frameAttributes'], true) + 'frameAttributes' => GeneralUtility::implodeAttributes($configuration['frameAttributes'], true), ] ); diff --git a/Configuration/ExpressionLanguage.php b/Configuration/ExpressionLanguage.php index a48a0530b..cbedfaa13 100644 --- a/Configuration/ExpressionLanguage.php +++ b/Configuration/ExpressionLanguage.php @@ -10,5 +10,5 @@ return [ 'typoscript' => [ \BK2K\BootstrapPackage\ExpressionLanguage\ConditionProvider::class, - ] + ], ]; diff --git a/Configuration/Icons.php b/Configuration/Icons.php index 29fc3fa13..83c9656a1 100644 --- a/Configuration/Icons.php +++ b/Configuration/Icons.php @@ -10,122 +10,122 @@ return [ 'systeminformation-bootstrappackage' => [ 'provider' => \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, - 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/SystemInformation/bootstrappackage.svg' + 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/SystemInformation/bootstrappackage.svg', ], 'content-bootstrappackage-accordion' => [ 'provider' => \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, - 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/accordion.svg' + 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/accordion.svg', ], 'content-bootstrappackage-accordion-item' => [ 'provider' => \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, - 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/accordion-item.svg' + 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/accordion-item.svg', ], 'content-bootstrappackage-card-group' => [ 'provider' => \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, - 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/card-group.svg' + 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/card-group.svg', ], 'content-bootstrappackage-card-group-item' => [ 'provider' => \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, - 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/card-group-item.svg' + 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/card-group-item.svg', ], 'content-bootstrappackage-carousel' => [ 'provider' => \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, - 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/carousel.svg' + 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/carousel.svg', ], 'content-bootstrappackage-carousel-item' => [ 'provider' => \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, - 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/carousel-item.svg' + 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/carousel-item.svg', ], 'content-bootstrappackage-carousel-item-backgroundimage' => [ 'provider' => \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, - 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/carousel-item-backgroundimage.svg' + 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/carousel-item-backgroundimage.svg', ], 'content-bootstrappackage-carousel-item-calltoaction' => [ 'provider' => \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, - 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/carousel-item-calltoaction.svg' + 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/carousel-item-calltoaction.svg', ], 'content-bootstrappackage-carousel-item-header' => [ 'provider' => \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, - 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/carousel-item-header.svg' + 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/carousel-item-header.svg', ], 'content-bootstrappackage-carousel-item-html' => [ 'provider' => \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, - 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/carousel-item-html.svg' + 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/carousel-item-html.svg', ], 'content-bootstrappackage-carousel-item-image' => [ 'provider' => \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, - 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/carousel-item-image.svg' + 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/carousel-item-image.svg', ], 'content-bootstrappackage-carousel-item-text' => [ 'provider' => \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, - 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/carousel-item-text.svg' + 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/carousel-item-text.svg', ], 'content-bootstrappackage-carousel-item-textandimage' => [ 'provider' => \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, - 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/carousel-item-textandimage.svg' + 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/carousel-item-textandimage.svg', ], 'content-bootstrappackage-beside-text-img-centered-left' => [ 'provider' => \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, - 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/beside-text-img-centered-left.svg' + 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/beside-text-img-centered-left.svg', ], 'content-bootstrappackage-beside-text-img-centered-right' => [ 'provider' => \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, - 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/beside-text-img-centered-right.svg' + 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/beside-text-img-centered-right.svg', ], 'content-bootstrappackage-csv' => [ 'provider' => \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, - 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/csv.svg' + 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/csv.svg', ], 'content-bootstrappackage-externalmedia' => [ 'provider' => \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, - 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/externalmedia.svg' + 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/externalmedia.svg', ], 'content-bootstrappackage-gallery' => [ 'provider' => \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, - 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/gallery.svg' + 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/gallery.svg', ], 'content-bootstrappackage-icon-group' => [ 'provider' => \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, - 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/icon-group.svg' + 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/icon-group.svg', ], 'content-bootstrappackage-icon-group-item' => [ 'provider' => \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, - 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/icon-group-item.svg' + 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/icon-group-item.svg', ], 'content-bootstrappackage-listgroup' => [ 'provider' => \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, - 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/listgroup.svg' + 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/listgroup.svg', ], 'content-bootstrappackage-menu-card' => [ 'provider' => \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, - 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/menu-card.svg' + 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/menu-card.svg', ], 'content-bootstrappackage-social-links' => [ 'provider' => \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, - 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/social-links.svg' + 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/social-links.svg', ], 'content-bootstrappackage-tab' => [ 'provider' => \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, - 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/tab.svg' + 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/tab.svg', ], 'content-bootstrappackage-tab-item' => [ 'provider' => \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, - 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/tab-item.svg' + 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/tab-item.svg', ], 'content-bootstrappackage-texticon' => [ 'provider' => \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, - 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/texticon.svg' + 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/texticon.svg', ], 'content-bootstrappackage-timeline' => [ 'provider' => \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, - 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/timeline.svg' + 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/timeline.svg', ], 'content-bootstrappackage-timeline-item' => [ 'provider' => \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, - 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/timeline-item.svg' + 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/ContentElements/timeline-item.svg', ], 'form-bootstrappackage-gridcolumn' => [ 'provider' => \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, - 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/FormElements/gridcolumn.svg' + 'source' => 'EXT:bootstrap_package/Resources/Public/Icons/FormElements/gridcolumn.svg', ], ]; diff --git a/Tests/Functional/Parser/ScssParserTest.php b/Tests/Functional/Parser/ScssParserTest.php index 1b8e86fa6..243e13a47 100644 --- a/Tests/Functional/Parser/ScssParserTest.php +++ b/Tests/Functional/Parser/ScssParserTest.php @@ -72,13 +72,13 @@ public static function scssParserCanCompileTestDataProvider(): array { return [ 'direct include' => [ - 'inputFile' => 'typo3conf/ext/bootstrap_package/Resources/Public/Scss/bootstrap5/theme.scss' + 'inputFile' => 'typo3conf/ext/bootstrap_package/Resources/Public/Scss/bootstrap5/theme.scss', ], 'relative include from symlinked package' => [ - 'inputFile' => 'typo3conf/ext/demo_package/Resources/Public/Scss/Relative/theme.scss' + 'inputFile' => 'typo3conf/ext/demo_package/Resources/Public/Scss/Relative/theme.scss', ], 'core syntax' => [ - 'inputFile' => 'typo3conf/ext/demo_package/Resources/Public/Scss/CoreSyntax/theme.scss' + 'inputFile' => 'typo3conf/ext/demo_package/Resources/Public/Scss/CoreSyntax/theme.scss', ], ]; } diff --git a/Tests/Functional/Updates/AccordionContentElementUpdateTest.php b/Tests/Functional/Updates/AccordionContentElementUpdateTest.php index 4131a550e..b3b81c427 100644 --- a/Tests/Functional/Updates/AccordionContentElementUpdateTest.php +++ b/Tests/Functional/Updates/AccordionContentElementUpdateTest.php @@ -26,7 +26,7 @@ final class AccordionContentElementUpdateTest extends FunctionalTestCase ]; protected array $testExtensionsToLoad = [ - 'typo3conf/ext/bootstrap_package' + 'typo3conf/ext/bootstrap_package', ]; #[Test] diff --git a/Tests/Functional/Updates/AccordionMediaOrientUpdateTest.php b/Tests/Functional/Updates/AccordionMediaOrientUpdateTest.php index 555f95e2e..3d9ab499d 100644 --- a/Tests/Functional/Updates/AccordionMediaOrientUpdateTest.php +++ b/Tests/Functional/Updates/AccordionMediaOrientUpdateTest.php @@ -26,7 +26,7 @@ final class AccordionMediaOrientUpdateTest extends FunctionalTestCase ]; protected array $testExtensionsToLoad = [ - 'typo3conf/ext/bootstrap_package' + 'typo3conf/ext/bootstrap_package', ]; #[Test] diff --git a/Tests/Functional/Updates/BackendLayoutUpdateTest.php b/Tests/Functional/Updates/BackendLayoutUpdateTest.php index 86213e4b8..6eee90ef8 100644 --- a/Tests/Functional/Updates/BackendLayoutUpdateTest.php +++ b/Tests/Functional/Updates/BackendLayoutUpdateTest.php @@ -26,7 +26,7 @@ final class BackendLayoutUpdateTest extends FunctionalTestCase ]; protected array $testExtensionsToLoad = [ - 'typo3conf/ext/bootstrap_package' + 'typo3conf/ext/bootstrap_package', ]; #[Test] diff --git a/Tests/Functional/Updates/BulletContentElementUpdateTest.php b/Tests/Functional/Updates/BulletContentElementUpdateTest.php index 76115d57f..fad0ef709 100644 --- a/Tests/Functional/Updates/BulletContentElementUpdateTest.php +++ b/Tests/Functional/Updates/BulletContentElementUpdateTest.php @@ -26,7 +26,7 @@ final class BulletContentElementUpdateTest extends FunctionalTestCase ]; protected array $testExtensionsToLoad = [ - 'typo3conf/ext/bootstrap_package' + 'typo3conf/ext/bootstrap_package', ]; #[Test] diff --git a/Tests/Functional/Updates/CarouselContentElementUpdateTest.php b/Tests/Functional/Updates/CarouselContentElementUpdateTest.php index fe654c787..ee424399b 100644 --- a/Tests/Functional/Updates/CarouselContentElementUpdateTest.php +++ b/Tests/Functional/Updates/CarouselContentElementUpdateTest.php @@ -26,7 +26,7 @@ final class CarouselContentElementUpdateTest extends FunctionalTestCase ]; protected array $testExtensionsToLoad = [ - 'typo3conf/ext/bootstrap_package' + 'typo3conf/ext/bootstrap_package', ]; #[Test] diff --git a/Tests/Functional/Updates/CarouselItemLayoutUpdateTest.php b/Tests/Functional/Updates/CarouselItemLayoutUpdateTest.php index 53e02b384..5f941ca8b 100644 --- a/Tests/Functional/Updates/CarouselItemLayoutUpdateTest.php +++ b/Tests/Functional/Updates/CarouselItemLayoutUpdateTest.php @@ -26,7 +26,7 @@ final class CarouselItemLayoutUpdateTest extends FunctionalTestCase ]; protected array $testExtensionsToLoad = [ - 'typo3conf/ext/bootstrap_package' + 'typo3conf/ext/bootstrap_package', ]; #[Test] diff --git a/Tests/Functional/Updates/CarouselItemTypeUpdateTest.php b/Tests/Functional/Updates/CarouselItemTypeUpdateTest.php index 1ef85bfc7..08daafe42 100644 --- a/Tests/Functional/Updates/CarouselItemTypeUpdateTest.php +++ b/Tests/Functional/Updates/CarouselItemTypeUpdateTest.php @@ -26,7 +26,7 @@ final class CarouselItemTypeUpdateTest extends FunctionalTestCase ]; protected array $testExtensionsToLoad = [ - 'typo3conf/ext/bootstrap_package' + 'typo3conf/ext/bootstrap_package', ]; #[Test] diff --git a/Tests/Functional/Updates/ExternalMediaContentElementUpdateTest.php b/Tests/Functional/Updates/ExternalMediaContentElementUpdateTest.php index fb690ba44..7a2d224f5 100644 --- a/Tests/Functional/Updates/ExternalMediaContentElementUpdateTest.php +++ b/Tests/Functional/Updates/ExternalMediaContentElementUpdateTest.php @@ -26,7 +26,7 @@ final class ExternalMediaContentElementUpdateTest extends FunctionalTestCase ]; protected array $testExtensionsToLoad = [ - 'typo3conf/ext/bootstrap_package' + 'typo3conf/ext/bootstrap_package', ]; #[Test] diff --git a/Tests/Functional/Updates/FrameClassToBackgroundUpdateTest.php b/Tests/Functional/Updates/FrameClassToBackgroundUpdateTest.php index bfd1925f1..ff4e2ae21 100644 --- a/Tests/Functional/Updates/FrameClassToBackgroundUpdateTest.php +++ b/Tests/Functional/Updates/FrameClassToBackgroundUpdateTest.php @@ -26,7 +26,7 @@ final class FrameClassToBackgroundUpdateTest extends FunctionalTestCase ]; protected array $testExtensionsToLoad = [ - 'typo3conf/ext/bootstrap_package' + 'typo3conf/ext/bootstrap_package', ]; #[Test] diff --git a/Tests/Functional/Updates/FrameClassToOptionsUpdateTest.php b/Tests/Functional/Updates/FrameClassToOptionsUpdateTest.php index a14de33d6..ecfaa60d9 100644 --- a/Tests/Functional/Updates/FrameClassToOptionsUpdateTest.php +++ b/Tests/Functional/Updates/FrameClassToOptionsUpdateTest.php @@ -26,7 +26,7 @@ final class FrameClassToOptionsUpdateTest extends FunctionalTestCase ]; protected array $testExtensionsToLoad = [ - 'typo3conf/ext/bootstrap_package' + 'typo3conf/ext/bootstrap_package', ]; #[Test] diff --git a/Tests/Functional/Updates/FrameClassUpdateTest.php b/Tests/Functional/Updates/FrameClassUpdateTest.php index 0f940fcd5..c2e5cdefc 100644 --- a/Tests/Functional/Updates/FrameClassUpdateTest.php +++ b/Tests/Functional/Updates/FrameClassUpdateTest.php @@ -28,7 +28,7 @@ final class FrameClassUpdateTest extends FunctionalTestCase ]; protected array $testExtensionsToLoad = [ - 'typo3conf/ext/bootstrap_package' + 'typo3conf/ext/bootstrap_package', ]; #[Test] diff --git a/Tests/Functional/Updates/ListGroupContentElementUpdateTest.php b/Tests/Functional/Updates/ListGroupContentElementUpdateTest.php index c204b8610..3e7c00346 100644 --- a/Tests/Functional/Updates/ListGroupContentElementUpdateTest.php +++ b/Tests/Functional/Updates/ListGroupContentElementUpdateTest.php @@ -26,7 +26,7 @@ final class ListGroupContentElementUpdateTest extends FunctionalTestCase ]; protected array $testExtensionsToLoad = [ - 'typo3conf/ext/bootstrap_package' + 'typo3conf/ext/bootstrap_package', ]; #[Test] diff --git a/Tests/Functional/Updates/PanelContentElementUpdateTest.php b/Tests/Functional/Updates/PanelContentElementUpdateTest.php index 3fcad84a8..35716dbc3 100644 --- a/Tests/Functional/Updates/PanelContentElementUpdateTest.php +++ b/Tests/Functional/Updates/PanelContentElementUpdateTest.php @@ -26,7 +26,7 @@ final class PanelContentElementUpdateTest extends FunctionalTestCase ]; protected array $testExtensionsToLoad = [ - 'typo3conf/ext/bootstrap_package' + 'typo3conf/ext/bootstrap_package', ]; #[Test] diff --git a/Tests/Functional/Updates/TabContentElementUpdateTest.php b/Tests/Functional/Updates/TabContentElementUpdateTest.php index 342a351bf..f14a057b4 100644 --- a/Tests/Functional/Updates/TabContentElementUpdateTest.php +++ b/Tests/Functional/Updates/TabContentElementUpdateTest.php @@ -26,7 +26,7 @@ final class TabContentElementUpdateTest extends FunctionalTestCase ]; protected array $testExtensionsToLoad = [ - 'typo3conf/ext/bootstrap_package' + 'typo3conf/ext/bootstrap_package', ]; #[Test] diff --git a/Tests/Functional/Updates/TabMediaOrientUpdateTest.php b/Tests/Functional/Updates/TabMediaOrientUpdateTest.php index a676a0155..611386626 100644 --- a/Tests/Functional/Updates/TabMediaOrientUpdateTest.php +++ b/Tests/Functional/Updates/TabMediaOrientUpdateTest.php @@ -26,7 +26,7 @@ final class TabMediaOrientUpdateTest extends FunctionalTestCase ]; protected array $testExtensionsToLoad = [ - 'typo3conf/ext/bootstrap_package' + 'typo3conf/ext/bootstrap_package', ]; #[Test] diff --git a/Tests/Functional/Updates/TableContentElementUpdateTest.php b/Tests/Functional/Updates/TableContentElementUpdateTest.php index 965ed23b1..ebd1f23ca 100644 --- a/Tests/Functional/Updates/TableContentElementUpdateTest.php +++ b/Tests/Functional/Updates/TableContentElementUpdateTest.php @@ -26,7 +26,7 @@ final class TableContentElementUpdateTest extends FunctionalTestCase ]; protected array $testExtensionsToLoad = [ - 'typo3conf/ext/bootstrap_package' + 'typo3conf/ext/bootstrap_package', ]; #[Test] diff --git a/Tests/Functional/Updates/TexticonContentElementUpdateTest.php b/Tests/Functional/Updates/TexticonContentElementUpdateTest.php index a3a2b5c7c..6804e32b7 100644 --- a/Tests/Functional/Updates/TexticonContentElementUpdateTest.php +++ b/Tests/Functional/Updates/TexticonContentElementUpdateTest.php @@ -26,7 +26,7 @@ final class TexticonContentElementUpdateTest extends FunctionalTestCase ]; protected array $testExtensionsToLoad = [ - 'typo3conf/ext/bootstrap_package' + 'typo3conf/ext/bootstrap_package', ]; #[Test] diff --git a/Tests/Functional/Updates/TexticonIconUpdateTest.php b/Tests/Functional/Updates/TexticonIconUpdateTest.php index 8eb24ea3c..730b22f47 100644 --- a/Tests/Functional/Updates/TexticonIconUpdateTest.php +++ b/Tests/Functional/Updates/TexticonIconUpdateTest.php @@ -26,7 +26,7 @@ final class TexticonIconUpdateTest extends FunctionalTestCase ]; protected array $testExtensionsToLoad = [ - 'typo3conf/ext/bootstrap_package' + 'typo3conf/ext/bootstrap_package', ]; #[Test] diff --git a/Tests/Functional/Updates/TexticonSizeUpdateTest.php b/Tests/Functional/Updates/TexticonSizeUpdateTest.php index 9272183fe..779e20362 100644 --- a/Tests/Functional/Updates/TexticonSizeUpdateTest.php +++ b/Tests/Functional/Updates/TexticonSizeUpdateTest.php @@ -26,7 +26,7 @@ final class TexticonSizeUpdateTest extends FunctionalTestCase ]; protected array $testExtensionsToLoad = [ - 'typo3conf/ext/bootstrap_package' + 'typo3conf/ext/bootstrap_package', ]; #[Test] diff --git a/Tests/Functional/Updates/TexticonTypeUpdateTest.php b/Tests/Functional/Updates/TexticonTypeUpdateTest.php index 058f418a2..932fe8444 100644 --- a/Tests/Functional/Updates/TexticonTypeUpdateTest.php +++ b/Tests/Functional/Updates/TexticonTypeUpdateTest.php @@ -26,7 +26,7 @@ final class TexticonTypeUpdateTest extends FunctionalTestCase ]; protected array $testExtensionsToLoad = [ - 'typo3conf/ext/bootstrap_package' + 'typo3conf/ext/bootstrap_package', ]; #[Test] diff --git a/Tests/Unit/Compiler/ScssCompilerTest.php b/Tests/Unit/Compiler/ScssCompilerTest.php index 58ffe32e3..0395b768f 100644 --- a/Tests/Unit/Compiler/ScssCompilerTest.php +++ b/Tests/Unit/Compiler/ScssCompilerTest.php @@ -39,8 +39,8 @@ public static function compileDataProvider(): array return [ 'Calculation' => [ 'Fixtures/Calculation/Input.scss', - 'Fixtures/Calculation/Output.css' - ] + 'Fixtures/Calculation/Output.css', + ], ]; } } diff --git a/Tests/Unit/DataProcessing/SkiplinkProcessorTest.php b/Tests/Unit/DataProcessing/SkiplinkProcessorTest.php index f5ffa1954..f0960921c 100644 --- a/Tests/Unit/DataProcessing/SkiplinkProcessorTest.php +++ b/Tests/Unit/DataProcessing/SkiplinkProcessorTest.php @@ -97,9 +97,9 @@ public static function getProcessDataProvider(): array 'section' => 'mainnavigation', 'priority' => 100, ], - ] - ] - ] + ], + ], + ], ]; } } diff --git a/Tests/Unit/Utility/ExternalMediaUtilityTest.php b/Tests/Unit/Utility/ExternalMediaUtilityTest.php index fbb06d542..3f651113c 100644 --- a/Tests/Unit/Utility/ExternalMediaUtilityTest.php +++ b/Tests/Unit/Utility/ExternalMediaUtilityTest.php @@ -41,70 +41,70 @@ public static function getEmbedCodeDataProvider(): array null, null, null, - null + null, ], 'empty string' => [ '', '', '', - null + null, ], // url variants 'www.youtube.com' => [ 'https://www.youtube.com/watch?v=zpOVYePk6mM', null, null, - '' + '', ], 'youtube.com' => [ 'https://youtube.com/watch?v=zpOVYePk6mM', null, null, - '' + '', ], 'www.youtu.be' => [ 'https://www.youtu.be/zpOVYePk6mM', null, null, - '' + '', ], 'youtu.de' => [ 'https://youtu.be/zpOVYePk6mM', null, null, - '' + '', ], 'vimeo' => [ 'https://vimeo.com/143018597', null, null, - '' + '', ], // class 'with class' => [ 'https://www.youtube.com/watch?v=zpOVYePk6mM', 'demo', null, - '' + '', ], 'with class empty' => [ 'https://www.youtube.com/watch?v=zpOVYePk6mM', ' ', null, - '' + '', ], // title 'with title' => [ 'https://www.youtube.com/watch?v=zpOVYePk6mM', null, 'demo', - '' + '', ], 'with title empty' => [ 'https://www.youtube.com/watch?v=zpOVYePk6mM', null, ' ', - '' + '', ], ]; } diff --git a/Tests/Unit/Utility/ImageVariantsUtilityTest.php b/Tests/Unit/Utility/ImageVariantsUtilityTest.php index ee86ebba0..7440928da 100644 --- a/Tests/Unit/Utility/ImageVariantsUtilityTest.php +++ b/Tests/Unit/Utility/ImageVariantsUtilityTest.php @@ -47,18 +47,18 @@ public static function getImageVariantsTestDataProvider(): array 'width' => 1280, 'sizes' => [ '1x' => [ - 'multiplier' => 1 - ] - ] + 'multiplier' => 1, + ], + ], ], 'xlarge' => [ 'breakpoint' => 1200, 'width' => 1100, 'sizes' => [ '1x' => [ - 'multiplier' => 1 - ] - ] + 'multiplier' => 1, + ], + ], ], 'large' => [ 'breakpoint' => 992, @@ -66,8 +66,8 @@ public static function getImageVariantsTestDataProvider(): array 'sizes' => [ '1x' => [ 'multiplier' => 1, - ] - ] + ], + ], ], 'medium' => [ 'breakpoint' => 768, @@ -75,8 +75,8 @@ public static function getImageVariantsTestDataProvider(): array 'sizes' => [ '1x' => [ 'multiplier' => 1, - ] - ] + ], + ], ], 'small' => [ 'breakpoint' => 576, @@ -84,27 +84,27 @@ public static function getImageVariantsTestDataProvider(): array 'sizes' => [ '1x' => [ 'multiplier' => 1, - ] - ] + ], + ], ], 'extrasmall' => [ 'width' => 374, 'sizes' => [ '1x' => [ 'multiplier' => 1, - ] - ] - ] - ] + ], + ], + ], + ], ], 'variants' => [ [ 'variants' => [ 'default' => [ 'breakpoint' => 1200, - 'width' => 1100 - ] - ] + 'width' => 1100, + ], + ], ], [ 'default' => [ @@ -112,41 +112,41 @@ public static function getImageVariantsTestDataProvider(): array 'width' => 1100, 'sizes' => [ '1x' => [ - 'multiplier' => 1 - ] - ] - ] - ] + 'multiplier' => 1, + ], + ], + ], + ], ], 'variants invalid' => [ [ 'variants' => [ 'empty' => [], 'missing-width' => [ - 'breakpoint' => 1200 + 'breakpoint' => 1200, ], 'unsupported-properties' => [ 'foo' => 10, - 'bar' => 20 + 'bar' => 20, ], 'null' => null, 'string' => 'foo', - 'int' => 1337 - ] + 'int' => 1337, + ], ], - [] + [], ], 'variants invalid properties' => [ [ 'variants' => [ 'numeric-string' => [ - 'width' => '100' + 'width' => '100', ], 'string' => [ - 'width' => 'foo' + 'width' => 'foo', ], 'px' => [ - 'width' => '0.5px' + 'width' => '0.5px', ], 'percent' => [ 'width' => '50%', @@ -155,9 +155,9 @@ public static function getImageVariantsTestDataProvider(): array 'width' => null, ], 'array' => [ - 'width' => [] + 'width' => [], ], - ] + ], ], [ 'numeric-string' => [ @@ -165,27 +165,27 @@ public static function getImageVariantsTestDataProvider(): array 'sizes' => [ '1x' => [ 'multiplier' => 1, - ] - ] - ] - ] + ], + ], + ], + ], ], 'variants unset property' => [ [ 'variants' => [ 'unset-all' => [ 'breakpoint' => 'unset', - 'width' => 'unset' + 'width' => 'unset', ], 'unset-breakpoint' => [ 'breakpoint' => 'unset', - 'width' => 1100 + 'width' => 1100, ], 'unset-width' => [ 'breakpoint' => 1200, - 'width' => 'unset' - ] - ] + 'width' => 'unset', + ], + ], ], [ 'unset-breakpoint' => [ @@ -193,43 +193,43 @@ public static function getImageVariantsTestDataProvider(): array 'sizes' => [ '1x' => [ 'multiplier' => 1, - ] - ] - ] - ] + ], + ], + ], + ], ], 'multiplier' => [ [ 'variants' => [ 'default' => [ - 'width' => 1100 - ] + 'width' => 1100, + ], ], 'multiplier' => [ - 'default' => 0.5 - ] + 'default' => 0.5, + ], ], [ 'default' => [ 'width' => 550, 'sizes' => [ '1x' => [ - 'multiplier' => 1 - ] - ] - ] - ] + 'multiplier' => 1, + ], + ], + ], + ], ], 'multiplier on no existent variants' => [ [ 'variants' => [ 'default' => [ - 'width' => 1100 - ] + 'width' => 1100, + ], ], 'multiplier' => [ - 'doesnotexist' => 0.5 - ] + 'doesnotexist' => 0.5, + ], ], [ 'default' => [ @@ -237,32 +237,32 @@ public static function getImageVariantsTestDataProvider(): array 'sizes' => [ '1x' => [ 'multiplier' => 1, - ] - ] - ] - ] + ], + ], + ], + ], ], 'multiplier input types' => [ [ 'variants' => [ 'numeric-string' => [ - 'width' => 1100 + 'width' => 1100, ], 'string' => [ - 'width' => 1100 + 'width' => 1100, ], 'px' => [ - 'width' => 1100 + 'width' => 1100, ], 'percent' => [ - 'width' => 1100 + 'width' => 1100, ], 'null' => [ - 'width' => 1100 + 'width' => 1100, ], 'array' => [ - 'width' => 1100 - ] + 'width' => 1100, + ], ], 'multiplier' => [ 'numeric-string' => '0.5', @@ -270,8 +270,8 @@ public static function getImageVariantsTestDataProvider(): array 'px' => '0.5px', 'percent' => '50%', 'null' => null, - 'array' => [] - ] + 'array' => [], + ], ], [ 'numeric-string' => [ @@ -279,61 +279,61 @@ public static function getImageVariantsTestDataProvider(): array 'sizes' => [ '1x' => [ 'multiplier' => 1, - ] - ] + ], + ], ], 'string' => [ 'width' => 1100, 'sizes' => [ '1x' => [ 'multiplier' => 1, - ] - ] + ], + ], ], 'px' => [ 'width' => 1100, 'sizes' => [ '1x' => [ 'multiplier' => 1, - ] - ] + ], + ], ], 'percent' => [ 'width' => 1100, 'sizes' => [ '1x' => [ 'multiplier' => 1, - ] - ] + ], + ], ], 'null' => [ 'width' => 1100, 'sizes' => [ '1x' => [ 'multiplier' => 1, - ] - ] + ], + ], ], 'array' => [ 'width' => 1100, 'sizes' => [ '1x' => [ 'multiplier' => 1, - ] - ] - ] - ] + ], + ], + ], + ], ], 'corrections' => [ [ 'variants' => [ 'default' => [ - 'width' => 1100 - ] + 'width' => 1100, + ], ], 'corrections' => [ - 'default' => 100 - ] + 'default' => 100, + ], ], [ 'default' => [ @@ -341,21 +341,21 @@ public static function getImageVariantsTestDataProvider(): array 'sizes' => [ '1x' => [ 'multiplier' => 1, - ] - ] - ] - ] + ], + ], + ], + ], ], 'corrections on no existent variants' => [ [ 'variants' => [ 'default' => [ - 'width' => 1100 - ] + 'width' => 1100, + ], ], 'corrections' => [ - 'doesnotexist' => 10 - ] + 'doesnotexist' => 10, + ], ], [ 'default' => [ @@ -363,32 +363,32 @@ public static function getImageVariantsTestDataProvider(): array 'sizes' => [ '1x' => [ 'multiplier' => 1, - ] - ] - ] - ] + ], + ], + ], + ], ], 'corrections input types' => [ [ 'variants' => [ 'numeric-string' => [ - 'width' => 1100 + 'width' => 1100, ], 'string' => [ - 'width' => 1100 + 'width' => 1100, ], 'px' => [ - 'width' => 1100 + 'width' => 1100, ], 'percent' => [ - 'width' => 1100 + 'width' => 1100, ], 'null' => [ - 'width' => 1100 + 'width' => 1100, ], 'array' => [ - 'width' => 1100 - ] + 'width' => 1100, + ], ], 'corrections' => [ 'numeric-string' => '100', @@ -396,8 +396,8 @@ public static function getImageVariantsTestDataProvider(): array 'px' => '0.5px', 'percent' => '50%', 'null' => null, - 'array' => [] - ] + 'array' => [], + ], ], [ 'numeric-string' => [ @@ -405,94 +405,94 @@ public static function getImageVariantsTestDataProvider(): array 'sizes' => [ '1x' => [ 'multiplier' => 1, - ] - ] + ], + ], ], 'string' => [ 'width' => 1100, 'sizes' => [ '1x' => [ 'multiplier' => 1, - ] - ] + ], + ], ], 'px' => [ 'width' => 1100, 'sizes' => [ '1x' => [ 'multiplier' => 1, - ] - ] + ], + ], ], 'percent' => [ 'width' => 1100, 'sizes' => [ '1x' => [ 'multiplier' => 1, - ] - ] + ], + ], ], 'null' => [ 'width' => 1100, 'sizes' => [ '1x' => [ 'multiplier' => 1, - ] - ] + ], + ], ], 'array' => [ 'width' => 1100, 'sizes' => [ '1x' => [ 'multiplier' => 1, - ] - ] - ] - ] + ], + ], + ], + ], ], 'gutter' => [ [ 'variants' => [ 'default' => [ - 'width' => 1100 - ] + 'width' => 1100, + ], ], 'gutters' => [ - 'default' => 40 - ] + 'default' => 40, + ], ], [ 'default' => [ 'width' => 1060, 'sizes' => [ '1x' => [ - 'multiplier' => 1 - ] - ] - ] - ] + 'multiplier' => 1, + ], + ], + ], + ], ], 'gutter on no existent variants' => [ [ 'variants' => [ 'default' => [ - 'width' => 1100 - ] + 'width' => 1100, + ], ], 'gutters' => [ - 'doesnotexist' => 40 - ] + 'doesnotexist' => 40, + ], ], [ 'default' => [ 'width' => 1100, 'sizes' => [ '1x' => [ - 'multiplier' => 1 - ] - ] - ] - ] + 'multiplier' => 1, + ], + ], + ], + ], ], 'gutter input types' => [ [ @@ -502,7 +502,7 @@ public static function getImageVariantsTestDataProvider(): array 'px' => [ 'width' => 1100 ], 'percent' => [ 'width' => 1100 ], 'null' => [ 'width' => 1100 ], - 'array' => [ 'width' => 1100 ] + 'array' => [ 'width' => 1100 ], ], 'gutters' => [ 'numeric-string' => '40', @@ -510,135 +510,135 @@ public static function getImageVariantsTestDataProvider(): array 'px' => '0.5px', 'percent' => '50%', 'null' => null, - 'array' => [] - ] + 'array' => [], + ], ], [ 'numeric-string' => [ 'width' => 1060, 'sizes' => [ '1x' => [ - 'multiplier' => 1 - ] - ] + 'multiplier' => 1, + ], + ], ], 'string' => [ 'width' => 1100, 'sizes' => [ '1x' => [ - 'multiplier' => 1 - ] - ] + 'multiplier' => 1, + ], + ], ], 'px' => [ 'width' => 1100, 'sizes' => [ '1x' => [ - 'multiplier' => 1 - ] - ] + 'multiplier' => 1, + ], + ], ], 'percent' => [ 'width' => 1100, 'sizes' => [ '1x' => [ - 'multiplier' => 1 - ] - ] + 'multiplier' => 1, + ], + ], ], 'null' => [ 'width' => 1100, 'sizes' => [ '1x' => [ - 'multiplier' => 1 - ] - ] + 'multiplier' => 1, + ], + ], ], 'array' => [ 'width' => 1100, 'sizes' => [ '1x' => [ - 'multiplier' => 1 - ] - ] + 'multiplier' => 1, + ], + ], ], - ] + ], ], 'multiplier and gutter' => [ [ 'variants' => [ 'default' => [ 'width' => 1100 ], - 'large' => [ 'width' => 920 ] + 'large' => [ 'width' => 920 ], ], 'multiplier' => [ 'default' => 0.5, - 'large' => 0.75 + 'large' => 0.75, ], 'gutters' => [ 'default' => 40, - 'large' => 40 - ] + 'large' => 40, + ], ], [ 'default' => [ 'width' => 530, 'sizes' => [ '1x' => [ - 'multiplier' => 1 - ] - ] + 'multiplier' => 1, + ], + ], ], 'large' => [ 'width' => 660, 'sizes' => [ '1x' => [ - 'multiplier' => 1 - ] - ] - ] - ] + 'multiplier' => 1, + ], + ], + ], + ], ], 'multiplier and corrections' => [ [ 'variants' => [ 'default' => [ - 'width' => 1100 - ] + 'width' => 1100, + ], ], 'multiplier' => [ - 'default' => 0.5 + 'default' => 0.5, ], 'corrections' => [ - 'default' => 10 - ] + 'default' => 10, + ], ], [ 'default' => [ 'width' => 540, 'sizes' => [ '1x' => [ - 'multiplier' => 1 - ] - ] - ] - ] + 'multiplier' => 1, + ], + ], + ], + ], ], 'multiplier, gutter and corrections' => [ [ 'variants' => [ 'default' => [ - 'width' => 1100 - ] + 'width' => 1100, + ], ], 'multiplier' => [ - 'default' => 0.5 + 'default' => 0.5, ], 'gutters' => [ - 'default' => 40 + 'default' => 40, ], 'corrections' => [ - 'default' => 10 - ] + 'default' => 10, + ], ], [ 'default' => [ @@ -646,10 +646,10 @@ public static function getImageVariantsTestDataProvider(): array 'sizes' => [ '1x' => [ 'multiplier' => 1, - ] - ] - ] - ] + ], + ], + ], + ], ], 'sizes' => [ [ @@ -658,14 +658,14 @@ public static function getImageVariantsTestDataProvider(): array 'width' => 1100, 'sizes' => [ '1.5x' => [ - 'multiplier' => 1.5 + 'multiplier' => 1.5, ], '2x' => [ - 'multiplier' => 2 - ] - ] - ] - ] + 'multiplier' => 2, + ], + ], + ], + ], ], [ 'default' => [ @@ -675,14 +675,14 @@ public static function getImageVariantsTestDataProvider(): array 'multiplier' => 1, ], '1.5x' => [ - 'multiplier' => 1.5 + 'multiplier' => 1.5, ], '2x' => [ 'multiplier' => 2, - ] - ] - ] - ] + ], + ], + ], + ], ], 'sizes-multiplier' => [ [ @@ -691,35 +691,35 @@ public static function getImageVariantsTestDataProvider(): array 'width' => 1100, 'sizes' => [ '1x' => [ - 'multiplier' => '2' + 'multiplier' => '2', ], '2x' => [ - 'multiplier' => 'foo' + 'multiplier' => 'foo', ], '3x' => [ - 'multiplier' => '0.5px' + 'multiplier' => '0.5px', ], '4x' => [ - 'multiplier' => '50%' + 'multiplier' => '50%', ], '5x' => [ - 'multiplier' => null + 'multiplier' => null, ], '6x' => [ - 'multiplier' => [] + 'multiplier' => [], ], '7x' => [ - 'multiplier' => -2 + 'multiplier' => -2, ], '8x' => [ - 'multiplier' => 0.5 + 'multiplier' => 0.5, ], '8.5x' => [ - 'multiplier' => '1.5' - ] - ] - ] - ] + 'multiplier' => '1.5', + ], + ], + ], + ], ], [ 'default' => [ @@ -730,10 +730,10 @@ public static function getImageVariantsTestDataProvider(): array ], '8.5x' => [ 'multiplier' => 1.5, - ] - ] - ] - ] + ], + ], + ], + ], ], 'sizes-invalid' => [ [ @@ -744,17 +744,17 @@ public static function getImageVariantsTestDataProvider(): array '2x' => [ ], '3x' => [ - 'foo' => 'bar' + 'foo' => 'bar', ], '4x' => [ - 'multiplier' => 'unset' + 'multiplier' => 'unset', ], '5x' => [ 'multiplier' => 1, - ] - ] - ] - ] + ], + ], + ], + ], ], [ 'default' => [ @@ -765,10 +765,10 @@ public static function getImageVariantsTestDataProvider(): array ], '5x' => [ 'multiplier' => 1, - ] - ] - ] - ] + ], + ], + ], + ], ], 'sizes-invalid-keys' => [ [ @@ -777,29 +777,29 @@ public static function getImageVariantsTestDataProvider(): array 'width' => 1100, 'sizes' => [ 'superhdpix' => [ - 'multiplier' => 1 + 'multiplier' => 1, ], '13hdpi' => [ - 'multiplier' => 1 + 'multiplier' => 1, ], 10 => [ - 'multiplier' => 1 + 'multiplier' => 1, ], '0.5x' => [ - 'multiplier' => 1 + 'multiplier' => 1, ], '10.1234x' => [ - 'multiplier' => 1 + 'multiplier' => 1, ], '123,456.00x' => [ - 'multiplier' => 1 + 'multiplier' => 1, ], '654.321,00x' => [ - 'multiplier' => 1 - ] - ] - ] - ] + 'multiplier' => 1, + ], + ], + ], + ], ], [ 'default' => [ @@ -807,10 +807,10 @@ public static function getImageVariantsTestDataProvider(): array 'sizes' => [ '1x' => [ 'multiplier' => 1, - ] - ] - ] - ] + ], + ], + ], + ], ], 'sizes-add-1x' => [ [ @@ -819,11 +819,11 @@ public static function getImageVariantsTestDataProvider(): array 'width' => 1100, 'sizes' => [ '2x' => [ - 'multiplier' => 2 - ] - ] - ] - ] + 'multiplier' => 2, + ], + ], + ], + ], ], [ 'default' => [ @@ -834,10 +834,10 @@ public static function getImageVariantsTestDataProvider(): array ], '2x' => [ 'multiplier' => 2, - ] - ] - ] - ] + ], + ], + ], + ], ], 'sizes-sorting' => [ [ @@ -846,20 +846,20 @@ public static function getImageVariantsTestDataProvider(): array 'width' => 1100, 'sizes' => [ '1.5x' => [ - 'multiplier' => 1 + 'multiplier' => 1, ], '2.5x' => [ - 'multiplier' => 1 + 'multiplier' => 1, ], '2x' => [ - 'multiplier' => 1 + 'multiplier' => 1, ], '1x' => [ - 'multiplier' => 1 - ] - ] - ] - ] + 'multiplier' => 1, + ], + ], + ], + ], ], [ 'default' => [ @@ -877,9 +877,9 @@ public static function getImageVariantsTestDataProvider(): array '2.5x' => [ 'multiplier' => 1, ], - ] - ] - ] + ], + ], + ], ], 'aspect-ratio' => [ [ @@ -895,8 +895,8 @@ public static function getImageVariantsTestDataProvider(): array 'invalid' => [ 'width' => 1100, 'aspectRatio' => 'invalid', - ] - ] + ], + ], ], [ 'float' => [ @@ -905,8 +905,8 @@ public static function getImageVariantsTestDataProvider(): array 'sizes' => [ '1x' => [ 'multiplier' => 1, - ] - ] + ], + ], ], 'integer' => [ 'width' => 1100, @@ -914,19 +914,19 @@ public static function getImageVariantsTestDataProvider(): array 'sizes' => [ '1x' => [ 'multiplier' => 1, - ] - ] + ], + ], ], 'invalid' => [ 'width' => 1100, 'sizes' => [ '1x' => [ 'multiplier' => 1, - ] - ] - ] - ] - ] + ], + ], + ], + ], + ], ]; } @@ -971,9 +971,9 @@ public static function getStackedImageVariantsTestDataProvider(): array 'width' => 275, 'sizes' => [ '1x' => [ - 'multiplier' => 1 - ] - ] + 'multiplier' => 1, + ], + ], ], ], ], @@ -985,9 +985,9 @@ public static function getStackedImageVariantsTestDataProvider(): array 'width' => 1100 , 'sizes' => [ '1.5x' => [ 'multiplier' => 1.5 ], - '2x' => [ 'multiplier' => 2 ] - ] - ] + '2x' => [ 'multiplier' => 2 ], + ], + ], ], 'multiplier' => [ 'default' => 0.5 ], 'gutters' => [ 'default' => 40 ], @@ -1005,10 +1005,10 @@ public static function getStackedImageVariantsTestDataProvider(): array 'sizes' => [ '1x' => [ 'multiplier' => 1 ], '1.5x' => [ 'multiplier' => 1.5 ], - '2x' => [ 'multiplier' => 2 ] - ] - ] - ] + '2x' => [ 'multiplier' => 2 ], + ], + ], + ], ], 'keep-aspect-ratio' => [ [ @@ -1016,13 +1016,13 @@ public static function getStackedImageVariantsTestDataProvider(): array 'variants' => [ 'default' => [ 'width' => 1100, - 'aspectRatio' => 1.5 - ] - ] + 'aspectRatio' => 1.5, + ], + ], ], 'extend' => [ - 'multiplier' => [ 'default' => 0.5 ] - ] + 'multiplier' => [ 'default' => 0.5 ], + ], ], [ 'default' => [ @@ -1030,12 +1030,12 @@ public static function getStackedImageVariantsTestDataProvider(): array 'aspectRatio' => 1.5, 'sizes' => [ '1x' => [ - 'multiplier' => 1 - ] - ] - ] - ] - ] + 'multiplier' => 1, + ], + ], + ], + ], + ], ]; } diff --git a/ext_emconf.php b/ext_emconf.php index 890be3375..dae3c3c24 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -15,7 +15,7 @@ 'depends' => [ 'typo3' => '12.4.0-12.4.99', 'rte_ckeditor' => '11.5.0-12.4.99', - 'seo' => '11.5.0-12.4.99' + 'seo' => '11.5.0-12.4.99', ], 'conflicts' => [ 'css_styled_content' => '*', @@ -27,7 +27,7 @@ ], 'autoload' => [ 'psr-4' => [ - 'BK2K\\BootstrapPackage\\' => 'Classes' + 'BK2K\\BootstrapPackage\\' => 'Classes', ], ], 'state' => 'stable', diff --git a/ext_localconf.php b/ext_localconf.php index 430ba4cfc..a5b30fffc 100644 --- a/ext_localconf.php +++ b/ext_localconf.php @@ -147,5 +147,5 @@ $GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1687516916] = [ 'nodeName' => 'iconWizard', 'priority' => 40, - 'class' => \BK2K\BootstrapPackage\Form\FieldWizard\IconWizard::class + 'class' => \BK2K\BootstrapPackage\Form\FieldWizard\IconWizard::class, ];