Rector changes and immplementations of required methods

This commit is contained in:
2025-05-22 17:47:07 +02:00
parent 053b92b77c
commit 17db59d221
1138 changed files with 2656 additions and 2616 deletions

View File

@@ -18,7 +18,7 @@ use Symfony\Component\DependencyInjection\Reference;
class ACLFlagsCompilerPass implements CompilerPassInterface
{
public function process(ContainerBuilder $container)
public function process(ContainerBuilder $container): void
{
$permissionGroupType = $container->getDefinition(PermissionsGroupType::class);

View File

@@ -28,7 +28,7 @@ use Symfony\Component\DependencyInjection\Reference;
*/
class ExportsCompilerPass implements CompilerPassInterface
{
public function process(ContainerBuilder $container)
public function process(ContainerBuilder $container): void
{
if (!$container->has(ExportManager::class)) {
throw new \LogicException('service '.ExportManager::class.' is not defined. It is required by ExportsCompilerPass');
@@ -45,7 +45,7 @@ class ExportsCompilerPass implements CompilerPassInterface
private function compileExportElementsProvider(
Definition $chillManagerDefinition,
ContainerBuilder $container,
) {
): void {
$taggedServices = $container->findTaggedServiceIds(
'chill.export_elements_provider'
);
@@ -74,7 +74,7 @@ class ExportsCompilerPass implements CompilerPassInterface
private function compileFormatters(
Definition $chillManagerDefinition,
ContainerBuilder $container,
) {
): void {
$taggedServices = $container->findTaggedServiceIds(
'chill.export_formatter'
);

View File

@@ -18,7 +18,7 @@ use Symfony\Component\DependencyInjection\Reference;
class MenuCompilerPass implements CompilerPassInterface
{
public function process(ContainerBuilder $container)
public function process(ContainerBuilder $container): void
{
if (!$container->hasDefinition('chill.main.menu_composer')) {
throw new \LogicException(sprintf('The service %s does not exists in container.', MenuComposer::class));

View File

@@ -18,7 +18,7 @@ use Symfony\Component\DependencyInjection\Reference;
class NotificationCounterCompilerPass implements CompilerPassInterface
{
public function process(ContainerBuilder $container)
public function process(ContainerBuilder $container): void
{
if (!$container->hasDefinition(CountNotificationUser::class)) {
throw new \LogicException('The service '.CountNotificationUser::class.' should be defined');

View File

@@ -22,7 +22,7 @@ class SearchableServicesCompilerPass implements CompilerPassInterface
*
* @see \Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface::process()
*/
public function process(ContainerBuilder $container)
public function process(ContainerBuilder $container): void
{
if (!$container->hasDefinition('chill_main.search_provider')) {
throw new \LogicException('service chill_main.search_provider is not defined.');

View File

@@ -21,7 +21,7 @@ use Symfony\Component\DependencyInjection\Reference;
*/
class TimelineCompilerClass implements CompilerPassInterface
{
public function process(ContainerBuilder $container)
public function process(ContainerBuilder $container): void
{
if (!$container->hasDefinition('chill_main.timeline_builder')) {
throw new \LogicException('service chill_main.timeline_builder is not defined.');

View File

@@ -19,7 +19,7 @@ use Symfony\Component\DependencyInjection\ContainerBuilder;
*/
class WidgetsCompilerPass extends AbstractWidgetsCompilerPass
{
public function process(ContainerBuilder $container)
public function process(ContainerBuilder $container): void
{
$this->doProcess($container, 'chill_main', 'chill_main.widgets');
}