From cc6f4235b0c08382941c51689f3890be9b702c08 Mon Sep 17 00:00:00 2001 From: Torben Hansen Date: Sun, 3 Dec 2023 12:52:55 +0100 Subject: [PATCH] [TASK] Apply CGL changes --- Classes/Controller/AdministrationController.php | 4 +--- Classes/Domain/Model/Category.php | 4 +--- Classes/Domain/Repository/FrontendUserRepository.php | 4 +--- Classes/Domain/Repository/LocationRepository.php | 4 +--- Classes/Domain/Repository/OrganisatorRepository.php | 4 +--- Classes/Domain/Repository/PriceOptionRepository.php | 4 +--- Classes/Domain/Repository/Registration/FieldRepository.php | 4 +--- Classes/Domain/Repository/SpeakerRepository.php | 4 +--- Classes/Exception.php | 4 +--- Classes/Exception/InvalidCaptchaConfigurationException.php | 4 +--- Classes/Payment/Exception/PaymentException.php | 4 +--- Classes/Payment/Invoice.php | 4 +--- Classes/Payment/Transfer.php | 4 +--- .../SpamChecks/Exceptions/SpamCheckNotFoundException.php | 4 +--- Configuration/TCA/Overrides/sys_category.php | 2 +- Tests/Unit/ViewHelpers/Uri/OnlineCalendarViewHelperTest.php | 6 ++---- 16 files changed, 17 insertions(+), 47 deletions(-) diff --git a/Classes/Controller/AdministrationController.php b/Classes/Controller/AdministrationController.php index 14ff65697..b3ed61907 100644 --- a/Classes/Controller/AdministrationController.php +++ b/Classes/Controller/AdministrationController.php @@ -428,9 +428,7 @@ public function checkEventAccess(Event $event): void /** * Shows the settings error view */ - public function settingsErrorAction(): void - { - } + public function settingsErrorAction(): void {} /** * Suppress default validation messages diff --git a/Classes/Domain/Model/Category.php b/Classes/Domain/Model/Category.php index 92a3ec979..14cdefc8f 100644 --- a/Classes/Domain/Model/Category.php +++ b/Classes/Domain/Model/Category.php @@ -14,6 +14,4 @@ /** * Category */ -class Category extends \TYPO3\CMS\Extbase\Domain\Model\Category -{ -} +class Category extends \TYPO3\CMS\Extbase\Domain\Model\Category {} diff --git a/Classes/Domain/Repository/FrontendUserRepository.php b/Classes/Domain/Repository/FrontendUserRepository.php index c173c047b..d16395ffb 100644 --- a/Classes/Domain/Repository/FrontendUserRepository.php +++ b/Classes/Domain/Repository/FrontendUserRepository.php @@ -16,6 +16,4 @@ /** * The repository for frontend users */ -class FrontendUserRepository extends Repository -{ -} +class FrontendUserRepository extends Repository {} diff --git a/Classes/Domain/Repository/LocationRepository.php b/Classes/Domain/Repository/LocationRepository.php index 0d9ed0d4f..a6b0af6e2 100644 --- a/Classes/Domain/Repository/LocationRepository.php +++ b/Classes/Domain/Repository/LocationRepository.php @@ -14,6 +14,4 @@ /** * The repository for Locations */ -class LocationRepository extends AbstractForeignRecordRepository -{ -} +class LocationRepository extends AbstractForeignRecordRepository {} diff --git a/Classes/Domain/Repository/OrganisatorRepository.php b/Classes/Domain/Repository/OrganisatorRepository.php index ce3c8cffd..fbc253253 100644 --- a/Classes/Domain/Repository/OrganisatorRepository.php +++ b/Classes/Domain/Repository/OrganisatorRepository.php @@ -14,6 +14,4 @@ /** * The repository for Organisator */ -class OrganisatorRepository extends AbstractForeignRecordRepository -{ -} +class OrganisatorRepository extends AbstractForeignRecordRepository {} diff --git a/Classes/Domain/Repository/PriceOptionRepository.php b/Classes/Domain/Repository/PriceOptionRepository.php index 3ecc6014a..d94a7e943 100644 --- a/Classes/Domain/Repository/PriceOptionRepository.php +++ b/Classes/Domain/Repository/PriceOptionRepository.php @@ -16,6 +16,4 @@ /** * The repository for price options */ -class PriceOptionRepository extends Repository -{ -} +class PriceOptionRepository extends Repository {} diff --git a/Classes/Domain/Repository/Registration/FieldRepository.php b/Classes/Domain/Repository/Registration/FieldRepository.php index c92909007..a44099fb0 100644 --- a/Classes/Domain/Repository/Registration/FieldRepository.php +++ b/Classes/Domain/Repository/Registration/FieldRepository.php @@ -16,6 +16,4 @@ /** * The repository for registration field */ -class FieldRepository extends Repository -{ -} +class FieldRepository extends Repository {} diff --git a/Classes/Domain/Repository/SpeakerRepository.php b/Classes/Domain/Repository/SpeakerRepository.php index 09a9645ea..e51b00333 100644 --- a/Classes/Domain/Repository/SpeakerRepository.php +++ b/Classes/Domain/Repository/SpeakerRepository.php @@ -14,6 +14,4 @@ /** * The repository for conference speakers */ -class SpeakerRepository extends AbstractForeignRecordRepository -{ -} +class SpeakerRepository extends AbstractForeignRecordRepository {} diff --git a/Classes/Exception.php b/Classes/Exception.php index 6103794d8..92ac945df 100644 --- a/Classes/Exception.php +++ b/Classes/Exception.php @@ -12,6 +12,4 @@ /** * Generic exception for sf_event_mgt */ -class Exception extends \Exception -{ -} +class Exception extends \Exception {} diff --git a/Classes/Exception/InvalidCaptchaConfigurationException.php b/Classes/Exception/InvalidCaptchaConfigurationException.php index 05079c3c8..24dababe9 100644 --- a/Classes/Exception/InvalidCaptchaConfigurationException.php +++ b/Classes/Exception/InvalidCaptchaConfigurationException.php @@ -9,6 +9,4 @@ namespace DERHANSEN\SfEventMgt\Exception; -class InvalidCaptchaConfigurationException extends \Exception -{ -} +class InvalidCaptchaConfigurationException extends \Exception {} diff --git a/Classes/Payment/Exception/PaymentException.php b/Classes/Payment/Exception/PaymentException.php index e9ba972b0..a50970634 100644 --- a/Classes/Payment/Exception/PaymentException.php +++ b/Classes/Payment/Exception/PaymentException.php @@ -14,6 +14,4 @@ /** * PaymentException */ -class PaymentException extends Exception -{ -} +class PaymentException extends Exception {} diff --git a/Classes/Payment/Invoice.php b/Classes/Payment/Invoice.php index 33b3a1201..68846dfb9 100644 --- a/Classes/Payment/Invoice.php +++ b/Classes/Payment/Invoice.php @@ -12,6 +12,4 @@ /** * Invoice */ -class Invoice extends AbstractPayment -{ -} +class Invoice extends AbstractPayment {} diff --git a/Classes/Payment/Transfer.php b/Classes/Payment/Transfer.php index 55be4aae5..40bae09ad 100644 --- a/Classes/Payment/Transfer.php +++ b/Classes/Payment/Transfer.php @@ -12,6 +12,4 @@ /** * Transfer */ -class Transfer extends AbstractPayment -{ -} +class Transfer extends AbstractPayment {} diff --git a/Classes/SpamChecks/Exceptions/SpamCheckNotFoundException.php b/Classes/SpamChecks/Exceptions/SpamCheckNotFoundException.php index 7e2586ad0..a50a64bad 100644 --- a/Classes/SpamChecks/Exceptions/SpamCheckNotFoundException.php +++ b/Classes/SpamChecks/Exceptions/SpamCheckNotFoundException.php @@ -14,6 +14,4 @@ /** * Generic exception for sf_event_mgt */ -class SpamCheckNotFoundException extends Exception -{ -} +class SpamCheckNotFoundException extends Exception {} diff --git a/Configuration/TCA/Overrides/sys_category.php b/Configuration/TCA/Overrides/sys_category.php index d5f173185..db9eb02f5 100755 --- a/Configuration/TCA/Overrides/sys_category.php +++ b/Configuration/TCA/Overrides/sys_category.php @@ -8,7 +8,7 @@ * Add slug field to sys_category record (same field name as ext:news) */ $newSysCategoryColumns = [ - 'slug' =>[ + 'slug' => [ 'exclude' => true, 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:pages.slug', 'displayCond' => 'VERSION:IS:false', diff --git a/Tests/Unit/ViewHelpers/Uri/OnlineCalendarViewHelperTest.php b/Tests/Unit/ViewHelpers/Uri/OnlineCalendarViewHelperTest.php index 4d1e8544c..5b97899db 100644 --- a/Tests/Unit/ViewHelpers/Uri/OnlineCalendarViewHelperTest.php +++ b/Tests/Unit/ViewHelpers/Uri/OnlineCalendarViewHelperTest.php @@ -88,8 +88,7 @@ public function onlineCalendarViewHelperReturnsExpectedResults(string $type, str 'event' => $event, 'type' => $type, ], - function () { - }, + function () {}, $this->getMockBuilder(RenderingContextInterface::class)->disableOriginalConstructor()->getMock() ); self::assertEquals($expected, $result); @@ -117,8 +116,7 @@ public function defaultEnddateIsSetToEventsWithNoEnddate() 'event' => $event, 'type' => 'google', ], - function () { - }, + function () {}, $this->getMockBuilder(RenderingContextInterface::class)->disableOriginalConstructor()->getMock() ); $expected = 'https://www.google.com/calendar/render?action=TEMPLATE&text=A%20test%20event&dates=20210101T190000Z%2B0200%2F20210101T200000Z%2B0200&details=A%20description%20for%20the%20event';