Code Duplication    Length = 4-4 lines in 2 locations

src/TreeHouse/IoBundle/Import/Feed/Type/DefaultFeedType.php 1 location

@@ 255-258 (lines=4) @@
252
253
        // see if we need to translate it using foreign mapping
254
        $foreignMapping = $this->getForeignMapping();
255
        if (array_key_exists($field, $foreignMapping)) {
256
            $transformer = new ForeignMappingTransformer($field, $foreignMapping[$field]);
257
            $this->addTransformerBetween($builder, $transformer, $field, $startIndex, $endIndex);
258
        }
259
260
        $this->addFieldTypeModifiers($builder, $field, $mapping, $startIndex, $endIndex);
261
    }

src/TreeHouse/IoBundle/Scrape/Parser/Type/AbstractParserType.php 1 location

@@ 310-313 (lines=4) @@
307
    ) {
308
        // see if we need to translate it using foreign mapping
309
        $foreignMapping = $this->getForeignMapping();
310
        if (array_key_exists($field, $foreignMapping)) {
311
            $transformer = new ForeignMappingTransformer($field, $foreignMapping[$field]);
312
            $parser->addTransformerBetween($transformer, $field, $startIndex, $endIndex);
313
        }
314
315
        $this->addFieldTypeModifiers($parser, $field, $mapping, $startIndex, $endIndex);
316
    }