Code Duplication    Length = 9-9 lines in 2 locations

src/Config.php 2 locations

@@ 73-81 (lines=9) @@
70
     */
71
    public function getRelationExpression($entityName, $joinEntityName)
72
    {
73
        if (!isset($this->entityMap[$entityName]['relations'][$joinEntityName])) {
74
            throw new ConfigException(
75
                sprintf(
76
                    "entity_map for %s not configured with relation %s",
77
                    $entityName,
78
                    $joinEntityName
79
                )
80
            );
81
        }
82
83
        if (!isset($this->entityMap[$entityName]['relations'][$joinEntityName][0])
84
            || !isset($this->entityMap[$entityName]['relations'][$joinEntityName][1])) {
@@ 105-113 (lines=9) @@
102
     */
103
    public function isRelationManyToMany($entityName, $joinEntityName)
104
    {
105
        if (!isset($this->entityMap[$entityName]['relations'][$joinEntityName])) {
106
            throw new ConfigException(
107
                sprintf(
108
                    "entity_map for %s not configured with relation %s",
109
                    $entityName,
110
                    $joinEntityName
111
                )
112
            );
113
        }
114
115
        if (!isset($this->entityMap[$entityName]['relations'][$joinEntityName][0])
116
            || !isset($this->entityMap[$entityName]['relations'][$joinEntityName][1])