Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
emodric committed Sep 12, 2023
1 parent f7941f4 commit 1075bba
Show file tree
Hide file tree
Showing 58 changed files with 58 additions and 159 deletions.
3 changes: 1 addition & 2 deletions bundle/Configuration/ConfigResolverConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ class ConfigResolverConfiguration implements ConfigurationInterface
public function __construct(
private ConfigResolverInterface $configResolver,
private ConfigurationInterface $fallbackConfiguration,
) {
}
) {}

public function hasParameter(string $parameterName): bool
{
Expand Down
4 changes: 1 addition & 3 deletions bundle/Controller/Admin/ConnectComponentContent.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@

final class ConnectComponentContent extends Controller
{
public function __construct(private BlockService $blockService, private ContentService $contentService)
{
}
public function __construct(private BlockService $blockService, private ContentService $contentService) {}

/**
* Connects the provided content with the provided component block.
Expand Down
3 changes: 1 addition & 2 deletions bundle/Controller/Admin/CreateContent.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ final class CreateContent extends Controller
public function __construct(
private LocationService $locationService,
private ContentTypeService $contentTypeService,
) {
}
) {}

/**
* Creates a content and redirects to route that edits the content.
Expand Down
4 changes: 1 addition & 3 deletions bundle/Controller/Admin/DeleteRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@

final class DeleteRule extends Controller
{
public function __construct(private LayoutService $layoutService, private LayoutResolverService $layoutResolverService)
{
}
public function __construct(private LayoutService $layoutService, private LayoutResolverService $layoutResolverService) {}

/**
* Deletes the provided rule.
Expand Down
4 changes: 1 addition & 3 deletions bundle/Controller/Admin/LayoutWizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@

final class LayoutWizard extends Controller
{
public function __construct(private LayoutService $layoutService, private LayoutTypeRegistry $layoutTypeRegistry)
{
}
public function __construct(private LayoutService $layoutService, private LayoutTypeRegistry $layoutTypeRegistry) {}

/**
* Renders a 1:1 wizard used to create layout+mapping combination on-the-fly.
Expand Down
4 changes: 1 addition & 3 deletions bundle/Controller/Admin/LayoutWizardCallback.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@

final class LayoutWizardCallback extends Controller
{
public function __construct(private LayoutService $layoutService, private LayoutResolverService $layoutResolverService)
{
}
public function __construct(private LayoutService $layoutService, private LayoutResolverService $layoutResolverService) {}

/**
* Creates a new 1:1 mapping based on data located in the session.
Expand Down
3 changes: 1 addition & 2 deletions bundle/Controller/Admin/LocationLayouts.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ public function __construct(
private ContentService $contentService,
private LayoutResolverInterface $layoutResolver,
private RelatedLayoutsLoader $relatedLayoutsLoader,
) {
}
) {}

/**
* Renders a template that shows all layouts applied to provided location.
Expand Down
4 changes: 1 addition & 3 deletions bundle/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@

final class Configuration extends SiteAccessConfiguration
{
public function __construct(private ExtensionInterface $extension)
{
}
public function __construct(private ExtensionInterface $extension) {}

public function getConfigTreeBuilder(): TreeBuilder
{
Expand Down
4 changes: 1 addition & 3 deletions bundle/DependencyInjection/ExtensionPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ final class ExtensionPlugin extends BaseExtensionPlugin
'design',
];

public function __construct(private ContainerBuilder $container, private ExtensionInterface $extension)
{
}
public function __construct(private ContainerBuilder $container, private ExtensionInterface $extension) {}

/**
* Pre-processes the configuration before it is resolved.
Expand Down
4 changes: 1 addition & 3 deletions bundle/EventListener/Admin/CacheEnabledListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@

final class CacheEnabledListener implements EventSubscriberInterface
{
public function __construct(private ClientInterface $httpCacheClient)
{
}
public function __construct(private ClientInterface $httpCacheClient) {}

public static function getSubscribedEvents(): array
{
Expand Down
4 changes: 1 addition & 3 deletions bundle/EventListener/Admin/IsEnterpriseVersionListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@

final class IsEnterpriseVersionListener implements EventSubscriberInterface
{
public function __construct(private bool $isEnterpriseVersion)
{
}
public function __construct(private bool $isEnterpriseVersion) {}

public static function getSubscribedEvents(): array
{
Expand Down
4 changes: 1 addition & 3 deletions bundle/EventListener/Admin/MainMenuBuilderListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@

final class MainMenuBuilderListener implements EventSubscriberInterface
{
public function __construct(private AuthorizationCheckerInterface $authorizationChecker)
{
}
public function __construct(private AuthorizationCheckerInterface $authorizationChecker) {}

public static function getSubscribedEvents(): array
{
Expand Down
3 changes: 1 addition & 2 deletions bundle/EventListener/Admin/SetPageLayoutListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ public function __construct(
private RequestStack $requestStack,
private array $groupsBySiteAccess,
private string $pageLayoutTemplate,
) {
}
) {}

public static function getSubscribedEvents(): array
{
Expand Down
3 changes: 1 addition & 2 deletions bundle/Form/Admin/Type/LayoutWizardType.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ public function __construct(
private LayoutService $layoutService,
private LayoutTypeRegistry $layoutTypeRegistry,
private bool $isEnterprise,
) {
}
) {}

public function configureOptions(OptionsResolver $resolver): void
{
Expand Down
3 changes: 1 addition & 2 deletions bundle/Templating/PageLayoutResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ public function __construct(
private ConfigResolverInterface $configResolver,
private RequestStack $requestStack,
private string $baseViewLayout,
) {
}
) {}

public function resolvePageLayout(): string
{
Expand Down
4 changes: 1 addition & 3 deletions bundle/Templating/Twig/Runtime/IbexaRuntime.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@

final class IbexaRuntime
{
public function __construct(private Repository $repository)
{
}
public function __construct(private Repository $repository) {}

/**
* Returns the content name.
Expand Down
4 changes: 1 addition & 3 deletions lib/AdminUI/RelatedLayoutsLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@

final class RelatedLayoutsLoader
{
public function __construct(private LayoutService $layoutService, private Connection $databaseConnection)
{
}
public function __construct(private LayoutService $layoutService, private Connection $databaseConnection) {}

/**
* Returns all layouts related to provided location and its content, sorted by name.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ public function __construct(
private array $groupsBySiteAccess,
private string $parameterName,
private string $configResolverParameterName,
) {
}
) {}

public function provideViewTypes(?Block $block = null): array
{
Expand Down
4 changes: 1 addition & 3 deletions lib/Block/BlockDefinition/Handler/ContentFieldHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
*/
final class ContentFieldHandler extends BlockDefinitionHandler
{
public function __construct(private ContentProviderInterface $contentProvider)
{
}
public function __construct(private ContentProviderInterface $contentProvider) {}

public function buildParameters(ParameterBuilderInterface $builder): void
{
Expand Down
4 changes: 1 addition & 3 deletions lib/ContentProvider/ContentProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
*/
final class ContentProvider implements ContentProviderInterface
{
public function __construct(private LocationService $locationService, private Context $context)
{
}
public function __construct(private LocationService $locationService, private Context $context) {}

public function provideContent(): ?Content
{
Expand Down
3 changes: 1 addition & 2 deletions lib/Context/ContextProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ public function __construct(
private RequestStack $requestStack,
private ContentService $contentService,
private array $allowedRoutes,
) {
}
) {}

public function provideContext(Context $context): void
{
Expand Down
4 changes: 1 addition & 3 deletions lib/Form/ContentTypeType.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@

final class ContentTypeType extends AbstractType
{
public function __construct(private ContentTypeService $contentTypeService)
{
}
public function __construct(private ContentTypeService $contentTypeService) {}

public function configureOptions(OptionsResolver $resolver): void
{
Expand Down
4 changes: 1 addition & 3 deletions lib/Form/ObjectStateType.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@

final class ObjectStateType extends AbstractType
{
public function __construct(private ObjectStateService $objectStateService)
{
}
public function __construct(private ObjectStateService $objectStateService) {}

public function configureOptions(OptionsResolver $resolver): void
{
Expand Down
4 changes: 1 addition & 3 deletions lib/Form/SectionType.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@

final class SectionType extends AbstractType
{
public function __construct(private SectionService $sectionService)
{
}
public function __construct(private SectionService $sectionService) {}

public function configureOptions(OptionsResolver $resolver): void
{
Expand Down
4 changes: 1 addition & 3 deletions lib/HttpCache/LocalClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@

final class LocalClient implements ClientInterface
{
public function __construct(private Psr6StoreInterface $cacheStore)
{
}
public function __construct(private Psr6StoreInterface $cacheStore) {}

public function purge(array $tags): void
{
Expand Down
4 changes: 1 addition & 3 deletions lib/HttpCache/RepositoryPrefixDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@

final class RepositoryPrefixDecorator implements ClientInterface
{
public function __construct(private ClientInterface $innerClient, private RepositoryTagPrefix $prefixService)
{
}
public function __construct(private ClientInterface $innerClient, private RepositoryTagPrefix $prefixService) {}

public function purge(array $tags): void
{
Expand Down
4 changes: 1 addition & 3 deletions lib/HttpCache/Varnish/HostHeaderProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@

final class HostHeaderProvider implements HostHeaderProviderInterface
{
public function __construct(private ConfigResolverInterface $configResolver)
{
}
public function __construct(private ConfigResolverInterface $configResolver) {}

public function provideHostHeader(): string
{
Expand Down
3 changes: 1 addition & 2 deletions lib/Item/ValueConverter/ContentValueConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ final class ContentValueConverter implements ValueConverterInterface
public function __construct(
private LocationService $locationService,
private ContentService $contentService,
) {
}
) {}

public function supports(object $object): bool
{
Expand Down
4 changes: 1 addition & 3 deletions lib/Item/ValueLoader/ContentValueLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@

final class ContentValueLoader implements ValueLoaderInterface
{
public function __construct(private ContentService $contentService)
{
}
public function __construct(private ContentService $contentService) {}

public function load($id): ?ContentInfo
{
Expand Down
4 changes: 1 addition & 3 deletions lib/Item/ValueLoader/LocationValueLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@

final class LocationValueLoader implements ValueLoaderInterface
{
public function __construct(private LocationService $locationService)
{
}
public function __construct(private LocationService $locationService) {}

public function load($id): ?Location
{
Expand Down
4 changes: 1 addition & 3 deletions lib/Item/ValueUrlGenerator/ContentValueUrlGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
*/
final class ContentValueUrlGenerator implements ExtendedValueUrlGeneratorInterface
{
public function __construct(private UrlGeneratorInterface $urlGenerator)
{
}
public function __construct(private UrlGeneratorInterface $urlGenerator) {}

public function generateDefaultUrl(object $object): ?string
{
Expand Down
4 changes: 1 addition & 3 deletions lib/Item/ValueUrlGenerator/LocationValueUrlGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
*/
final class LocationValueUrlGenerator implements ExtendedValueUrlGeneratorInterface
{
public function __construct(private UrlGeneratorInterface $urlGenerator)
{
}
public function __construct(private UrlGeneratorInterface $urlGenerator) {}

public function generateDefaultUrl(object $object): ?string
{
Expand Down
4 changes: 1 addition & 3 deletions lib/Layout/Resolver/ConditionType/ContentType.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@

final class ContentType extends ConditionType
{
public function __construct(private ContentExtractorInterface $contentExtractor)
{
}
public function __construct(private ContentExtractorInterface $contentExtractor) {}

public static function getType(): string
{
Expand Down
4 changes: 1 addition & 3 deletions lib/Layout/Resolver/ConditionType/SiteAccessGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ final class SiteAccessGroup extends ConditionType
/**
* @param array<string, string[]> $groupsBySiteAccess
*/
public function __construct(private array $groupsBySiteAccess)
{
}
public function __construct(private array $groupsBySiteAccess) {}

public static function getType(): string
{
Expand Down
4 changes: 1 addition & 3 deletions lib/Layout/Resolver/Form/ConditionType/Mapper/SiteAccess.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ final class SiteAccess extends Mapper
/**
* @param string[] $siteAccessList
*/
public function __construct(private array $siteAccessList)
{
}
public function __construct(private array $siteAccessList) {}

public function getFormType(): string
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ final class SiteAccessGroup extends Mapper
/**
* @param array<string, string[]> $siteAccessGroupList
*/
public function __construct(private array $siteAccessGroupList)
{
}
public function __construct(private array $siteAccessGroupList) {}

public function getFormType(): string
{
Expand Down
3 changes: 1 addition & 2 deletions lib/Layout/Resolver/TargetType/Children.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ public function __construct(
private ContentExtractorInterface $contentExtractor,
private ValueObjectProviderInterface $valueObjectProvider,
private RemoteIdConverter $remoteIdConverter,
) {
}
) {}

public static function getType(): string
{
Expand Down
Loading

0 comments on commit 1075bba

Please sign in to comment.