Code Duplication    Length = 7-7 lines in 2 locations

src/RunOpenCode/Bundle/DoctrineNamingStrategy/NamingStrategy/UnderscoredBundleNamePrefix.php 1 location

@@ 59-65 (lines=7) @@
56
    /**
57
     * {@inheritdoc}
58
     */
59
    public function joinTableName($sourceEntity, $targetEntity, $propertyName = null)
60
    {
61
        return
62
            parent::joinTableName($sourceEntity, $targetEntity, $propertyName)
63
            .
64
            (($this->joinTableFieldSuffix && !empty($propertyName)) ? '_' . $this->propertyToColumnName($propertyName, $sourceEntity) : '');
65
    }
66
67
    /**
68
     * Build bundle naming map.

src/RunOpenCode/Bundle/DoctrineNamingStrategy/NamingStrategy/UnderscoredClassNamespacePrefix.php 1 location

@@ 70-76 (lines=7) @@
67
    /**
68
     * {@inheritdoc}
69
     */
70
    public function joinTableName($sourceEntity, $targetEntity, $propertyName = null)
71
    {
72
        return
73
            parent::joinTableName($sourceEntity, $targetEntity, $propertyName)
74
            .
75
            (($this->joinTableFieldSuffix && !empty($propertyName)) ? '_' . $this->propertyToColumnName($propertyName, $sourceEntity) : '');
76
    }
77
78
    /**
79
     * Find prefix for table from map.