diff --git a/bundle/Controller/WebhookController.php b/bundle/Controller/WebhookController.php index 20fa967..3bb6eaa 100644 --- a/bundle/Controller/WebhookController.php +++ b/bundle/Controller/WebhookController.php @@ -26,9 +26,7 @@ final class WebhookController extends AbstractController public const CONTENT_TYPE_UNPUBLISH = 'ContentManagement.ContentType.unpublish'; public const CONTENT_TYPE_DELETE = 'ContentManagement.ContentType.delete'; - public function __construct(private Contentful $contentful) - { - } + public function __construct(private Contentful $contentful) {} /** * Contentful webhook for clearing local caches. diff --git a/bundle/DependencyInjection/Configuration.php b/bundle/DependencyInjection/Configuration.php index d90f53e..df78f1d 100644 --- a/bundle/DependencyInjection/Configuration.php +++ b/bundle/DependencyInjection/Configuration.php @@ -11,9 +11,7 @@ final class Configuration implements ConfigurationInterface { - public function __construct(private ExtensionInterface $extension) - { - } + public function __construct(private ExtensionInterface $extension) {} public function getConfigTreeBuilder(): BaseTreeBuilder { diff --git a/bundle/Templating/Twig/Runtime/ContentfulRuntime.php b/bundle/Templating/Twig/Runtime/ContentfulRuntime.php index de9d9a4..7fd82a9 100644 --- a/bundle/Templating/Twig/Runtime/ContentfulRuntime.php +++ b/bundle/Templating/Twig/Runtime/ContentfulRuntime.php @@ -11,9 +11,7 @@ final class ContentfulRuntime { - public function __construct(private Contentful $contentful) - { - } + public function __construct(private Contentful $contentful) {} /** * Returns the Contentful entry name. diff --git a/lib/Block/BlockDefinition/Handler/EntryFieldHandler.php b/lib/Block/BlockDefinition/Handler/EntryFieldHandler.php index 986d177..9cecd5a 100644 --- a/lib/Block/BlockDefinition/Handler/EntryFieldHandler.php +++ b/lib/Block/BlockDefinition/Handler/EntryFieldHandler.php @@ -32,8 +32,7 @@ public function __construct( private RequestStack $requestStack, private ParserInterface $richTextParser, private CmsItemBuilderInterface $cmsItemBuilder, - ) { - } + ) {} public function buildParameters(ParameterBuilderInterface $builder): void { diff --git a/lib/Browser/Backend/ContentfulBackend.php b/lib/Browser/Backend/ContentfulBackend.php index cbcd018..175bcb4 100644 --- a/lib/Browser/Backend/ContentfulBackend.php +++ b/lib/Browser/Backend/ContentfulBackend.php @@ -24,9 +24,7 @@ final class ContentfulBackend implements BackendInterface { - public function __construct(private Contentful $contentful) - { - } + public function __construct(private Contentful $contentful) {} public function getSections(): iterable { diff --git a/lib/Browser/Item/Client/Location.php b/lib/Browser/Item/Client/Location.php index 1208043..48cec29 100644 --- a/lib/Browser/Item/Client/Location.php +++ b/lib/Browser/Item/Client/Location.php @@ -9,9 +9,7 @@ final class Location implements LocationInterface, ClientInterface { - public function __construct(private ContentfulClientInterface $client, private string $id) - { - } + public function __construct(private ContentfulClientInterface $client, private string $id) {} public function getLocationId(): string { diff --git a/lib/Browser/Item/ColumnProvider/Entry/CreatedAt.php b/lib/Browser/Item/ColumnProvider/Entry/CreatedAt.php index a1744bc..17ba5d6 100644 --- a/lib/Browser/Item/ColumnProvider/Entry/CreatedAt.php +++ b/lib/Browser/Item/ColumnProvider/Entry/CreatedAt.php @@ -10,9 +10,7 @@ final class CreatedAt implements ColumnValueProviderInterface { - public function __construct(private string $dateFormat) - { - } + public function __construct(private string $dateFormat) {} public function getValue(ItemInterface $item): ?string { diff --git a/lib/Browser/Item/ColumnProvider/Entry/UpdatedAt.php b/lib/Browser/Item/ColumnProvider/Entry/UpdatedAt.php index dc76b8d..170caac 100644 --- a/lib/Browser/Item/ColumnProvider/Entry/UpdatedAt.php +++ b/lib/Browser/Item/ColumnProvider/Entry/UpdatedAt.php @@ -10,9 +10,7 @@ final class UpdatedAt implements ColumnValueProviderInterface { - public function __construct(private string $dateFormat) - { - } + public function __construct(private string $dateFormat) {} public function getValue(ItemInterface $item): ?string { diff --git a/lib/Browser/Item/Entry/Item.php b/lib/Browser/Item/Entry/Item.php index f31979b..66edc05 100644 --- a/lib/Browser/Item/Entry/Item.php +++ b/lib/Browser/Item/Entry/Item.php @@ -9,9 +9,7 @@ final class Item implements ItemInterface, EntryInterface { - public function __construct(private ContentfulEntry $entry) - { - } + public function __construct(private ContentfulEntry $entry) {} public function getValue(): string { diff --git a/lib/Collection/QueryType/Handler/ContentfulReferencesHandler.php b/lib/Collection/QueryType/Handler/ContentfulReferencesHandler.php index c40203c..8bbc2d2 100644 --- a/lib/Collection/QueryType/Handler/ContentfulReferencesHandler.php +++ b/lib/Collection/QueryType/Handler/ContentfulReferencesHandler.php @@ -19,9 +19,7 @@ */ final class ContentfulReferencesHandler implements QueryTypeHandlerInterface { - public function __construct(private Contentful $contentful, private RequestStack $requestStack) - { - } + public function __construct(private Contentful $contentful, private RequestStack $requestStack) {} public function buildParameters(ParameterBuilderInterface $builder): void { diff --git a/lib/Collection/QueryType/Handler/ContentfulSearchHandler.php b/lib/Collection/QueryType/Handler/ContentfulSearchHandler.php index f555a24..45d8be1 100644 --- a/lib/Collection/QueryType/Handler/ContentfulSearchHandler.php +++ b/lib/Collection/QueryType/Handler/ContentfulSearchHandler.php @@ -23,9 +23,7 @@ */ final class ContentfulSearchHandler implements QueryTypeHandlerInterface { - public function __construct(private Contentful $contentful) - { - } + public function __construct(private Contentful $contentful) {} public function buildParameters(ParameterBuilderInterface $builder): void { diff --git a/lib/Exception/NotFoundException.php b/lib/Exception/NotFoundException.php index 388fe59..9b57774 100644 --- a/lib/Exception/NotFoundException.php +++ b/lib/Exception/NotFoundException.php @@ -6,6 +6,4 @@ use Exception; -final class NotFoundException extends Exception -{ -} +final class NotFoundException extends Exception {} diff --git a/lib/Exception/RuntimeException.php b/lib/Exception/RuntimeException.php index bf9b7e0..cf3f611 100644 --- a/lib/Exception/RuntimeException.php +++ b/lib/Exception/RuntimeException.php @@ -6,6 +6,4 @@ use RuntimeException as BaseRuntimeException; -final class RuntimeException extends BaseRuntimeException -{ -} +final class RuntimeException extends BaseRuntimeException {} diff --git a/lib/Item/ValueLoader/EntryValueLoader.php b/lib/Item/ValueLoader/EntryValueLoader.php index 5fb4452..b6a92e8 100644 --- a/lib/Item/ValueLoader/EntryValueLoader.php +++ b/lib/Item/ValueLoader/EntryValueLoader.php @@ -11,9 +11,7 @@ final class EntryValueLoader implements ValueLoaderInterface { - public function __construct(private Contentful $contentful) - { - } + public function __construct(private Contentful $contentful) {} public function load($id): ?ContentfulEntry { diff --git a/lib/Layout/Resolver/ConditionType/ContentType.php b/lib/Layout/Resolver/ConditionType/ContentType.php index 960b314..663b657 100644 --- a/lib/Layout/Resolver/ConditionType/ContentType.php +++ b/lib/Layout/Resolver/ConditionType/ContentType.php @@ -18,9 +18,7 @@ final class ContentType extends ConditionType { - public function __construct(private Contentful $contentful) - { - } + public function __construct(private Contentful $contentful) {} public static function getType(): string { diff --git a/lib/Layout/Resolver/Form/ConditionType/Mapper/ContentType.php b/lib/Layout/Resolver/Form/ConditionType/Mapper/ContentType.php index 448bd89..a8ea374 100644 --- a/lib/Layout/Resolver/Form/ConditionType/Mapper/ContentType.php +++ b/lib/Layout/Resolver/Form/ConditionType/Mapper/ContentType.php @@ -11,9 +11,7 @@ final class ContentType extends Mapper { - public function __construct(private Contentful $contentful) - { - } + public function __construct(private Contentful $contentful) {} public function getFormType(): string { diff --git a/lib/Layout/Resolver/Form/TargetType/Mapper/Space.php b/lib/Layout/Resolver/Form/TargetType/Mapper/Space.php index 2e48f1c..61e91aa 100644 --- a/lib/Layout/Resolver/Form/TargetType/Mapper/Space.php +++ b/lib/Layout/Resolver/Form/TargetType/Mapper/Space.php @@ -11,9 +11,7 @@ final class Space extends Mapper { - public function __construct(private Contentful $contentful) - { - } + public function __construct(private Contentful $contentful) {} public function getFormType(): string { diff --git a/lib/Routing/ContentfulEnhancer.php b/lib/Routing/ContentfulEnhancer.php index 967b197..535895a 100644 --- a/lib/Routing/ContentfulEnhancer.php +++ b/lib/Routing/ContentfulEnhancer.php @@ -14,9 +14,7 @@ final class ContentfulEnhancer implements RouteEnhancerInterface { - public function __construct(private Contentful $contentful) - { - } + public function __construct(private Contentful $contentful) {} public function enhance(array $defaults, Request $request): array { diff --git a/lib/Routing/EntrySlugger/Configurable.php b/lib/Routing/EntrySlugger/Configurable.php index 52d54e7..d7e30a0 100644 --- a/lib/Routing/EntrySlugger/Configurable.php +++ b/lib/Routing/EntrySlugger/Configurable.php @@ -16,9 +16,7 @@ final class Configurable implements EntrySluggerInterface /** * @param mixed[] $configuration */ - public function __construct(private array $configuration, private ContainerInterface $sluggers) - { - } + public function __construct(private array $configuration, private ContainerInterface $sluggers) {} public function getSlug(ContentfulEntry $contentfulEntry): string { diff --git a/lib/Service/Contentful.php b/lib/Service/Contentful.php index ad3fda5..7c0ea9b 100644 --- a/lib/Service/Contentful.php +++ b/lib/Service/Contentful.php @@ -41,8 +41,7 @@ public function __construct( private Filesystem $fileSystem, private string $cacheDir, private array $routeContentTypes, - ) { - } + ) {} /** * Returns all configured clients.