Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TASK] Fix CGL after update to php-cs-fixer v3.27.0 #211

Merged
merged 1 commit into from
Sep 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading