Skip to content

Commit d0e0605

Browse files
committed
fix static
1 parent e5ab51f commit d0e0605

12 files changed

+73
-56
lines changed

app/code/Magento/Customer/Setup/Patch/Data/AddCustomerUpdatedAtAttribute.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
76
declare(strict_types=1);
87

98
namespace Magento\Customer\Setup\Patch\Data;
@@ -42,7 +41,7 @@ public function __construct(
4241
}
4342

4443
/**
45-
* {@inheritdoc}
44+
* @inheritdoc
4645
*/
4746
public function apply()
4847
{
@@ -60,10 +59,12 @@ public function apply()
6059
'system' => false,
6160
]
6261
);
62+
63+
return $this;
6364
}
6465

6566
/**
66-
* {@inheritdoc}
67+
* @inheritdoc
6768
*/
6869
public static function getDependencies()
6970
{
@@ -73,15 +74,15 @@ public static function getDependencies()
7374
}
7475

7576
/**
76-
* {@inheritdoc}
77+
* @inheritdoc
7778
*/
7879
public static function getVersion()
7980
{
8081
return '2.0.4';
8182
}
8283

8384
/**
84-
* {@inheritdoc}
85+
* @inheritdoc
8586
*/
8687
public function getAliases()
8788
{

app/code/Magento/Customer/Setup/Patch/Data/AddNonSpecifiedGenderAttributeOption.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
76
declare(strict_types=1);
87

98
namespace Magento\Customer\Setup\Patch\Data;
@@ -42,7 +41,7 @@ public function __construct(
4241
}
4342

4443
/**
45-
* {@inheritdoc}
44+
* @inheritdoc
4645
*/
4746
public function apply()
4847
{
@@ -52,10 +51,12 @@ public function apply()
5251

5352
$option = ['attribute_id' => $attributeId, 'values' => [3 => 'Not Specified']];
5453
$customerSetup->addAttributeOption($option);
54+
55+
return $this;
5556
}
5657

5758
/**
58-
* {@inheritdoc}
59+
* @inheritdoc
5960
*/
6061
public static function getDependencies()
6162
{
@@ -65,15 +66,15 @@ public static function getDependencies()
6566
}
6667

6768
/**
68-
* {@inheritdoc}
69+
* @inheritdoc
6970
*/
7071
public static function getVersion()
7172
{
7273
return '2.0.2';
7374
}
7475

7576
/**
76-
* {@inheritdoc}
77+
* @inheritdoc
7778
*/
7879
public function getAliases()
7980
{

app/code/Magento/Customer/Setup/Patch/Data/AddSecurityTrackingAttributes.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
76
declare(strict_types=1);
87

98
namespace Magento\Customer\Setup\Patch\Data;
@@ -42,7 +41,7 @@ public function __construct(
4241
}
4342

4443
/**
45-
* {@inheritdoc}
44+
* @inheritdoc
4645
*/
4746
public function apply()
4847
{
@@ -93,12 +92,14 @@ public function apply()
9392
$this->moduleDataSetup->getConnection()->update(
9493
$configTable,
9594
['value' => new \Zend_Db_Expr('value*24')],
96-
['path = ?' => \Magento\Customer\Model\Customer::XML_PATH_CUSTOMER_RESET_PASSWORD_LINK_EXPIRATION_PERIOD]
95+
['path = ?' => Customer::XML_PATH_CUSTOMER_RESET_PASSWORD_LINK_EXPIRATION_PERIOD]
9796
);
97+
98+
return $this;
9899
}
99100

100101
/**
101-
* {@inheritdoc}
102+
* @inheritdoc
102103
*/
103104
public static function getDependencies()
104105
{
@@ -108,15 +109,15 @@ public static function getDependencies()
108109
}
109110

110111
/**
111-
* {@inheritdoc}
112+
* @inheritdoc
112113
*/
113114
public static function getVersion()
114115
{
115116
return '2.0.7';
116117
}
117118

118119
/**
119-
* {@inheritdoc}
120+
* @inheritdoc
120121
*/
121122
public function getAliases()
122123
{

app/code/Magento/Customer/Setup/Patch/Data/ConvertValidationRulesFromSerializedToJson.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
76
declare(strict_types=1);
87

98
namespace Magento\Customer\Setup\Patch\Data;
@@ -42,7 +41,7 @@ public function __construct(
4241
}
4342

4443
/**
45-
* {@inheritdoc}
44+
* @inheritdoc
4645
*/
4746
public function apply()
4847
{
@@ -53,10 +52,12 @@ public function apply()
5352
'attribute_id',
5453
'validate_rules'
5554
);
55+
56+
return $this;
5657
}
5758

5859
/**
59-
* {@inheritdoc}
60+
* @inheritdoc
6061
*/
6162
public static function getDependencies()
6263
{
@@ -66,15 +67,15 @@ public static function getDependencies()
6667
}
6768

6869
/**
69-
* {@inheritdoc}
70+
* @inheritdoc
7071
*/
7172
public static function getVersion()
7273
{
7374
return '2.0.11';
7475
}
7576

7677
/**
77-
* {@inheritdoc}
78+
* @inheritdoc
7879
*/
7980
public function getAliases()
8081
{

app/code/Magento/Customer/Setup/Patch/Data/DefaultCustomerGroupsAndAttributes.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ public function __construct(
4444
}
4545

4646
/**
47-
* {@inheritdoc}
47+
* @inheritdoc
48+
*
4849
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
4950
*/
5051
public function apply()
@@ -146,26 +147,28 @@ public function apply()
146147
['attribute_id']
147148
);
148149
$migrationSetup->doUpdateClassAliases();
150+
151+
return $this;
149152
}
150153

151154
/**
152-
* {@inheritdoc}
155+
* @inheritdoc
153156
*/
154157
public static function getDependencies()
155158
{
156159
return [];
157160
}
158161

159162
/**
160-
* {@inheritdoc}
163+
* @inheritdoc
161164
*/
162165
public static function getVersion()
163166
{
164167
return '2.0.0';
165168
}
166169

167170
/**
168-
* {@inheritdoc}
171+
* @inheritdoc
169172
*/
170173
public function getAliases()
171174
{

app/code/Magento/Customer/Setup/Patch/Data/MigrateStoresAllowedCountriesToWebsite.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
76
declare(strict_types=1);
87

98
namespace Magento\Customer\Setup\Patch\Data;
@@ -53,6 +52,7 @@ public function __construct(
5352

5453
/**
5554
* @inheritdoc
55+
*
5656
* @throws Exception
5757
*/
5858
public function apply()
@@ -67,6 +67,8 @@ public function apply()
6767
$this->moduleDataSetup->getConnection()->rollBack();
6868
throw $e;
6969
}
70+
71+
return $this;
7072
}
7173

7274
/**

app/code/Magento/Customer/Setup/Patch/Data/RemoveCheckoutRegisterAndUpdateAttributes.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
76
declare(strict_types=1);
87

98
namespace Magento\Customer\Setup\Patch\Data;
@@ -47,7 +46,7 @@ public function __construct(
4746
}
4847

4948
/**
50-
* {@inheritdoc}
49+
* @inheritdoc
5150
*/
5251
public function apply()
5352
{
@@ -99,10 +98,12 @@ public function apply()
9998
'source_model',
10099
Address\Attribute\Source\Region::class
101100
);
101+
102+
return $this;
102103
}
103104

