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.

ArticleTypeExtension::getExtendedTypes()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Odiseo\SyliusBlogPlugin\Form\Extension;
6
7
use Odiseo\BlogBundle\Form\Type\ArticleType;
8
use Sylius\Bundle\ChannelBundle\Form\Type\ChannelChoiceType;
9
use Symfony\Component\Form\AbstractTypeExtension;
10
use Symfony\Component\Form\FormBuilderInterface;
11
12
final class ArticleTypeExtension extends AbstractTypeExtension
13
{
14
    /**
15
     * {@inheritdoc}
16
     */
17
    public function buildForm(FormBuilderInterface $builder, array $options): void
18
    {
19
        parent::buildForm($builder, $options);
20
21
        $builder
22
            ->add('channels', ChannelChoiceType::class, [
23
                'multiple' => true,
24
                'expanded' => true,
25
                'label' => 'odiseo_sylius_blog_plugin.form.article.channels',
26
            ])
27
        ;
28
    }
29
30
    /**
31
     * {@inheritdoc}
32
     */
33
    public static function getExtendedTypes(): iterable
34
    {
35
        return [ArticleType::class];
36
    }
37
}
38