Skip to content

Commit

Permalink
[TASK] Apply CGL changes
Browse files Browse the repository at this point in the history
  • Loading branch information
derhansen committed Dec 3, 2023
1 parent ae121ff commit cc6f423
Show file tree
Hide file tree
Showing 16 changed files with 17 additions and 47 deletions.
4 changes: 1 addition & 3 deletions Classes/Controller/AdministrationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions Classes/Domain/Model/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,4 @@
/**
* Category
*/
class Category extends \TYPO3\CMS\Extbase\Domain\Model\Category
{
}
class Category extends \TYPO3\CMS\Extbase\Domain\Model\Category {}
4 changes: 1 addition & 3 deletions Classes/Domain/Repository/FrontendUserRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,4 @@
/**
* The repository for frontend users
*/
class FrontendUserRepository extends Repository
{
}
class FrontendUserRepository extends Repository {}
4 changes: 1 addition & 3 deletions Classes/Domain/Repository/LocationRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,4 @@
/**
* The repository for Locations
*/
class LocationRepository extends AbstractForeignRecordRepository
{
}
class LocationRepository extends AbstractForeignRecordRepository {}
4 changes: 1 addition & 3 deletions Classes/Domain/Repository/OrganisatorRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,4 @@
/**
* The repository for Organisator
*/
class OrganisatorRepository extends AbstractForeignRecordRepository
{
}
class OrganisatorRepository extends AbstractForeignRecordRepository {}
4 changes: 1 addition & 3 deletions Classes/Domain/Repository/PriceOptionRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,4 @@
/**
* The repository for price options
*/
class PriceOptionRepository extends Repository
{
}
class PriceOptionRepository extends Repository {}
4 changes: 1 addition & 3 deletions Classes/Domain/Repository/Registration/FieldRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,4 @@
/**
* The repository for registration field
*/
class FieldRepository extends Repository
{
}
class FieldRepository extends Repository {}
4 changes: 1 addition & 3 deletions Classes/Domain/Repository/SpeakerRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,4 @@
/**
* The repository for conference speakers
*/
class SpeakerRepository extends AbstractForeignRecordRepository
{
}
class SpeakerRepository extends AbstractForeignRecordRepository {}
4 changes: 1 addition & 3 deletions Classes/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,4 @@
/**
* Generic exception for sf_event_mgt
*/
class Exception extends \Exception
{
}
class Exception extends \Exception {}
4 changes: 1 addition & 3 deletions Classes/Exception/InvalidCaptchaConfigurationException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,4 @@

namespace DERHANSEN\SfEventMgt\Exception;

class InvalidCaptchaConfigurationException extends \Exception
{
}
class InvalidCaptchaConfigurationException extends \Exception {}
4 changes: 1 addition & 3 deletions Classes/Payment/Exception/PaymentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,4 @@
/**
* PaymentException
*/
class PaymentException extends Exception
{
}
class PaymentException extends Exception {}
4 changes: 1 addition & 3 deletions Classes/Payment/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,4 @@
/**
* Invoice
*/
class Invoice extends AbstractPayment
{
}
class Invoice extends AbstractPayment {}
4 changes: 1 addition & 3 deletions Classes/Payment/Transfer.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,4 @@
/**
* Transfer
*/
class Transfer extends AbstractPayment
{
}
class Transfer extends AbstractPayment {}
4 changes: 1 addition & 3 deletions Classes/SpamChecks/Exceptions/SpamCheckNotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,4 @@
/**
* Generic exception for sf_event_mgt
*/
class SpamCheckNotFoundException extends Exception
{
}
class SpamCheckNotFoundException extends Exception {}
2 changes: 1 addition & 1 deletion Configuration/TCA/Overrides/sys_category.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
6 changes: 2 additions & 4 deletions Tests/Unit/ViewHelpers/Uri/OnlineCalendarViewHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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';
Expand Down

0 comments on commit cc6f423

Please sign in to comment.