Skip to content

Commit

Permalink
[TASK] Fix CGL after update to php-cs-fixer v3.27.0 (#211)
Browse files Browse the repository at this point in the history
Releases: main, 12.4
  • Loading branch information
brotkrueml authored Sep 19, 2023
1 parent 19338ab commit daa56c0
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 28 deletions.
3 changes: 1 addition & 2 deletions Classes/Controller/AdminModuleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ public function __construct(
protected readonly ModuleTemplateFactory $moduleTemplateFactory,
protected readonly IconFactory $iconFactory,
// ...
) {
}
) {}

public function handleRequest(ServerRequestInterface $request): ResponseInterface
{
Expand Down
3 changes: 1 addition & 2 deletions Classes/Controller/Haiku/DetailController.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ public function __construct(
private readonly HaikuRepository $haikuRepository,
private readonly FlexFormSettingsService $flexFormSettingsService,
private readonly StandaloneViewService $viewService,
) {
}
) {}

/**
* This setter is called when the plugin is called from UserContentObject (USER)
Expand Down
3 changes: 1 addition & 2 deletions Classes/Controller/Haiku/ListController.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ public function __construct(
private readonly HaikuRepository $haikuRepository,
private readonly FlexFormSettingsService $flexFormSettingsService,
private readonly StandaloneViewService $viewService,
) {
}
) {}

public function main(string $content, array $conf, ServerRequestInterface $request): string
{
Expand Down
3 changes: 1 addition & 2 deletions Classes/Controller/ModuleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ public function __construct(
protected readonly ConnectionPool $connectionPool,
protected readonly DataHandler $dataHandler,
protected readonly TableInformationService $tableInformationService,
) {
}
) {}

/**
* Renders the list of all possible flash messages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ final class CheckExternalLinksToLocalPagesEventListener
public function __construct(
private readonly BrokenLinkRepository $brokenLinkRepository,
private readonly SoftReferenceParserFactory $softReferenceParserFactory,
) {
}
) {}

public function __invoke(BeforeRecordIsAnalyzedEvent $event): void
{
Expand Down
4 changes: 1 addition & 3 deletions Classes/Exception/InvalidWizardException.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,4 @@
/**
* Exception thrown if an invalid wizard is requested
*/
class InvalidWizardException extends \InvalidArgumentException
{
}
class InvalidWizardException extends \InvalidArgumentException {}
4 changes: 1 addition & 3 deletions Classes/Exception/NoSuchHaikuException.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,4 @@
/**
* Exception thrown if a haiku record was not found
*/
class NoSuchHaikuException extends \RuntimeException
{
}
class NoSuchHaikuException extends \RuntimeException {}
3 changes: 1 addition & 2 deletions Classes/Http/MeowInformationRequester.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ final class MeowInformationRequester
// so we inject it into the class using constructor injection.
public function __construct(
private readonly RequestFactory $requestFactory,
) {
}
) {}

/**
* @throws \JsonException
Expand Down
3 changes: 1 addition & 2 deletions Classes/LinkHandler/GitHubLinkHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ class GitHubLinkHandler implements LinkHandlerInterface
public function __construct(
// The page renderer is needed to register the JavaScript
private readonly PageRenderer $pageRenderer,
) {
}
) {}

/**
* Initialize the handler
Expand Down
3 changes: 1 addition & 2 deletions Classes/Middleware/HaikuSeasonList.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ public function __construct(
private readonly LanguageServiceFactory $languageServiceFactory,
private readonly ResponseFactoryInterface $responseFactory,
private readonly StreamFactoryInterface $streamFactory
) {
}
) {}

public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
{
Expand Down
3 changes: 1 addition & 2 deletions Classes/Reaction/ExampleReactionType.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ public function __construct(
private readonly Registry $registry,
private readonly ResponseFactoryInterface $responseFactory,
private readonly StreamFactoryInterface $streamFactory,
) {
}
) {}

public static function getType(): string
{
Expand Down
3 changes: 1 addition & 2 deletions Classes/Service/FlexFormSettingsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ class FlexFormSettingsService
{
public function __construct(
protected readonly FlexFormService $flexFormService,
) {
}
) {}

public function combineSettings(mixed $settings, string $flexFormString): array
{
Expand Down
3 changes: 1 addition & 2 deletions Classes/Service/TableInformationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ class TableInformationService
{
public function __construct(
protected readonly ConnectionPool $connectionPool,
) {
}
) {}
/**
* Returns the count of available records from any table
*/
Expand Down

0 comments on commit daa56c0

Please sign in to comment.