104105
/**
105-
* {@inheritdoc}
106+
* @inheritdoc
106107
*/
107108
public static function getDependencies()
108109
{
@@ -112,15 +113,15 @@ public static function getDependencies()
112113
}
113114

114115
/**
115-
* {@inheritdoc}
116+
* @inheritdoc
116117
*/
117118
public static function getVersion()
118119
{
119120
return '2.0.6';
120121
}
121122

122123
/**
123-
* {@inheritdoc}
124+
* @inheritdoc
124125
*/
125126
public function getAliases()
126127
{

app/code/Magento/Customer/Setup/Patch/Data/UpdateAutocompleteOnStorefrontConfigPath.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
76
declare(strict_types=1);
87

98
namespace Magento\Customer\Setup\Patch\Data;
@@ -33,7 +32,7 @@ public function __construct(
3332
}
3433

3534
/**
36-
* {@inheritdoc}
35+
* @inheritdoc
3736
*/
3837
public function apply()
3938
{
@@ -42,10 +41,12 @@ public function apply()
4241
['path' => Form::XML_PATH_ENABLE_AUTOCOMPLETE],
4342
['path = ?' => 'general/restriction/autocomplete_on_storefront']
4443
);
44+
45+
return $this;
4546
}
4647

4748
/**
48-
* {@inheritdoc}
49+
* @inheritdoc
4950
*/
5051
public static function getDependencies()
5152
{
@@ -55,15 +56,15 @@ public static function getDependencies()
5556
}
5657

5758
/**
58-
* {@inheritdoc}
59+
* @inheritdoc
5960
*/
6061
public static function getVersion()
6162
{
6263
return '2.0.8';
6364
}
6465

6566
/**
66-
* {@inheritdoc}
67+
* @inheritdoc
6768
*/
6869
public function getAliases()
6970
{

0 commit comments

Comments
 (0)