Code Duplication    Length = 5-5 lines in 2 locations

tests/TranslatableTest.php 2 locations

@@ 590-594 (lines=5) @@
587
588
        $modelTranslations = [];
589
590
        foreach ($country->translations as $translation) {
591
            foreach ($country->translatedAttributes as $attr) {
592
                $modelTranslations[$translation->locale][$attr] = $translation->{$attr};
593
            }
594
        }
595
596
        $expectedTranslations = [
597
            'en' => ['name' => 'Ukraine'],
@@ 616-620 (lines=5) @@
613
614
        $modelTranslations = [];
615
616
        foreach ($country->translations as $translation) {
617
            foreach ($country->translatedAttributes as $attr) {
618
                $modelTranslations[$translation->locale][$attr] = $translation->{$attr};
619
            }
620
        }
621
622
        $expectedTranslations = [
623
            'en' => ['name' => 'Ukraine'],