Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 70-77 (lines=8) @@
67
     * @param string|object $entity Entity
68
     * @return string
69
     */
70
    protected function getTableName($entity)
71
    {
72
        if (is_object($entity)) {
73
            $entity = get_class($entity);
74
        }
75
76
        return $this->doctrine->getManagerForClass($entity)->getClassMetadata($entity)->getTableName();
77
    }
78
79
    /**
80
     * Get column name for property of the entity
@@ 86-93 (lines=8) @@
83
     * @param string|object $entity
84
     * @return string
85
     */
86
    protected function getColumnName($field, $entity)
87
    {
88
        if (is_object($entity)) {
89
            $entity = get_class($entity);
90
        }
91
92
        return $this->doctrine->getManagerForClass($entity)->getClassMetadata($entity)->getColumnName($field);
93
    }
94
}
95