Skip to content

Commit c27a56a

Browse files
committed
#12378: Regions list in Directory module for India
1 parent 5c36f98 commit c27a56a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

app/code/Magento/Directory/Setup/UpgradeData.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ public function __construct(Data $directoryData)
4141
public function upgrade(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
4242
{
4343
if (version_compare($context->getVersion(), '2.0.1', '<')) {
44-
$this->addCountry($setup, $this->getCroatianData());
44+
$this->addCountryRegions($setup, $this->getDataForCroatia());
4545
}
4646
if (version_compare($context->getVersion(), '2.0.2', '<')) {
47-
$this->addCountry($setup, $this->getIndianData());
47+
$this->addCountryRegions($setup, $this->getDataForIndia());
4848
}
4949
}
5050

@@ -53,7 +53,7 @@ public function upgrade(ModuleDataSetupInterface $setup, ModuleContextInterface
5353
*
5454
* @return array
5555
*/
56-
private function getCroatianData()
56+
private function getDataForCroatia()
5757
{
5858
return [
5959
['HR', 'HR-01', 'Zagrebačka županija'],
@@ -85,7 +85,7 @@ private function getCroatianData()
8585
*
8686
* @return array
8787
*/
88-
private function getIndianData()
88+
private function getDataForIndia()
8989
{
9090
return [
9191
['IN', 'AN', 'Andaman and Nicobar Islands'],
@@ -128,13 +128,13 @@ private function getIndianData()
128128
}
129129

130130
/**
131-
* Add country data to appropriate tables.
131+
* Add country regions data to appropriate tables.
132132
*
133133
* @param ModuleDataSetupInterface $setup
134134
* @param array $data
135135
* @return void
136136
*/
137-
private function addCountry(ModuleDataSetupInterface $setup, array $data)
137+
private function addCountryRegions(ModuleDataSetupInterface $setup, array $data)
138138
{
139139
/**
140140
* Fill table directory/country_region

0 commit comments

Comments
 (0)