Code Duplication    Length = 9-9 lines in 2 locations

code/model/translations/CountryPrice_Translation.php 2 locations

@@ 281-289 (lines=9) @@
278
                                    'ParentID' => $buyable->ID
279
                                );
280
                                $ecommerceCountries[$countryObject->ID] = $countryObject;
281
                                if (! CountryPrice_Translation::get()->filter($filter)->first()) {
282
                                    DB::alteration_message(
283
                                        'Creating fake translation for '.$buyable->Title.' for country '.$countryObject->Code,
284
                                        'created'
285
                                    );
286
                                    $obj = CountryPrice_Translation::create($filter);
287
                                    $obj->WithoutTranslation = true;
288
                                    $obj->write();
289
                                }
290
                            }
291
                        }
292
                    }
@@ 302-310 (lines=9) @@
299
                            'EcommerceCountryID' => $countryObject->ID,
300
                            'ParentID' => $productGroup->ID
301
                        );
302
                        if (! CountryPrice_Translation::get()->filter($filter)->first()) {
303
                            DB::alteration_message(
304
                                'Creating fake translation for '.$productGroup->Title.' for country '.$countryObject->Code,
305
                                'created'
306
                            );
307
                            $obj = CountryPrice_Translation::create($filter);
308
                            $obj->WithoutTranslation = true;
309
                            $obj->write();
310
                        }
311
                    }
312
                }
313
            }