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.

OdiseoSyliusReportPlugin::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 6
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Odiseo\SyliusReportPlugin;
6
7
use Odiseo\SyliusReportPlugin\DependencyInjection\Compiler\RegisterDataFetchersPass;
8
use Odiseo\SyliusReportPlugin\DependencyInjection\Compiler\RegisterRenderersPass;
9
use Sylius\Bundle\CoreBundle\Application\SyliusPluginTrait;
10
use Sylius\Bundle\ResourceBundle\AbstractResourceBundle;
11
use Sylius\Bundle\ResourceBundle\ResourceBundleInterface;
12
use Sylius\Bundle\ResourceBundle\SyliusResourceBundle;
13
use Symfony\Component\DependencyInjection\ContainerBuilder;
14
15
/**
16
 * @author Diego D'amico <[email protected]>
17
 */
18
final class OdiseoSyliusReportPlugin extends AbstractResourceBundle
19
{
20
    use SyliusPluginTrait;
21
22
    protected $mappingFormat = ResourceBundleInterface::MAPPING_YAML;
23
24
    /**
25
     * {@inheritdoc}
26
     */
27
    public function getSupportedDrivers(): array
28
    {
29
        return [
30
            SyliusResourceBundle::DRIVER_DOCTRINE_ORM,
31
        ];
32
    }
33
34
    /**
35
     * {@inheritdoc}
36
     */
37
    public function build(ContainerBuilder $container): void
38
    {
39
        parent::build($container);
40
41
        $container->addCompilerPass(new RegisterDataFetchersPass());
42
        $container->addCompilerPass(new RegisterRenderersPass());
43
    }
44
45
    /**
46
     * {@inheritdoc}
47
     */
48
    protected function getModelNamespace(): ?string
49
    {
50
        return 'Odiseo\SyliusReportPlugin\Model';
51
    }
52
}
53