-
Notifications
You must be signed in to change notification settings - Fork 514
OAuth2 #5753
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OAuth2 #5753
Conversation
|
||
/* For licensing terms, see /license.txt */ | ||
|
||
declare(strict_types=1); |
There was a problem hiding this comment.
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')] |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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] |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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, | ||
) {} |
There was a problem hiding this comment.
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, | ||
) {} |
There was a problem hiding this comment.
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
…gistration - refs BT#21881
…ogin/registration - refs BT#21881
private AuthenticationConfigHelper $authenticationConfigHelper, | ||
) {} | ||
|
||
public function createProvider( |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing class doc comment
Code Climate has analyzed commit 3aa77ce and detected 105 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
No description provided.