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   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 53
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getOperators() 0 3 1
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