Code Duplication    Length = 10-10 lines in 3 locations

tests/seeds/AddFreshSeeds.php 3 locations

@@ 78-87 (lines=10) @@
75
        }
76
    }
77
78
    private function createCountryTranslations($translations)
79
    {
80
        foreach ($translations as $data) {
81
            $translation = new CountryTranslation();
82
            $translation->country_id = $data['country_id'];
83
            $translation->locale = $data['locale'];
84
            $translation->name = $data['name'];
85
            $translation->save();
86
        }
87
    }
88
89
    private function createCities($cities)
90
    {
@@ 99-108 (lines=10) @@
96
        }
97
    }
98
99
    private function createCityTranslations($translations)
100
    {
101
        foreach ($translations as $data) {
102
            $translation = new CityTranslation();
103
            $translation->city_id = $data['city_id'];
104
            $translation->locale = $data['locale'];
105
            $translation->name = $data['name'];
106
            $translation->save();
107
        }
108
    }
109
110
    private function createVegetables($vegetables)
111
    {
@@ 119-128 (lines=10) @@
116
        }
117
    }
118
119
    private function createVegetableTranslations($translations)
120
    {
121
        foreach ($translations as $data) {
122
            $translation = new VegetableTranslation();
123
            $translation->vegetable_identity = $data['vegetable_identity'];
124
            $translation->locale = $data['locale'];
125
            $translation->name = $data['name'];
126
            $translation->save();
127
        }
128
    }
129
}
130