diff --git a/Classes/Upgrades/ThumbnailsUpgradeWizard.php b/Classes/Upgrades/ThumbnailsUpgradeWizard.php index 391bcb199903e5589f338c7911d7fcab2f2d76cc..6472f4dee22f86a40cd7c9640ad6ba33c3b241be 100644 --- a/Classes/Upgrades/ThumbnailsUpgradeWizard.php +++ b/Classes/Upgrades/ThumbnailsUpgradeWizard.php @@ -33,26 +33,22 @@ use TYPO3\CMS\Install\Attribute\UpgradeWizard; use TYPO3\CMS\Install\Updates\UpgradeWizardInterface; #[UpgradeWizard('sgVimeo_thumbnailsUpgradeWizard')] -final class ThumbnailsUpgradeWizard implements UpgradeWizardInterface -{ +final class ThumbnailsUpgradeWizard implements UpgradeWizardInterface { /** * Return the speaking name of this wizard */ - public function getTitle(): string - { + public function getTitle(): string { return 'Migrate the thumbnails field name in the database'; } /** * Return the description for this wizard */ - public function getDescription(): string - { + public function getDescription(): string { return 'This must be done in TYPO3 12 due to a bug and changes to how files fields are handled. See https://forge.typo3.org/issues/103885'; } - public function executeUpdate(): bool - { + public function executeUpdate(): bool { $connection = GeneralUtility::makeInstance(ConnectionPool::class) ->getConnectionForTable('sys_file_reference'); @@ -65,11 +61,10 @@ final class ThumbnailsUpgradeWizard implements UpgradeWizardInterface ); $queryBuilder->executeStatement(); - return true; + return TRUE; } - public function updateNecessary(): bool - { + public function updateNecessary(): bool { $connection = GeneralUtility::makeInstance(ConnectionPool::class) ->getConnectionForTable('sys_file_reference'); @@ -88,8 +83,7 @@ final class ThumbnailsUpgradeWizard implements UpgradeWizardInterface return (int)$count > 0; } - public function getPrerequisites(): array - { + public function getPrerequisites(): array { // Add your logic here } } diff --git a/composer.json b/composer.json index d81c5441b51d1e03b2c3c374f980bd8607e85604..f1f00e8c6e395c89ddf64e7f7cd2e06859781ab7 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "description": "A solution for embedding Vimeo videos, playlists, or channels easily into TYPO3 pages.", "homepage": "https://www.sgalinski.de", "license": "GPL-2.0-or-later", - "version": "4.2.0", + "version": "4.2.1", "require": { "typo3/cms-core": "^12.4.0", "vimeo/vimeo-api": "^3.0"