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.

IndexBy::modify()   A
last analyzed

Complexity

Conditions 2
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
rs 9.4285
cc 2
eloc 4
nc 1
nop 2
1
<?php
2
3
namespace Rb\Specification\Doctrine\Query;
4
5
use Doctrine\ORM\QueryBuilder;
6
use Rb\Specification\Doctrine\AbstractSpecification;
7
8
/**
9
 * IndexBy will modify the query-builder so you can specify INDEX BY-statements.
10
 */
11
class IndexBy extends AbstractSpecification
12
{
13
    /**
14
     * {@inheritdoc}
15
     */
16
    public function modify(QueryBuilder $queryBuilder, $dqlAlias)
17
    {
18
        $queryBuilder->indexBy(
19
            $this->dqlAlias ?: $dqlAlias,
20
            $this->createPropertyWithAlias($dqlAlias)
21
        );
22
    }
23
}
24