Code Duplication    Length = 5-5 lines in 2 locations

tests/TranslatableTest.php 2 locations

@@ 631-635 (lines=5) @@
628
629
        $modelTranslations = [];
630
631
        foreach ($country->translations as $translation) {
632
            foreach ($country->translatedAttributes as $attr) {
633
                $modelTranslations[$translation->locale][$attr] = $translation->{$attr};
634
            }
635
        }
636
637
        $expectedTranslations = [
638
            'en' => ['name' => 'Ukraine'],
@@ 657-661 (lines=5) @@
654
655
        $modelTranslations = [];
656
657
        foreach ($country->translations as $translation) {
658
            foreach ($country->translatedAttributes as $attr) {
659
                $modelTranslations[$translation->locale][$attr] = $translation->{$attr};
660
            }
661
        }
662
663
        $expectedTranslations = [
664
            'en' => ['name' => 'Ukraine'],