Skip to content

Conversation

@adamwojs
Copy link
Member

🎫 Issue IBX-XXXXX

Description:

The following PR applies automatic code upgrade rule sets.

For QA:

Sanities.

Documentation:

N/A

@sonarqubecloud
Copy link

Copy link
Contributor

@konradoboza konradoboza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost all remarks are about readonly, haven't continued. Please check it maybe with 8.3 syntax enabled within PHPStorm.

Comment on lines +27 to +29
private ContentTypeService $contentTypeService,
private ContentService $contentService,
private ActionDispatcherInterface $contentActionDispatcher
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could those be readonly as well?

Comment on lines +34 to +42
private ContentTypeService $contentTypeService,
private UserService $userService,
private LocationService $locationService,
private LanguageService $languageService,
private ActionDispatcherInterface $userActionDispatcher,
private PermissionResolver $permissionResolver,
private UserLanguagePreferenceProviderInterface $userLanguagePreferenceProvider,
private GroupedContentFormFieldsProviderInterface $groupedContentFormFieldsProvider,
private ContentService $contentService
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could those be readonly as well?

Comment on lines +37 to +38
private PermissionResolver $permissionResolver,
private ContentTypeService $contentTypeService
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could those be readonly as well?

private $configResolver;

public function __construct(ConfigResolverInterface $configResolver)
public function __construct(private ConfigResolverInterface $configResolver)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public function __construct(private ConfigResolverInterface $configResolver)
public function __construct(private readonly ConfigResolverInterface $configResolver)

Comment on lines +58 to +61
private PermissionResolver $permissionResolver,
private RoleService $roleService,
private UserService $userService,
private ContentTypeService $contentTypeService
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could those be readonly as well?

Comment on lines +29 to +31
private RouterInterface $router,
private URLAliasService $urlAliasService,
private LocationService $locationService
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could those be readonly as well?

UrlGeneratorInterface $urlGenerator
) {
$this->urlGenerator = $urlGenerator;
public function __construct(private UrlGeneratorInterface $urlGenerator)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public function __construct(private UrlGeneratorInterface $urlGenerator)
public function __construct(private readonly UrlGeneratorInterface $urlGenerator)

Comment on lines +30 to +31
private UserService $userService,
private UrlGeneratorInterface $urlGenerator
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could those be readonly as well?

Comment on lines +27 to +29
private UserService $userService,
private ContentService $contentService,
private UrlGeneratorInterface $urlGenerator
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could those be readonly as well?

private $fieldTypeFormMapper;

public function __construct(FieldTypeFormMapperDispatcherInterface $fieldTypeFormMapper)
public function __construct(private FieldTypeFormMapperDispatcherInterface $fieldTypeFormMapper)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public function __construct(private FieldTypeFormMapperDispatcherInterface $fieldTypeFormMapper)
public function __construct(private readonly FieldTypeFormMapperDispatcherInterface $fieldTypeFormMapper)

@adamwojs
Copy link
Member Author

Closed in favor of #84

@adamwojs adamwojs closed this Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants