Test Failed
Push — master ( d8d1f0...2a75d8 )
by Julien
04:31
created

GoogleController::getAccessToken()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 4
ccs 0
cts 3
cp 0
rs 10
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
/**
4
 * This file is part of the Zemit Framework.
5
 *
6
 * (c) Zemit Team <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE.txt
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Zemit\Modules\Oauth2\Controllers;
13
14
use League\OAuth2\Client\Grant\RefreshToken;
15
use League\OAuth2\Client\Provider\Google;
16
use League\OAuth2\Client\Provider\ResourceOwnerInterface;
17
use League\OAuth2\Client\Token\AccessToken;
18
use League\OAuth2\Client\Token\AccessTokenInterface;
19
use Phalcon\Http\ResponseInterface;
20
21
class GoogleController extends AbstractController
22
{
23
    public string $providerName = self::PROVIDER_GOOGLE;
24
    
25
    public string $sessionKey = 'oauth2-google-state';
26
}
27