Code Duplication    Length = 19-19 lines in 2 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