File tree Expand file tree Collapse file tree 3 files changed +10
-13
lines changed
dev/tests/integration/testsuite/Magento/Catalog/Helper Expand file tree Collapse file tree 3 files changed +10
-13
lines changed Original file line number Diff line number Diff line change 3
3
* Copyright © 2015 Magento. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+ namespace Magento \Backend \Model \Config ;
7
+
8
+ use Magento \Framework \Store \ScopeInterface as StoreScopeInterface ;
6
9
7
10
/**
8
11
* System configuration scope
9
12
*/
10
- namespace Magento \Backend \Model \Config ;
11
-
12
13
class ScopeDefiner
13
14
{
14
15
/**
@@ -35,11 +36,8 @@ public function getScope()
35
36
{
36
37
return $ this ->_request ->getParam (
37
38
'store '
38
- ) ? \ Magento \ Framework \ Store \ScopeInterface ::SCOPE_STORE : ($ this ->_request ->getParam (
39
+ ) ? StoreScopeInterface ::SCOPE_STORE : ($ this ->_request ->getParam (
39
40
'website '
40
- ) ?
41
- \Magento \Framework \Store \ScopeInterface::SCOPE_WEBSITE
42
- :
43
- \Magento \Framework \App \ScopeInterface::SCOPE_DEFAULT );
41
+ ) ? StoreScopeInterface::SCOPE_WEBSITE : \Magento \Framework \App \ScopeInterface::SCOPE_DEFAULT );
44
42
}
45
43
}
Original file line number Diff line number Diff line change 7
7
8
8
use Magento \Framework \App \Action \NotFoundException ;
9
9
use Magento \Framework \App \RequestInterface ;
10
+ use Magento \Framework \Store \ScopeInterface ;
10
11
11
12
/**
12
13
* Contact index controller
@@ -83,12 +84,7 @@ public function __construct(
83
84
*/
84
85
public function dispatch (RequestInterface $ request )
85
86
{
86
- if (
87
- !$ this ->scopeConfig ->isSetFlag (
88
- self ::XML_PATH_ENABLED ,
89
- \Magento \Framework \Store \ScopeInterface::SCOPE_STORE
90
- )
91
- ) {
87
+ if (!$ this ->scopeConfig ->isSetFlag (self ::XML_PATH_ENABLED , ScopeInterface::SCOPE_STORE )) {
92
88
throw new NotFoundException ();
93
89
}
94
90
return parent ::dispatch ($ request );
Original file line number Diff line number Diff line change 10
10
use Magento \Tax \Model \Config ;
11
11
use Magento \Tax \Model \TaxRuleFixtureFactory ;
12
12
13
+ /**
14
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
15
+ */
13
16
class DataTest extends \PHPUnit_Framework_TestCase
14
17
{
15
18
/**
You can’t perform that action at this time.
0 commit comments