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
Pull Request — master (#18)
by
unknown
01:56
created

DatatablePass::process()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 15
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 12

Importance

Changes 0
Metric Value
dl 0
loc 15
ccs 0
cts 11
cp 0
rs 9.4285
c 0
b 0
f 0
cc 3
eloc 8
nc 3
nop 1
crap 12
1
<?php
2
3
namespace CrossKnowledge\DataTableBundle\DependencyInjection\Compiler;
4
5
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
6
use Symfony\Component\DependencyInjection\ContainerBuilder;
7
use Symfony\Component\DependencyInjection\Reference;
8
9
class DatatablePass implements CompilerPassInterface
10
{
11
    public function process(ContainerBuilder $container)
12
    {
13
        $registry = $container->getDefinition('crossknowledge_datatable.registry');
14
15
        $tFound = [];
16
17
        foreach ($container->findTaggedServiceIds('crossknowledge.datatable') as $id => $attributesInfos) {
18
            foreach ($attributesInfos as $attributeInfos) {
19
                $tFound[$attributeInfos['table_id']] = new Reference($id);
20
                $container->getDefinition($id)->addMethodCall('setTableId', [$attributeInfos['table_id']]);
21
            }
22
        }
23
24
        $registry->setArguments([$tFound]);
25
    }
26
}
27