Code Duplication    Length = 5-5 lines in 2 locations

tests/TranslatableTest.php 2 locations

@@ 565-569 (lines=5) @@
562
563
        $modelTranslations = [];
564
565
        foreach ($country->translations as $translation) {
566
            foreach ($country->translatedAttributes as $attr) {
567
                $modelTranslations[$translation->locale][$attr] = $translation->{$attr};
568
            }
569
        }
570
571
        $expectedTranslations = [
572
            'en' => ['name' => 'Ukraine'],
@@ 591-595 (lines=5) @@
588
589
        $modelTranslations = [];
590
591
        foreach ($country->translations as $translation) {
592
            foreach ($country->translatedAttributes as $attr) {
593
                $modelTranslations[$translation->locale][$attr] = $translation->{$attr};
594
            }
595
        }
596
597
        $expectedTranslations = [
598
            'en' => ['name' => 'Ukraine'],