From f9c43767f563a22d4b4f295aec06fd6fa2cfca2e Mon Sep 17 00:00:00 2001 From: Georg Ringer Date: Wed, 24 Jan 2024 13:49:51 +0100 Subject: [PATCH] Revert "Apply fixes from StyleCI (#2335)" This reverts commit a8c51ca27451cb44977dbbbc807ead2aef57f5ea. --- Classes/Domain/Model/DemandInterface.php | 4 +--- Classes/Domain/Model/FileReference.php | 4 +--- Classes/Domain/Model/Link.php | 4 +--- Classes/Domain/Model/NewsDefault.php | 4 +--- Classes/Domain/Model/NewsExternal.php | 4 +--- Classes/Domain/Model/NewsInternal.php | 4 +--- Classes/Domain/Model/Tag.php | 4 +--- Classes/Domain/Repository/FileRepository.php | 4 +--- Classes/Domain/Repository/LinkRepository.php | 4 +--- Classes/Domain/Repository/MediaRepository.php | 4 +--- Classes/Domain/Repository/NewsDefaultRepository.php | 4 +--- Classes/Hooks/InlineElementHook.php | 7 ++----- Classes/TreeProvider/DatabaseTreeDataProvider.php | 4 +--- 13 files changed, 14 insertions(+), 41 deletions(-) diff --git a/Classes/Domain/Model/DemandInterface.php b/Classes/Domain/Model/DemandInterface.php index e32b5e9e62..d399afa133 100644 --- a/Classes/Domain/Model/DemandInterface.php +++ b/Classes/Domain/Model/DemandInterface.php @@ -12,6 +12,4 @@ /** * Demanded repository interface */ -interface DemandInterface -{ -} +interface DemandInterface {} diff --git a/Classes/Domain/Model/FileReference.php b/Classes/Domain/Model/FileReference.php index 6dec39aa83..22e7fdffe6 100644 --- a/Classes/Domain/Model/FileReference.php +++ b/Classes/Domain/Model/FileReference.php @@ -55,9 +55,7 @@ class FileReference extends \TYPO3\CMS\Extbase\Domain\Model\FileReference * extensible by other extensions that might want to define * an own __construct() method */ - public function __construct() - { - } + public function __construct() {} /** * Set File uid diff --git a/Classes/Domain/Model/Link.php b/Classes/Domain/Model/Link.php index bd145a1f84..8c14348511 100644 --- a/Classes/Domain/Model/Link.php +++ b/Classes/Domain/Model/Link.php @@ -51,9 +51,7 @@ class Link extends AbstractValueObject * extensible by other extensions that might want to define * an own __construct() method */ - public function __construct() - { - } + public function __construct() {} /** * Get creation date diff --git a/Classes/Domain/Model/NewsDefault.php b/Classes/Domain/Model/NewsDefault.php index 92ef3d898d..5dec81dfd9 100644 --- a/Classes/Domain/Model/NewsDefault.php +++ b/Classes/Domain/Model/NewsDefault.php @@ -12,6 +12,4 @@ /** * News model for default news */ -class NewsDefault extends News -{ -} +class NewsDefault extends News {} diff --git a/Classes/Domain/Model/NewsExternal.php b/Classes/Domain/Model/NewsExternal.php index 5f02aeaa6c..c704b65e15 100644 --- a/Classes/Domain/Model/NewsExternal.php +++ b/Classes/Domain/Model/NewsExternal.php @@ -12,6 +12,4 @@ /** * News model for external news */ -class NewsExternal extends News -{ -} +class NewsExternal extends News {} diff --git a/Classes/Domain/Model/NewsInternal.php b/Classes/Domain/Model/NewsInternal.php index c196004b6a..5356aac30b 100644 --- a/Classes/Domain/Model/NewsInternal.php +++ b/Classes/Domain/Model/NewsInternal.php @@ -12,6 +12,4 @@ /** * News model for internal news */ -class NewsInternal extends News -{ -} +class NewsInternal extends News {} diff --git a/Classes/Domain/Model/Tag.php b/Classes/Domain/Model/Tag.php index 8f62e499fe..f6fa23db59 100644 --- a/Classes/Domain/Model/Tag.php +++ b/Classes/Domain/Model/Tag.php @@ -59,9 +59,7 @@ class Tag extends AbstractValueObject * extensible by other extensions that might want to define * an own __construct() method */ - public function __construct() - { - } + public function __construct() {} /** * Get crdate diff --git a/Classes/Domain/Repository/FileRepository.php b/Classes/Domain/Repository/FileRepository.php index a04444b7a8..95eb7f8826 100644 --- a/Classes/Domain/Repository/FileRepository.php +++ b/Classes/Domain/Repository/FileRepository.php @@ -14,6 +14,4 @@ /** * Repository for file objects */ -class FileRepository extends Repository -{ -} +class FileRepository extends Repository {} diff --git a/Classes/Domain/Repository/LinkRepository.php b/Classes/Domain/Repository/LinkRepository.php index a78cd656c2..58b3287f8e 100644 --- a/Classes/Domain/Repository/LinkRepository.php +++ b/Classes/Domain/Repository/LinkRepository.php @@ -14,6 +14,4 @@ /** * Repository for link objects */ -class LinkRepository extends Repository -{ -} +class LinkRepository extends Repository {} diff --git a/Classes/Domain/Repository/MediaRepository.php b/Classes/Domain/Repository/MediaRepository.php index 0bdf31e9b7..4ba8b085c5 100644 --- a/Classes/Domain/Repository/MediaRepository.php +++ b/Classes/Domain/Repository/MediaRepository.php @@ -14,6 +14,4 @@ /** * Repository for media objects */ -class MediaRepository extends Repository -{ -} +class MediaRepository extends Repository {} diff --git a/Classes/Domain/Repository/NewsDefaultRepository.php b/Classes/Domain/Repository/NewsDefaultRepository.php index 2437aaf1c8..51414035ed 100644 --- a/Classes/Domain/Repository/NewsDefaultRepository.php +++ b/Classes/Domain/Repository/NewsDefaultRepository.php @@ -12,6 +12,4 @@ /** * News repository with all the callable functionality */ -class NewsDefaultRepository extends NewsRepository -{ -} +class NewsDefaultRepository extends NewsRepository {} diff --git a/Classes/Hooks/InlineElementHook.php b/Classes/Hooks/InlineElementHook.php index edca926d76..c59dc45524 100644 --- a/Classes/Hooks/InlineElementHook.php +++ b/Classes/Hooks/InlineElementHook.php @@ -29,9 +29,7 @@ class InlineElementHook implements InlineElementHookInterface * * @param InlineElement $parentObject */ - public function init(&$parentObject): void - { - } + public function init(&$parentObject): void {} /** * Pre-processing to define which control items are enabled or disabled. @@ -50,8 +48,7 @@ public function renderForeignRecordHeaderControl_preProcess( array $childConfig, $isVirtual, array &$enabledControls - ) { - } + ) {} /** * Post-processing to define which control items to show. Possibly own icons can be added here. diff --git a/Classes/TreeProvider/DatabaseTreeDataProvider.php b/Classes/TreeProvider/DatabaseTreeDataProvider.php index 6823be9407..c670d59f7b 100644 --- a/Classes/TreeProvider/DatabaseTreeDataProvider.php +++ b/Classes/TreeProvider/DatabaseTreeDataProvider.php @@ -12,6 +12,4 @@ /** * TCA tree data provider which considers */ -class DatabaseTreeDataProvider extends \TYPO3\CMS\Core\Tree\TableConfiguration\DatabaseTreeDataProvider -{ -} +class DatabaseTreeDataProvider extends \TYPO3\CMS\Core\Tree\TableConfiguration\DatabaseTreeDataProvider {}