Code Duplication    Length = 19-20 lines in 3 locations

Column/StringType.php 1 location

@@ 19-37 (lines=19) @@
16
 * @package Cwd\FancyGridBundle\Column
17
 * @author Ludwig Ruderstaler <[email protected]>
18
 */
19
class StringType extends AbstractColumn
20
{
21
    /**
22
     * {@inheritdoc}
23
     */
24
    public function configureOptions(OptionsResolver $resolver)
25
    {
26
        parent::configureOptions($resolver);
27
28
        $resolver->setDefaults(array(
29
            'align' => 'left',
30
            'cellAlign' => 'left',
31
            'format' => 'number',
32
            'type' => 'string',
33
        ));
34
35
        $resolver->setAllowedTypes('attr', 'array');
36
    }
37
}
38

Column/TextType.php 1 location

@@ 20-38 (lines=19) @@
17
 * @package Cwd\FancyGridBundle\Column
18
 * @author Ludwig Ruderstaler <[email protected]>
19
 */
20
class TextType extends AbstractColumn
21
{
22
    /**
23
     * {@inheritdoc}
24
     */
25
    public function configureOptions(OptionsResolver $resolver)
26
    {
27
        parent::configureOptions($resolver);
28
29
        $resolver->setDefaults(array(
30
            'align' => 'left',
31
            'cellAlign' => 'left',
32
            'format' => 'number',
33
            'type' => 'string',
34
        ));
35
36
        $resolver->setAllowedTypes('attr', 'array');
37
    }
38
}
39

Column/CheckboxType.php 1 location

@@ 20-39 (lines=20) @@
17
 * @package Cwd\FancyGridBundle\Column
18
 * @author Ludwig Ruderstaler <[email protected]>
19
 */
20
class CheckboxType extends AbstractColumn
21
{
22
    /**
23
     * {@inheritdoc}
24
     */
25
    public function configureOptions(OptionsResolver $resolver)
26
    {
27
        parent::configureOptions($resolver);
28
29
        $resolver->setDefaults(array(
30
            'align' => 'center',
31
            'cellAlign' => 'center',
32
            'type' => 'checkbox',
33
            'summary' => null,
34
            'step' => null,
35
        ));
36
37
        $resolver->setAllowedTypes('attr', 'array');
38
    }
39
}
40