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.
Passed
Push — refactoring/additional-filters... ( 06142a )
by Simone
03:48
created

Operators   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 53
c 0
b 0
f 0
rs 10
ccs 0
cts 2
cp 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getOperators() 0 3 1
1
<?php
2
3
namespace Mado\QueryBundle\Dictionary;
4
5
/** @deprecated will be removed in version 2.3 */
6
class Operators
7
{
8
    private static $operatorMap = [
9
        'eq' => [
10
            'meta' => '=',
11
        ],
12
        'neq' => [
13
            'meta' => '!=',
14
        ],
15
        'gt' => [
16
            'meta' => '>',
17
        ],
18
        'gte' => [
19
            'meta' => '>=',
20
        ],
21
        'lt' => [
22
            'meta' => '<',
23
        ],
24
        'lte' => [
25
            'meta' => '<=',
26
        ],
27
        'startswith' => [
28
            'meta' => 'LIKE',
29
            'substitution_pattern' => '{string}%'
30
        ],
31
        'contains' => [
32
            'meta' => 'LIKE',
33
            'substitution_pattern' => '%{string}%'
34
        ],
35
        'notcontains' => [
36
            'meta' => 'NOT LIKE',
37
            'substitution_pattern' => '%{string}%'
38
        ],
39
        'endswith' => [
40
            'meta' => 'LIKE',
41
            'substitution_pattern' => '%{string}'
42
        ],
43
        'list' => [
44
            'meta' => 'IN',
45
            'substitution_pattern' => '({string})',
46
        ],
47
        'nlist' => [
48
            'meta' => 'NOT IN',
49
            'substitution_pattern' => '({string})',
50
        ],
51
        'field_eq' => [
52
            'meta' => '=',
53
        ],
54
    ];
55
56
    public static function getOperators()
57
    {
58
        return self::$operatorMap;
59
    }
60
}
61
62