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.

BlogArticleFixture::configureResourceNode()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 9
dl 0
loc 12
rs 9.9666
c 1
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Odiseo\SyliusBlogPlugin\Fixture;
6
7
use Sylius\Bundle\CoreBundle\Fixture\AbstractResourceFixture;
8
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
9
10
final class BlogArticleFixture extends AbstractResourceFixture
11
{
12
    /**
13
     * {@inheritdoc}
14
     */
15
    protected function configureResourceNode(ArrayNodeDefinition $resourceNode): void
16
    {
17
        $node = $resourceNode->children();
18
19
        $node->scalarNode('code')->cannotBeEmpty();
20
        $node->booleanNode('enabled');
21
        $node->arrayNode('channels')->scalarPrototype();
22
        $node->arrayNode('categories')->scalarPrototype();
23
        $node->scalarNode('title')->cannotBeEmpty();
24
        $node->scalarNode('content')->cannotBeEmpty();
25
        $node->scalarNode('slug')->cannotBeEmpty();
26
        $node->scalarNode('image');
27
    }
28
29
    /**
30
     * {@inheritdoc}
31
     */
32
    public function getName(): string
33
    {
34
        return 'blog_article';
35
    }
36
}
37