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
Pull Request — master (#53)
by Alessandro
03:19
created

Operators   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 49
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getOperators() 0 3 1
1
<?php
2
3
namespace Mado\QueryBundle\Dictionary;
4
5
class Operators
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
        'field_eq' => [
47
            'meta' => '=',
48
        ],
49
    ];
50
51
    public static function getOperators()
52
    {
53
        return self::$operatorMap;
54
    }
55
}
56
57