Code Duplication    Length = 11-11 lines in 2 locations

src/RunOpenCode/Bundle/QueryResourcesLoader/Twig/DoctrineOrmExtension.php 2 locations

@@ 37-47 (lines=11) @@
34
    /**
35
     * {@inheritdoc}
36
     */
37
    public function getFunctions()
38
    {
39
        return array(
40
            new \Twig_SimpleFunction('table_name', \Closure::bind(function($entity) {
41
                return $this->getTableName($entity);
42
            }, $this)),
43
            new \Twig_SimpleFunction('column_name', \Closure::bind(function($field, $entity) {
44
                return $this->getColumnName($field, $entity);
45
            }, $this))
46
        );
47
    }
48
49
    public function getFilters()
50
    {
@@ 49-59 (lines=11) @@
46
        );
47
    }
48
49
    public function getFilters()
50
    {
51
        return array(
52
            new \Twig_SimpleFilter('table_name', \Closure::bind(function($entity) {
53
                return $this->getTableName($entity);
54
            }, $this)),
55
            new \Twig_SimpleFilter('column_name', \Closure::bind(function($field, $entity) {
56
                return $this->getColumnName($field, $entity);
57
            }, $this))
58
        );
59
    }
60
61
    private function getTableName($entity)
62
    {