Passed
Push — develop ( bac6db...786581 )
by Ludwig
01:51
created

StringType::configureOptions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 8

Duplication

Lines 13
Ratio 100 %

Importance

Changes 0
Metric Value
dl 13
loc 13
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 8
nc 1
nop 1
1
<?php
2
/*
3
 * This file is part of cwdFancyGridBundle
4
 *
5
 * (c)2017 cwd.at GmbH <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
declare(strict_types=1);
11
namespace Cwd\FancyGridBundle\Column;
12
13
/**
14
 * Class TextType
15
 * @package Cwd\FancyGridBundle\Column
16
 * @author Ludwig Ruderstaler <[email protected]>
17
 */
18 View Code Duplication
class StringType extends AbstractColumn
1 ignored issue
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
19
{
20
    /**
21
     * {@inheritdoc}
22
     */
23
    public function configureOptions(OptionsResolver $resolver)
24
    {
25
        parent::configureOptions($resolver);
26
27
        $resolver->setDefaults(array(
28
            'align' => 'right',
29
            'cellAlign' => 'right',
30
            'format' => 'number',
31
            'type' => 'string',
32
        ));
33
34
        $resolver->setAllowedTypes('attr', 'array');
35
    }
36
}
37