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 ( a4d425...a89259 )
by Simone
10s
created

Dictionary::getOperators()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Mado\QueryBundle;
4
5
class Dictionary
6
{
7
    private static $operatorMap = [
8
        'eq' => [
9
            'meta' => '=',
10
        ],
11
        'neq' => [
12
            'meta' => '!=',
13
        ],
14
        'gt' => [
15
            'meta' => '>',
16
        ],
17
        'gte' => [
18
            'meta' => '>=',
19
        ],
20
        'lt' => [
21
            'meta' => '<',
22
        ],
23
        'lte' => [
24
            'meta' => '<=',
25
        ],
26
        'startswith' => [
27
            'meta' => 'LIKE',
28
            'substitution_pattern' => '{string}%'
29
        ],
30
        'contains' => [
31
            'meta' => 'LIKE',
32
            'substitution_pattern' => '%{string}%'
33
        ],
34
        'notcontains' => [
35
            'meta' => 'NOT LIKE',
36
            'substitution_pattern' => '%{string}%'
37
        ],
38
        'endswith' => [
39
            'meta' => 'LIKE',
40
            'substitution_pattern' => '%{string}'
41
        ],
42
        'list' => [
43
            'meta' => 'IN',
44
            'substitution_pattern' => '({string})',
45
        ],
46
        'nlist' => [
47
            'meta' => 'NOT IN',
48
            'substitution_pattern' => '({string})',
49
        ],
50
        'field_eq' => [
51
            'meta' => '=',
52
        ],
53
    ];
54
55
    public static function getOperators()
56
    {
57
        return self::$operatorMap;
58
    }
59
}
60
61