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 ( 636721...5bab58 )
by Edi
13:03 queued 02:59
created

EnhancedSelection::createFromQueryBuilder()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Netgen\Bundle\EnhancedSelectionBundle\API\Repository\Values\Content\Query\Criterion;
6
7
use eZ\Publish\API\Repository\Values\Content\Query\Criterion;
8
use eZ\Publish\API\Repository\Values\Content\Query\Criterion\Operator;
9
use eZ\Publish\API\Repository\Values\Content\Query\Criterion\Operator\Specifications;
10
11
/**
12
 * A criterion that matches content based on identifier that is located in one of the fields.
13
 *
14
 * Supported operators:
15
 * - IN: matches against a list of identifiers (with OR operator)
16
 * - EQ: matches against one identifier
17
 */
18
class EnhancedSelection extends Criterion
19
{
20
    public function getSpecifications()
21
    {
22
        return [
23
            new Specifications(
24
                Operator::IN,
25
                Specifications::FORMAT_ARRAY,
26
                Specifications::TYPE_STRING
27
            ),
28
            new Specifications(
29
                Operator::EQ,
30
                Specifications::FORMAT_SINGLE,
31
                Specifications::TYPE_STRING
32
            ),
33
        ];
34
    }
35
}
36