Code Duplication    Length = 9-9 lines in 2 locations

src/Config.php 2 locations

@@ 86-94 (lines=9) @@
83
     */
84
    public function getRelationExpression($entityName, $joinEntityName)
85
    {
86
        if (!isset($this->entityMap[$entityName]['relations'][$joinEntityName])) {
87
            throw new ConfigException(
88
                sprintf(
89
                    "entity_map for %s not configured with relation %s",
90
                    $entityName,
91
                    $joinEntityName
92
                )
93
            );
94
        }
95
96
        if (!isset($this->entityMap[$entityName]['relations'][$joinEntityName][0])
97
            || !isset($this->entityMap[$entityName]['relations'][$joinEntityName][1])) {
@@ 118-126 (lines=9) @@
115
     */
116
    public function isRelationManyToMany($entityName, $joinEntityName)
117
    {
118
        if (!isset($this->entityMap[$entityName]['relations'][$joinEntityName])) {
119
            throw new ConfigException(
120
                sprintf(
121
                    "entity_map for %s not configured with relation %s",
122
                    $entityName,
123
                    $joinEntityName
124
                )
125
            );
126
        }
127
128
        if (!isset($this->entityMap[$entityName]['relations'][$joinEntityName][0])
129
            || !isset($this->entityMap[$entityName]['relations'][$joinEntityName][1])