Skip to content

Conversation

AngelFQC
Copy link
Member

No description provided.


/* For licensing terms, see /license.txt */

declare(strict_types=1);

Choose a reason for hiding this comment

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

Add a single space around assignment operators

use Symfony\Component\DependencyInjection\Attribute\AsDecorator;
use Symfony\Component\DependencyInjection\Attribute\AutowireDecorated;

#[AsDecorator(decorates: 'knpu.oauth2.provider_factory')]

Choose a reason for hiding this comment

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

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

use Symfony\Component\DependencyInjection\Attribute\AutowireDecorated;

#[AsDecorator(decorates: 'knpu.oauth2.provider_factory')]
readonly class OAuth2ProviderFactoryDecorator

Choose a reason for hiding this comment

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

Missing class doc comment

#[AsDecorator(decorates: 'knpu.oauth2.provider_factory')]
readonly class OAuth2ProviderFactoryDecorator
{
public function __construct(

Choose a reason for hiding this comment

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

Missing function doc comment

readonly class OAuth2ProviderFactoryDecorator
{
public function __construct(
#[AutowireDecorated]

Choose a reason for hiding this comment

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

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

{
public function __construct(
#[AutowireDecorated]
private ProviderFactory $inner,

Choose a reason for hiding this comment

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

Line indented incorrectly; expected 4 spaces, found 8

{
public function __construct(
#[AutowireDecorated]
private ProviderFactory $inner,

Choose a reason for hiding this comment

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

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

public function __construct(
#[AutowireDecorated]
private ProviderFactory $inner,
private AuthenticationConfigHelper $authenticationConfigHelper,

Choose a reason for hiding this comment

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

Line indented incorrectly; expected 4 spaces, found 8

#[AutowireDecorated]
private ProviderFactory $inner,
private AuthenticationConfigHelper $authenticationConfigHelper,
) {}

Choose a reason for hiding this comment

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

Closing brace must be on a line by itself

#[AutowireDecorated]
private ProviderFactory $inner,
private AuthenticationConfigHelper $authenticationConfigHelper,
) {}

Choose a reason for hiding this comment

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

Closing brace must be on a line by itself

@AngelFQC AngelFQC marked this pull request as ready for review August 26, 2024 22:54
private AuthenticationConfigHelper $authenticationConfigHelper,
) {}

public function createProvider(

Choose a reason for hiding this comment

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

Missing function doc comment

array $redirectParams = [],
array $collaborators = []
): AbstractProvider {
$options = match ($class) {

Choose a reason for hiding this comment

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

Space before opening parenthesis of function call prohibited

array $redirectParams = [],
array $collaborators = []
): AbstractProvider {
$options = match ($class) {

Choose a reason for hiding this comment

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

Space before opening parenthesis of function call prohibited


/* For licensing terms, see /license.txt */

declare(strict_types=1);

Choose a reason for hiding this comment

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

Add a single space around assignment operators

use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;

abstract class AbstractProviderController extends AbstractController

Choose a reason for hiding this comment

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

Missing class doc comment

Copy link

Code Climate has analyzed commit 3aa77ce and detected 105 issues on this pull request.

Here's the issue category breakdown:

Category Count
Style 86
Clarity 11
Bug Risk 7
Complexity 1

View more on Code Climate.

@NicoDucou NicoDucou merged commit 619f40f into chamilo:master Aug 28, 2024
2 of 7 checks passed
@AngelFQC AngelFQC deleted the BT21881 branch August 28, 2024 16:34
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.

2 participants