GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( af1d70...46d3c7 )
by Mahdi
01:11
created

Id   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A apply() 0 4 1
A options() 0 4 1
A rules() 0 6 1
1
<?php
2
3
namespace Mjedari\Larafilter\Filters\Users;
4
5
use Illuminate\Database\Eloquent\Builder;
6
use Mjedari\Larafilter\Filters\FilterContract;
7
8
class Id extends FilterContract
9
{
10
    public $id;
11
12
    public static $queryName = 'ida';
13
14
    public function apply(Builder $query): Builder
15
    {
16
        return $query->where('id', '=', $this->value);
17
    }
18
19
    public function options()
20
    {
21
        // TODO: Implement options() method.
22
    }
23
24
    public function rules()
25
    {
26
        return [
27
            'required', 'numeric',
28
        ];
29
    }
30
31
    // ToDo: This is mandatory. should be fixed
32
//    protected $cast = 'integer';
33
}
34