Code Duplication    Length = 3-3 lines in 2 locations

src/relationships/ManyHaveManyRelationship.php 2 locations

@@ 88-90 (lines=3) @@
85
            $this->options['local_key'] = $this->setupPrimaryKey[0];
86
        }
87
88
        if (!isset($this->options['junction_local_key'])) {
89
            $this->options['junction_local_key'] = Text::singularize($this->setupTable).'_id';
90
        }
91
92
        if (!isset($this->options['junction_foreign_key'])) {
93
            $this->options['junction_foreign_key'] = Text::singularize($foreignModel->getDBStoreInformation()['table']).'_id';
@@ 92-94 (lines=3) @@
89
            $this->options['junction_local_key'] = Text::singularize($this->setupTable).'_id';
90
        }
91
92
        if (!isset($this->options['junction_foreign_key'])) {
93
            $this->options['junction_foreign_key'] = Text::singularize($foreignModel->getDBStoreInformation()['table']).'_id';
94
        }
95
    }
96
97
    public function preSave(&$wrapper, $value)