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.
Test Setup Failed
Push — master ( aeed96...e25155 )
by Malte
03:19
created

PublicFragmentHandlerClass   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 1
b 0
f 0
dl 0
loc 5
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A process() 0 3 1
1
<?php
2
3
namespace Webfactory\ShortcodeBundle\Tests\Fixtures;
4
5
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
6
use Symfony\Component\DependencyInjection\ContainerBuilder;
7
8
/**
9
 * Make fragement.handler public so it can be mocked in tests.
10
 */
11
class PublicFragmentHandlerClass implements CompilerPassInterface
12
{
13
    public function process(ContainerBuilder $container): void
14
    {
15
        $container->getDefinition('fragment.handler')->setPublic(true);
16
    }
17
}
18