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.
Completed
Push — master ( 4e5d62...968367 )
by
unknown
04:06
created

ProductTypeExtension::getExtendedType()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Odiseo\SyliusVendorPlugin\Form\Extension;
4
5
use Odiseo\SyliusVendorPlugin\Form\Type\VendorChoiceType;
6
use Sylius\Bundle\ProductBundle\Form\Type\ProductType;
7
use Symfony\Component\Form\AbstractTypeExtension;
8
use Symfony\Component\Form\FormBuilderInterface;
9
10
class ProductTypeExtension extends AbstractTypeExtension
11
{
12
    public function buildForm(FormBuilderInterface $builder, array $options)
13
    {
14
        $builder->add('vendors', VendorChoiceType::class, [
15
            'multiple' => true,
16
            'expanded' => false,
17
            'attr' => [
18
                'class' => 'fluid search selection'
19
            ],
20
            'label' => 'odiseo_sylius_vendor.form.product.select_vendors',
21
        ]);
22
    }
23
24
    /**
25
     * {@inheritdoc}
26
     */
27
    public function getExtendedType(): string
28
    {
29
        return ProductType::class;
30
    }
31
}
32