Passed
Push — dependabot/npm_and_yarn/nanoid... ( aaf2c9...c4aa90 )
by
unknown
14:37 queued 06:22
created

AzureProviderController   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 12
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A connect() 0 6 1
A connectCheck() 0 2 1
1
<?php
2
3
/* For licensing terms, see /license.txt */
4
5
declare(strict_types=1);
6
7
namespace Chamilo\CoreBundle\Controller\OAuth2;
8
9
use Chamilo\CoreBundle\ServiceHelper\AuthenticationConfigHelper;
10
use KnpU\OAuth2ClientBundle\Client\ClientRegistry;
11
use Symfony\Component\HttpFoundation\Response;
12
use Symfony\Component\Routing\Attribute\Route;
13
14
class AzureProviderController extends AbstractProviderController
15
{
16
    #[Route('/connect/azure', name: 'chamilo.oauth2_azure_start')]
17
    public function connect(
18
        ClientRegistry $clientRegistry,
19
        AuthenticationConfigHelper $authenticationConfigHelper,
20
    ): Response {
21
        return $this->getStartResponse('azure', $clientRegistry, $authenticationConfigHelper);
22
    }
23
24
    #[Route('/connect/azure/check', name: 'chamilo.oauth2_azure_check')]
25
    public function connectCheck(): void {}
26
}
27