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.

ReadOnlyHydratorBundle   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 6 1
1
<?php
2
3
namespace steevanb\DoctrineReadOnlyHydrator\Bridge\ReadOnlyHydratorBundle;
4
5
use steevanb\DoctrineReadOnlyHydrator\Bridge\ReadOnlyHydratorBundle\DependencyInjection\Compiler\AddReadOnlyHydrationModePass;
6
use steevanb\DoctrineReadOnlyHydrator\Bridge\ReadOnlyHydratorBundle\DependencyInjection\Compiler\AddSimpleObjectHydrationModePass;
7
use Symfony\Component\DependencyInjection\ContainerBuilder;
8
use Symfony\Component\HttpKernel\Bundle\Bundle;
9
10
class ReadOnlyHydratorBundle extends Bundle
11
{
12
    /**
13
     * @param ContainerBuilder $container
14
     */
15
    public function build(ContainerBuilder $container)
16
    {
17
        $container
18
            ->addCompilerPass(new AddReadOnlyHydrationModePass())
19
            ->addCompilerPass(new AddSimpleObjectHydrationModePass());
20
    }
21
}
22