File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
app/code/Magento/Directory/Helper Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1313use Magento \Directory \Model \ResourceModel \Region \CollectionFactory ;
1414use Magento \Framework \App \Cache \Type \Config ;
1515use Magento \Framework \App \Config \ScopeConfigInterface ;
16+ use Magento \Framework \App \Helper \AbstractHelper ;
1617use Magento \Framework \App \Helper \Context ;
1718use Magento \Framework \Json \Helper \Data as JsonData ;
1819use Magento \Store \Model \ScopeInterface ;
2526 * @since 100.0.2
2627 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2728 */
28- class Data extends \ Magento \ Framework \ App \ Helper \ AbstractHelper
29+ class Data extends AbstractHelper
2930{
31+ private const STORE_ID = 'store_id ' ;
32+
3033 /**
3134 * Config value that lists ISO2 country codes which have optional Zip/Postal pre-configured
3235 */
@@ -419,10 +422,10 @@ private function getCurrentScope(): array
419422 'type ' => ScopeInterface::SCOPE_WEBSITE ,
420423 'value ' => $ request ->getParam (ScopeInterface::SCOPE_WEBSITE ),
421424 ];
422- } elseif ($ request ->getParam (' store_id ' )) {
425+ } elseif ($ request ->getParam (self :: STORE_ID )) {
423426 $ scope = [
424427 'type ' => ScopeInterface::SCOPE_STORE ,
425- 'value ' => $ request ->getParam (' store_id ' ),
428+ 'value ' => $ request ->getParam (self :: STORE_ID ),
426429 ];
427430 }
428431
You can’t perform that action at this time.
0 commit comments