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 13
13
use Magento \Directory \Model \ResourceModel \Region \CollectionFactory ;
14
14
use Magento \Framework \App \Cache \Type \Config ;
15
15
use Magento \Framework \App \Config \ScopeConfigInterface ;
16
+ use Magento \Framework \App \Helper \AbstractHelper ;
16
17
use Magento \Framework \App \Helper \Context ;
17
18
use Magento \Framework \Json \Helper \Data as JsonData ;
18
19
use Magento \Store \Model \ScopeInterface ;
25
26
* @since 100.0.2
26
27
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
27
28
*/
28
- class Data extends \ Magento \ Framework \ App \ Helper \ AbstractHelper
29
+ class Data extends AbstractHelper
29
30
{
31
+ private const STORE_ID = 'store_id ' ;
32
+
30
33
/**
31
34
* Config value that lists ISO2 country codes which have optional Zip/Postal pre-configured
32
35
*/
@@ -419,10 +422,10 @@ private function getCurrentScope(): array
419
422
'type ' => ScopeInterface::SCOPE_WEBSITE ,
420
423
'value ' => $ request ->getParam (ScopeInterface::SCOPE_WEBSITE ),
421
424
];
422
- } elseif ($ request ->getParam (' store_id ' )) {
425
+ } elseif ($ request ->getParam (self :: STORE_ID )) {
423
426
$ scope = [
424
427
'type ' => ScopeInterface::SCOPE_STORE ,
425
- 'value ' => $ request ->getParam (' store_id ' ),
428
+ 'value ' => $ request ->getParam (self :: STORE_ID ),
426
429
];
427
430
}
428
431
You can’t perform that action at this time.
0 commit comments