Code Duplication    Length = 11-11 lines in 2 locations

Admin/CardAdmin.php 1 location

@@ 84-94 (lines=11) @@
81
     * @param  \Sonata\AdminBundle\Datagrid\DatagridMapper $datagridMapper
82
     * @return void
83
     */
84
    protected function configureDatagridFilters(DatagridMapper $datagridMapper)
85
    {
86
        $datagridMapper
87
                ->add('title', 'doctrine_orm_callback', array(
88
                    'callback'   => array($this, 'getSearchFilter'),
89
                    'field_type' => 'text'
90
                ))
91
                ->add('category')
92
                ->add('active')
93
        ;
94
    }
95
96
    /**
97
     * Configure the columns in list page.

Admin/CategoryAdmin.php 1 location

@@ 55-65 (lines=11) @@
52
     * @param  \Sonata\AdminBundle\Datagrid\DatagridMapper $datagridMapper
53
     * @return void
54
     */
55
    protected function configureDatagridFilters(DatagridMapper $datagridMapper)
56
    {
57
        $datagridMapper
58
                ->add('title', 'doctrine_orm_callback', array(
59
                    'callback'   => array($this, 'getSearchFilter'),
60
                    'field_type' => 'text'
61
                ))
62
                ->add('parent')
63
                ->add('active')
64
        ;
65
    }
66
67
    /**
68
     * Configure the columns in list page.