chamilo/chamilo-lms

View on GitHub
src/CoreBundle/State/SocialPostStateProvider.php

Summary

Maintainability
A
0 mins
Test Coverage

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

        #[Autowire(service: 'api_platform.doctrine.orm.state.collection_provider')]

Add a single space around assignment operators
Open

declare(strict_types=1);

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

        #[Autowire(service: 'api_platform.doctrine.orm.state.item_provider')]

Missing function doc comment
Open

    public function provide(Operation $operation, array $uriVariables = [], array $context = []): object|array|null

The first parameter of a multi-line function declaration must be on the line after the opening bracket
Open

        private readonly ProviderInterface $itemProvider,

Closing brace must be on a line by itself
Open

    ) {}

Missing class doc comment
Open

class SocialPostStateProvider implements ProviderInterface

Missing function doc comment
Open

    public function __construct(

Line indented incorrectly; expected 4 spaces, found 8
Open

        private readonly ProviderInterface $itemProvider,

Closing brace must be on a line by itself
Open

    ) {}

Line indented incorrectly; expected 4 spaces, found 8
Open

        private readonly SettingsManager $settingsManager,

Line indented incorrectly; expected 4 spaces, found 8
Open

        private readonly ProviderInterface $collectionProvider,

There are no issues that match your filters.

Category
Status