Code Duplication    Length = 9-9 lines in 2 locations

src/Config.php 2 locations

@@ 60-68 (lines=9) @@
57
     */
58
    public function getRelationExpression($entityName, $joinEntityName)
59
    {
60
        if (!isset($this->entityMap[$entityName]['relations'][$joinEntityName])) {
61
            throw new ConfigException(
62
                sprintf(
63
                    "entity_map for %s not configured with relation %s",
64
                    $entityName,
65
                    $joinEntityName
66
                )
67
            );
68
        }
69
70
        if (!isset($this->entityMap[$entityName]['relations'][$joinEntityName][0])
71
            || !isset($this->entityMap[$entityName]['relations'][$joinEntityName][1])) {
@@ 92-100 (lines=9) @@
89
     */
90
    public function isRelationManyToMany($entityName, $joinEntityName)
91
    {
92
        if (!isset($this->entityMap[$entityName]['relations'][$joinEntityName])) {
93
            throw new ConfigException(
94
                sprintf(
95
                    "entity_map for %s not configured with relation %s",
96
                    $entityName,
97
                    $joinEntityName
98
                )
99
            );
100
        }
101
102
        if (!isset($this->entityMap[$entityName]['relations'][$joinEntityName][0])
103
            || !isset($this->entityMap[$entityName]['relations'][$joinEntityName][1])