Skip to content

Commit 37675cc

Browse files
committed
Fixed code style. Changed DataInstallerFactory FQDN by Import.
1 parent b7cec7d commit 37675cc

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

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

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@
99
namespace Magento\Directory\Setup\Patch\Data;
1010

1111
use Magento\Directory\Setup\DataInstaller;
12+
use Magento\Directory\Setup\DataInstallerFactory;
1213
use Magento\Framework\Setup\ModuleDataSetupInterface;
1314
use Magento\Framework\Setup\Patch\DataPatchInterface;
1415

1516
/**
16-
* Class AddDataForUruguay
17+
* Add Uruguay States/Regions
1718
*/
1819
class AddDataForUruguay implements DataPatchInterface
1920
{
@@ -23,24 +24,24 @@ class AddDataForUruguay implements DataPatchInterface
2324
private $moduleDataSetup;
2425

2526
/**
26-
* @var \Magento\Directory\Setup\DataInstallerFactory
27+
* @var DataInstallerFactory
2728
*/
2829
private $dataInstallerFactory;
2930

3031
/**
3132
* @param ModuleDataSetupInterface $moduleDataSetup
32-
* @param \Magento\Directory\Setup\DataInstallerFactory $dataInstallerFactory
33+
* @param DataInstallerFactory $dataInstallerFactory
3334
*/
3435
public function __construct(
3536
ModuleDataSetupInterface $moduleDataSetup,
36-
\Magento\Directory\Setup\DataInstallerFactory $dataInstallerFactory
37+
DataInstallerFactory $dataInstallerFactory
3738
) {
3839
$this->moduleDataSetup = $moduleDataSetup;
3940
$this->dataInstallerFactory = $dataInstallerFactory;
4041
}
4142

4243
/**
43-
* @inheritdoc
44+
* @return $this|AddDataForUruguay
4445
*/
4546
public function apply()
4647
{
@@ -50,14 +51,16 @@ public function apply()
5051
$this->moduleDataSetup->getConnection(),
5152
$this->getDataForUruguay()
5253
);
54+
55+
return $this;
5356
}
5457

5558
/**
5659
* Uruguay states data.
5760
*
5861
* @return array
5962
*/
60-
private function getDataForUruguay()
63+
private function getDataForUruguay(): array
6164
{
6265
return [
6366
['UY', 'UY-AR', 'Artigas'],
@@ -84,8 +87,9 @@ private function getDataForUruguay()
8487

8588
/**
8689
* @inheritdoc
90+
* @return array
8791
*/
88-
public static function getDependencies()
92+
public static function getDependencies(): array
8993
{
9094
return [
9195
InitializeDirectoryData::class,
@@ -94,8 +98,9 @@ public static function getDependencies()
9498

9599
/**
96100
* @inheritdoc
101+
* @return array
97102
*/
98-
public function getAliases()
103+
public function getAliases(): array
99104
{
100105
return [];
101106
}

0 commit comments

Comments
 (0)