TransientToken   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 36
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A can() 0 4 1
A cant() 0 4 1
A transient() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Rinvex\Oauth;
6
7
class TransientToken
8
{
9
    /**
10
     * Determine if the token has a given scope.
11
     *
12
     * @param string $scope
13
     *
14
     * @return bool
15
     */
16
    public function can($scope)
0 ignored issues
show
Unused Code introduced by
The parameter $scope is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
17
    {
18
        return true;
19
    }
20
21
    /**
22
     * Determine if the token is missing a given scope.
23
     *
24
     * @param string $scope
25
     *
26
     * @return bool
27
     */
28
    public function cant($scope)
0 ignored issues
show
Unused Code introduced by
The parameter $scope is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
29
    {
30
        return false;
31
    }
32
33
    /**
34
     * Determine if the token is a transient JWT token.
35
     *
36
     * @return bool
37
     */
38
    public function transient()
39
    {
40
        return true;
41
    }
42
}
43