Code Duplication    Length = 9-9 lines in 2 locations

Model/ResourceModel/Db/Collection/EavAttributeJoiner.php 2 locations

@@ 184-192 (lines=9) @@
181
                );
182
183
                $this->addRecordToJoinReturnData($entityTypeCode, $attributeCode, $typeTableAlias, self::VALUE_FIELD);
184
            } else {
185
                $collection->getSelect()->joinLeft(
186
                    [$entityTableAlias => $this->entityTable],
187
                    $mainTable . '.' . $foreignKeyName . ' = ' . $entityTableAlias . '.' . $this->entityBasicModelIdField,
188
                    [$entityTypeCode . '_' . $attributeCode => $attributeCode]
189
                );
190
191
                $this->addRecordToJoinReturnData($entityTypeCode, $attributeCode, $entityTableAlias, $attributeCode);
192
            }
193
        }
194
195
        return $this->joinReturnData;
@@ 256-264 (lines=9) @@
253
254
                $this->addRecordToJoinReturnData($entityTypeCode, $attributeCode, $typeTableAlias, self::VALUE_FIELD);
255
                $this->addRecordToJoinReturnData($entityTypeCode, $attributeCode, $typeTableAliasDefault, self::VALUE_FIELD);
256
            } else {
257
                $collection->getSelect()->joinLeft(
258
                    [$entityTableAlias => $this->entityTable],
259
                    $mainTable . '.' . $foreignKeyName . ' = ' . $entityTableAlias . '.' . $this->entityBasicModelIdField,
260
                    [$entityTypeCode . '_' . $attributeCode => $attributeCode]
261
                );
262
263
                $this->addRecordToJoinReturnData($entityTypeCode, $attributeCode, $entityTableAlias, $attributeCode);
264
            }
265
        }
266
267
        return $this->joinReturnData;