@@ -41,10 +41,10 @@ public function __construct(Data $directoryData)
41
41
public function upgrade (ModuleDataSetupInterface $ setup , ModuleContextInterface $ context )
42
42
{
43
43
if (version_compare ($ context ->getVersion (), '2.0.1 ' , '< ' )) {
44
- $ this ->addCountry ($ setup , $ this ->getCroatianData ());
44
+ $ this ->addCountryRegions ($ setup , $ this ->getDataForCroatia ());
45
45
}
46
46
if (version_compare ($ context ->getVersion (), '2.0.2 ' , '< ' )) {
47
- $ this ->addCountry ($ setup , $ this ->getIndianData ());
47
+ $ this ->addCountryRegions ($ setup , $ this ->getDataForIndia ());
48
48
}
49
49
}
50
50
@@ -53,7 +53,7 @@ public function upgrade(ModuleDataSetupInterface $setup, ModuleContextInterface
53
53
*
54
54
* @return array
55
55
*/
56
- private function getCroatianData ()
56
+ private function getDataForCroatia ()
57
57
{
58
58
return [
59
59
['HR ' , 'HR-01 ' , 'Zagrebačka županija ' ],
@@ -85,7 +85,7 @@ private function getCroatianData()
85
85
*
86
86
* @return array
87
87
*/
88
- private function getIndianData ()
88
+ private function getDataForIndia ()
89
89
{
90
90
return [
91
91
['IN ' , 'AN ' , 'Andaman and Nicobar Islands ' ],
@@ -128,13 +128,13 @@ private function getIndianData()
128
128
}
129
129
130
130
/**
131
- * Add country data to appropriate tables.
131
+ * Add country regions data to appropriate tables.
132
132
*
133
133
* @param ModuleDataSetupInterface $setup
134
134
* @param array $data
135
135
* @return void
136
136
*/
137
- private function addCountry (ModuleDataSetupInterface $ setup , array $ data )
137
+ private function addCountryRegions (ModuleDataSetupInterface $ setup , array $ data )
138
138
{
139
139
/**
140
140
* Fill table directory/country_region
0 commit comments