File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
app/code/Magento/Ups/Model Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -1320,13 +1320,11 @@ public function getAllowedMethods()
1320
1320
? $ this ->configHelper ->getCode ('originShipment ' , $ origin )
1321
1321
: $ this ->configHelper ->getCode ('method ' );
1322
1322
1323
- $ filteredMethods = array_filter ($ availableByTypeMethods , function ($ methodCode ) use ($ allowedMethods ) {
1324
- return in_array ($ methodCode , $ allowedMethods );
1325
- }, ARRAY_FILTER_USE_KEY );
1326
-
1327
1323
$ methods = [];
1328
- foreach ($ filteredMethods as $ methodCode => $ methodData ) {
1329
- $ methods [$ methodCode ] = $ methodData ->getText ();
1324
+ foreach ($ availableByTypeMethods as $ methodCode => $ methodData ) {
1325
+ if (in_array ($ methodCode , $ allowedMethods )) {
1326
+ $ methods [$ methodCode ] = $ methodData ->getText ();
1327
+ }
1330
1328
}
1331
1329
1332
1330
return $ methods ;
You can’t perform that action at this time.
0 commit comments