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   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 9
c 1
b 0
f 0
dl 0
loc 33
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getModelNamespace() 0 3 1
A build() 0 6 1
A getSupportedDrivers() 0 4 1
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