Skip to content

Commit 8ba2ba3

Browse files
committed
Updated coding standard for static test
1 parent 4125233 commit 8ba2ba3

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

app/code/Magento/Usps/Helper/Data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Data extends AbstractHelper
2020
protected $availableShippingMethods = [
2121
'usps_0_FCLE', // First-Class Mail Large Envelope
2222
'usps_1', // Priority Mail
23-
'usps_2', // Priority Mail Express Hold For Pickup
23+
'usps_2', // Priority Mail Express Hold For Pickup
2424
'usps_3', // Priority Mail Express
2525
'usps_4', // Retail Ground
2626
'usps_6', // Media Mail

app/code/Magento/Usps/Model/Carrier.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -819,9 +819,7 @@ public function getCode($type, $code = '')
819819
'2058' => __('Ground Advantage #8482 Hold for pickup'),
820820
'4058' => __('Ground Advantage #8482 HAZMAT'),
821821
'6058' => __('Ground Advantage #8482 Parcel locker'),
822-
'1058' => __('Ground Advantage #8482'),
823822
'2058' => __('Ground Advantage #8482 Hold for pickup'),
824-
'4058' => __('Ground Advantage #8482 HAZMAT'),
825823
'4096' => __('Ground Advantage #8482 Cubic HAZMAT'),
826824
'1096' => __('Ground Advantage #8482 Cubic'),
827825
'2096' => __('Ground Advantage #8482 Cubic Hold for pickup'),

app/code/Magento/Usps/Setup/Patch/Data/UpdateAllowedMethods.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
use Magento\Framework\Setup\Patch\PatchVersionInterface;
1212

1313
/**
14-
* Class UpdateAllowedMethods
15-
* @package Magento\Usps\Setup\Patch
14+
* Updates all methods on the configuration
1615
*/
1716
class UpdateAllowedMethods implements DataPatchInterface, PatchVersionInterface
1817
{
@@ -33,7 +32,7 @@ public function __construct(
3332
}
3433

3534
/**
36-
* {@inheritdoc}
35+
* @inheritdoc
3736
*/
3837
public function apply()
3938
{
@@ -114,26 +113,27 @@ public function apply()
114113
$connection->update($configDataTable, ['value' => $newValue], $whereConfigId);
115114
}
116115
}
116+
return $this;
117117
}
118118

119119
/**
120-
* {@inheritdoc}
120+
* @inheritdoc
121121
*/
122122
public static function getDependencies()
123123
{
124124
return [];
125125
}
126126

127127
/**
128-
* {@inheritdoc}
128+
* @inheritdoc
129129
*/
130130
public static function getVersion()
131131
{
132132
return '2.0.1';
133133
}
134134

135135
/**
136-
* {@inheritdoc}
136+
* @inheritdoc
137137
*/
138138
public function getAliases()
139139
{

app/code/Magento/Usps/Test/Unit/Model/CarrierTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class CarrierTest extends TestCase
9090
private $config = [
9191
'carriers/usps/allowed_methods' => '0_FCLE,0_FCL,0_FCP,1,2,3,4,6,7,9,13,16,17,22,23,25,27,28,33,' .
9292
'34,35,36,37,42,43,53,55,56,57,61,INT_1,INT_2,INT_4,INT_6,INT_7,INT_8,INT_9,INT_10,INT_11,' .
93-
'INT_12,INT_13,INT_14,INT_15,INT_16,INT_20,INT_26,1058,2058,4058,6058,1058,2058,4058,4096,' .
93+
'INT_12,INT_13,INT_14,INT_15,INT_16,INT_20,INT_26,1058,2058,4058,6058,1058,2058,4058,4096,' .
9494
'1096,2096,6096',
9595
'carriers/usps/showmethod' => 1,
9696
'carriers/usps/debug' => 1,

0 commit comments

Comments
 (0)