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

[BUGFIX] Fixes for php-cs-fixer, also fix files #656

Merged
merged 1 commit into from
Oct 2, 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
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@

class AfterCacheableContentIsGeneratedListener
{
public function __construct(private readonly JsonEncoder $encoder)
{
}
public function __construct(private readonly JsonEncoder $encoder) {}

public function __invoke(AfterCacheableContentIsGeneratedEvent $event)
{
Expand Down
3 changes: 1 addition & 2 deletions Classes/Event/Listener/AfterLinkIsGeneratedListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ final class AfterLinkIsGeneratedListener
public function __construct(
private readonly HeadlessFrontendUrlInterface $urlUtility,
private readonly LinkService $linkService
) {
}
) {}

public function __invoke(AfterLinkIsGeneratedEvent $event): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@

final class AfterPagePreviewUriGeneratedListener
{
public function __construct(private readonly HeadlessFrontendUrlInterface $urlUtility)
{
}
public function __construct(private readonly HeadlessFrontendUrlInterface $urlUtility) {}

public function __invoke(AfterPagePreviewUriGeneratedEvent $event): void
{
Expand Down
4 changes: 1 addition & 3 deletions Classes/Form/Decorator/FormDefinitionDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,4 @@

namespace FriendsOfTYPO3\Headless\Form\Decorator;

class FormDefinitionDecorator extends AbstractFormDefinitionDecorator
{
}
class FormDefinitionDecorator extends AbstractFormDefinitionDecorator {}
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/DomainViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public static function renderStatic(
case 'frontendBase':
return $urlUtility->getFrontendUrl();
case 'proxyUrl':
return $urlUtility->getProxyUrl();
return $urlUtility->getProxyUrl();
case 'storageProxyUrl':
return $urlUtility->getStorageProxyUrl();
}
Expand Down
2 changes: 1 addition & 1 deletion Tests/Unit/ContentObject/DataProcessingExample.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ public function process(

$processedData[$targetVariableName] = ['SomeCustomProcessing'];

return $processedData;
return $processedData;
}
}
2 changes: 1 addition & 1 deletion Tests/Unit/ContentObject/EmptyDataProcessingExample.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ public function process(

$processedData[$targetVariableName] = [null];

return $processedData;
return $processedData;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@

class TestSiteProvider implements SiteProviderInterface
{
public function prepare(array $config, int $siteUid)
{
}
public function prepare(array $config, int $siteUid) {}

public function getSites(): array
{
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"ext-json": "*",
"typo3/cms-core": "^12.4",
"typo3/cms-install": "^12.4",
"typo3/coding-standards": "^0.7.1"
"typo3/coding-standards": "dev-main"
},
"require-dev": {
"ergebnis/composer-normalize": "^2.15.0",
Expand Down