Passed
Push — master ( 94f019...83575f )
by
unknown
04:57
created

VendorFixture   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A configureResourceNode() 0 6 1
A getName() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Odiseo\SyliusVendorPlugin\Fixture;
6
7
use Sylius\Bundle\CoreBundle\Fixture\AbstractResourceFixture;
8
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
9
10
final class VendorFixture extends AbstractResourceFixture
11
{
12
    /**
13
     * {@inheritdoc}
14
     */
15
    protected function configureResourceNode(ArrayNodeDefinition $resourceNode): void
16
    {
17
        $resourceNode
18
            ->children()
19
                ->arrayNode('channels')->scalarPrototype()->end()->end()
0 ignored issues
show
Bug introduced by
The method end() does not exist on Symfony\Component\Config...der\NodeParentInterface. It seems like you code against a sub-type of said class. However, the method does not exist in Symfony\Component\Config...ion\Builder\TreeBuilder. Are you sure you never get one of those? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

19
                ->arrayNode('channels')->scalarPrototype()->end()->/** @scrutinizer ignore-call */ end()
Loading history...
20
                ->scalarNode('logo')->end()
21
        ;
22
    }
23
24
    /**
25
     * {@inheritdoc}
26
     */
27
    public function getName(): string
28
    {
29
        return 'vendor';
30
    }
31
}
32