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.

WhereBetweenCondition   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 4
c 0
b 0
f 0
dl 0
loc 16
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A detect() 0 7 3
1
<?php
2
3
namespace eloquentFilter\QueryFilter\Detection\ConditionsDetect\Eloquent;
4
5
use eloquentFilter\QueryFilter\Detection\Contract\DetectorConditionsContract;
6
use eloquentFilter\QueryFilter\Queries\WhereBetween;
7
8
/**
9
 * Class WhereBetweenCondition.
10
 */
11
class WhereBetweenCondition implements DetectorConditionsContract
12
{
13
    /**
14
     * @param $field
15
     * @param $params
16
     * @param bool $is_override_method
17
     *
18
     * @return mixed|string
19
     */
20
    public static function detect($field, $params, bool $is_override_method = false): ?string
21
    {
22
        if (isset($params['start']) && isset($params['end'])) {
23
            $method = WhereBetween::class;
24
        }
25
26
        return $method ?? null;
27
    }
28
}
29