Skip to content

Commit 9d41780

Browse files
committed
Add regions for Belarus
1 parent f0c7eea commit 9d41780

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

app/code/Magento/Directory/Setup/Patch/Data/AddDataForBelarus.php

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,20 @@ public function __construct(
4040
}
4141

4242
/**
43-
* @inheritdoc
43+
* Add country-region data for Belarus.
44+
*
45+
* @return $this
4446
*/
45-
public function apply()
47+
public function apply(): DataPatchInterface
4648
{
4749
/** @var DataInstaller $dataInstaller */
4850
$dataInstaller = $this->dataInstallerFactory->create();
4951
$dataInstaller->addCountryRegions(
5052
$this->moduleDataSetup->getConnection(),
5153
$this->getDataForBelarus()
5254
);
55+
56+
return $this;
5357
}
5458

5559
/**
@@ -71,19 +75,19 @@ private function getDataForBelarus(): array
7175
}
7276

7377
/**
74-
* @inheritdoc
78+
* {@inheritdoc}
7579
*/
76-
public static function getDependencies()
80+
public static function getDependencies(): array
7781
{
7882
return [
7983
InitializeDirectoryData::class,
8084
];
8185
}
8286

8387
/**
84-
* @inheritdoc
88+
* {@inheritdoc}
8589
*/
86-
public function getAliases()
90+
public function getAliases(): array
8791
{
8892
return [];
8993
}

0 commit comments

Comments
 (0)