Code Duplication    Length = 5-5 lines in 2 locations

tests/TranslatableTest.php 2 locations

@@ 546-550 (lines=5) @@
543
544
        $modelTranslations = [];
545
546
        foreach ($country->translations as $translation) {
547
            foreach ($country->translatedAttributes as $attr) {
548
                $modelTranslations[$translation->locale][$attr] = $translation->{$attr};
549
            }
550
        }
551
552
        $expectedTranslations = [
553
            'en' => ['name' => 'Ukraine']
@@ 572-576 (lines=5) @@
569
570
        $modelTranslations = [];
571
572
        foreach ($country->translations as $translation) {
573
            foreach ($country->translatedAttributes as $attr) {
574
                $modelTranslations[$translation->locale][$attr] = $translation->{$attr};
575
            }
576
        }
577
578
        $expectedTranslations = [
579
            'en' => ['name' => 'Ukraine']