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.

ArticleTranslationType   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A buildForm() 0 22 1
A getBlockPrefix() 0 3 1
1
<?php
2
3
namespace Odiseo\BlogBundle\Form\Type;
4
5
use FOS\CKEditorBundle\Form\Type\CKEditorType;
6
use Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType;
7
use Symfony\Component\Form\Extension\Core\Type\TextType;
8
use Symfony\Component\Form\FormBuilderInterface;
9
10
/**
11
 * @author Diego D'amico <[email protected]>
12
 */
13
final class ArticleTranslationType extends AbstractResourceType
14
{
15
    /**
16
     * {@inheritdoc}
17
     */
18
    public function buildForm(FormBuilderInterface $builder, array $options)
19
    {
20
        $builder
21
            ->add('slug', TextType::class, [
22
                'label' => 'odiseo_blog.form.article.slug',
23
                'required' => true,
24
            ])
25
            ->add('title', TextType::class, [
26
                'label' => 'odiseo_blog.form.article.title',
27
                'required' => true,
28
            ])
29
            ->add('content', CKEditorType::class, [
30
                'label' => 'odiseo_blog.form.article.content',
31
                'required' => true,
32
            ])
33
            ->add('metaKeywords', TextType::class, [
34
                'label' => 'odiseo_blog.form.article.metaKeywords',
35
                'required' => false,
36
            ])
37
            ->add('metaDescription', TextType::class, [
38
                'label' => 'odiseo_blog.form.article.metaDescription',
39
                'required' => false,
40
            ])
41
        ;
42
    }
43
44
    /**
45
     * {@inheritdoc}
46
     */
47
    public function getBlockPrefix()
48
    {
49
        return 'odiseo_blog_article_translation';
50
    }
51
}
52