Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 108-116 (lines=9) @@
105
    /**
106
     * {@inheritdoc}
107
     */
108
    public function joinTableName($sourceEntity, $targetEntity, $propertyName = null)
109
    {
110
        $tableName = $this->classToTableName($sourceEntity).'_'.$this->classToTableName($targetEntity);
111
112
        return
113
            $tableName
114
            .
115
            (($this->joinTableFieldSuffix && null !== $propertyName) ? '_'.$this->propertyToColumnName($propertyName, $sourceEntity) : '');
116
    }
117
118
    /**
119
     * {@inheritdoc}

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

@@ 123-131 (lines=9) @@
120
    /**
121
     * {@inheritdoc}
122
     */
123
    public function joinTableName($sourceEntity, $targetEntity, $propertyName = null)
124
    {
125
        $tableName = $this->classToTableName($sourceEntity).'_'.$this->classToTableName($targetEntity);
126
127
        return
128
            $tableName
129
            .
130
            (($this->joinTableFieldSuffix && null !== $propertyName) ? '_'.$this->propertyToColumnName($propertyName, $sourceEntity) : '');
131
    }
132
133
    /**
134
     * {@inheritdoc}