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.

SoapExtension::getConfigKey()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 0 Features 1
Metric Value
c 3
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * @author Alexei Gorobet, <[email protected]>
4
 */
5
namespace Behat\SoapExtension\ServiceContainer;
6
7
use Behat\EnvironmentLoader;
8
use Behat\Testwork\ServiceContainer\Extension;
9
use Behat\Testwork\ServiceContainer\ExtensionManager;
10
use Symfony\Component\DependencyInjection\ContainerBuilder;
11
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
12
13
/**
14
 * Class SoapExtension.
15
 *
16
 * @package Behat\SoapExtension\ServiceContainer
17
 */
18
class SoapExtension implements Extension
19
{
20
    /**
21
     * {@inheritdoc}
22
     */
23
    public function getConfigKey()
24
    {
25
        return 'soap';
26
    }
27
28
    /**
29
     * {@inheritdoc}
30
     */
31
    public function initialize(ExtensionManager $extensionManager)
32
    {
33
    }
34
35
    /**
36
     * {@inheritdoc}
37
     */
38
    public function load(ContainerBuilder $container, array $config)
39
    {
40
        $loader = new EnvironmentLoader($this, $container, $config);
41
        $loader->load();
42
    }
43
44
    /**
45
     * {@inheritdoc}
46
     */
47
    public function process(ContainerBuilder $container)
48
    {
49
    }
50
51
    /**
52
     * {@inheritdoc}
53
     */
54
    public function configure(ArrayNodeDefinition $builder)
55
    {
56
        $config = $builder->children();
57
58
        foreach (['options', 'namespaces'] as $param) {
59
            $config->arrayNode($param)
60
                ->defaultValue([])
61
                ->prototype('scalar')
62
                ->end();
63
        }
64
65
        $config->end();
66
    }
67
}
68