From 22cc3c5c9db9af802e4a69d4359465c0968f631f Mon Sep 17 00:00:00 2001 From: Daniel Gohlke Date: Wed, 12 Jun 2024 15:08:54 +0200 Subject: [PATCH] TASK: Add content-blocks to dev dependencies Relates: #20 --- Classes/DataProcessing/ResponsiveImagesProcessor.php | 5 +++-- composer.json | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Classes/DataProcessing/ResponsiveImagesProcessor.php b/Classes/DataProcessing/ResponsiveImagesProcessor.php index bf46986..5f80fb3 100644 --- a/Classes/DataProcessing/ResponsiveImagesProcessor.php +++ b/Classes/DataProcessing/ResponsiveImagesProcessor.php @@ -50,7 +50,8 @@ public function __construct( private readonly FileRepository $fileRepository, private readonly BreakpointFactory $breakpointFactory, private readonly RootlineFactory $rootlineFactory - ) {} + ) { + } public function process( ContentObjectRenderer $cObj, @@ -136,7 +137,7 @@ private function calculateFileDimensionForBreakpoints(): array return $fileDimensions; } - public function getData(): array + private function getData(): array { if ( $this->processedData['data'] instanceof ContentBlockData diff --git a/composer.json b/composer.json index b61cf62..f869944 100644 --- a/composer.json +++ b/composer.json @@ -34,6 +34,7 @@ "require-dev": { "b13/container": "^2.3", "codappix/typo3-php-datasets": "^1.5", + "contentblocks/content-blocks": "^0.7", "erickskrauch/php-cs-fixer-custom-fixers": "^1.2", "friendsofphp/php-cs-fixer": "^3.50", "kubawerlos/php-cs-fixer-custom-fixers": "^3.21",