AuthCode   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 42
ccs 0
cts 3
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A client() 0 3 1
1
<?php
2
3
namespace CodexShaper\DBM\MongoDB\Passport;
4
5
use Jenssegers\Mongodb\Eloquent\Model;
0 ignored issues
show
Bug introduced by
The type Jenssegers\Mongodb\Eloquent\Model was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
7
class AuthCode extends Model
8
{
9
    /**
10
     * The database table used by the model.
11
     *
12
     * @var string
13
     */
14
    protected $table = 'oauth_auth_codes';
15
16
    /**
17
     * The guarded attributes on the model.
18
     *
19
     * @var array
20
     */
21
    protected $guarded = [];
22
23
    /**
24
     * The attributes that should be cast to native types.
25
     *
26
     * @var array
27
     */
28
    protected $casts = [
29
        'revoked' => 'bool',
30
    ];
31
32
    /**
33
     * The attributes that should be mutated to dates.
34
     *
35
     * @var array
36
     */
37
    protected $dates = [
38
        'expires_at',
39
    ];
40
41
    /**
42
     * Get the client that owns the authentication code.
43
     *
44
     * @return \Illuminate\Database\Eloquent\Relations\HasMany
45
     */
46
    public function client()
47
    {
48
        return $this->hasMany(Client::class);
49
    }
50
}
51