Code Duplication    Length = 9-9 lines in 2 locations

src/Config.php 2 locations

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