Code Duplication    Length = 6-6 lines in 2 locations

vendor/cakephp/cakephp/src/ORM/Association/BelongsToMany.php 2 locations

@@ 233-238 (lines=6) @@
230
        $junctionAlias = $junction->alias();
231
        $sAlias = $source->alias();
232
233
        if (!$target->association($junctionAlias)) {
234
            $target->hasMany($junctionAlias, [
235
                'targetTable' => $junction,
236
                'foreignKey' => $this->targetForeignKey(),
237
            ]);
238
        }
239
        if (!$target->association($sAlias)) {
240
            $target->belongsToMany($sAlias, [
241
                'sourceTable' => $target,
@@ 297-302 (lines=6) @@
294
        $tAlias = $target->alias();
295
        $sAlias = $source->alias();
296
297
        if (!$junction->association($tAlias)) {
298
            $junction->belongsTo($tAlias, [
299
                'foreignKey' => $this->targetForeignKey(),
300
                'targetTable' => $target
301
            ]);
302
        }
303
        if (!$junction->association($sAlias)) {
304
            $junction->belongsTo($sAlias, [
305
                'foreignKey' => $this->foreignKey(),