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.

BaseClause   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A handle() 0 5 1
1
<?php
2
3
namespace eloquentFilter\QueryFilter\Queries;
4
5
use Illuminate\Database\Eloquent\Builder;
6
7
/**
8
 * Class BaseClause.
9
 */
10
abstract class BaseClause
11
{
12
    /**
13
     * @var
14
     */
15
    protected $filter;
16
    /**
17
     * @var
18
     */
19
    protected $values;
20
21
    /**
22
     * BaseClause constructor.
23
     *
24
     * @param $values
25
     * @param $filter
26
     */
27
    public function __construct($values, $filter)
28
    {
29
        $this->values = $values;
30
        $this->filter = $filter;
31
    }
32
33
    /**
34
     * @param $query
35
     * @param $nextFilter
36
     *
37
     * @return Builder
38
     */
39
    public function handle(Builder $query, $nextFilter)
40
    {
41
        $query = $nextFilter($query);
42
43
        return static::apply($query);
0 ignored issues
show
Bug Best Practice introduced by
The method eloquentFilter\QueryFilt...ies\BaseClause::apply() is not static, but was called statically. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

43
        return static::/** @scrutinizer ignore-call */ apply($query);
Loading history...
44
    }
45
46
    /**
47
     * @param $query
48
     *
49
     * @return Builder
50
     */
51
    abstract protected function apply($query): Builder;
52
}
53