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.

Issues (32)

ConditionsDetect/Eloquent/WhereCustomCondition.php (1 issue)

1
<?php
2
3
namespace eloquentFilter\QueryFilter\Detection\ConditionsDetect\Eloquent;
4
5
use eloquentFilter\QueryFilter\Detection\Contract\DetectorConditionsContract;
6
use eloquentFilter\QueryFilter\Queries\WhereCustom;
7
8
/**
9
 * Class WhereCustomCondition.
10
 */
11
class WhereCustomCondition implements DetectorConditionsContract
12
{
13
    /**
14
     * @param $field
15
     * @param $params
16
     * @param bool $is_override_method
17
     *
18
     * @return string|null
19
     */
20
    public static function detect($field, $params, bool $is_override_method = false): ?string
21
    {
22
        if ($is_override_method == true) {
0 ignored issues
show
Coding Style Best Practice introduced by
It seems like you are loosely comparing two booleans. Considering using the strict comparison === instead.

When comparing two booleans, it is generally considered safer to use the strict comparison operator.

Loading history...
23
            $method = WhereCustom::class;
24
        }
25
26
        return $method ?? null;
27
    }
28
}
29