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:39
created

DatatablePass   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 3
dl 0
loc 18
ccs 0
cts 11
cp 0
rs 10
c 0
b 0
f 0

1 Method

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