File tree Expand file tree Collapse file tree 3 files changed +25
-15
lines changed
app/code/Magento/Customer Expand file tree Collapse file tree 3 files changed +25
-15
lines changed Original file line number Diff line number Diff line change 24
24
25
25
/**
26
26
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
27
+ * @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
28
+ *
27
29
*/
28
30
class Redirect
29
31
{
@@ -89,6 +91,7 @@ class Redirect
89
91
private $ session ;
90
92
91
93
/**
94
+ * @SuppressWarnings(PHPMD.ExcessiveParameterList)
92
95
* @param RequestInterface $request
93
96
* @param Session $customerSession
94
97
* @param ScopeConfigInterface $scopeConfig
Original file line number Diff line number Diff line change 11
11
use Magento \Store \Api \Data \StoreInterface ;
12
12
use Magento \Customer \Api \RedirectCookieManagerInterface ;
13
13
14
+ /**
15
+ * Customer redirect cookie manager
16
+ * @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
17
+ *
18
+ */
14
19
class RedirectCookieManager implements RedirectCookieManagerInterface
15
20
{
16
21
/**
Original file line number Diff line number Diff line change @@ -97,21 +97,23 @@ protected function setUp()
97
97
98
98
$ this ->customerSession = $ this ->getMockBuilder (\Magento \Customer \Model \Session::class)
99
99
->disableOriginalConstructor ()
100
- ->setMethods ([
101
- 'getLastCustomerId ' ,
102
- 'isLoggedIn ' ,
103
- 'getId ' ,
104
- 'setLastCustomerId ' ,
105
- 'unsBeforeAuthUrl ' ,
106
- 'getBeforeAuthUrl ' ,
107
- 'setBeforeAuthUrl ' ,
108
- 'getAfterAuthUrl ' ,
109
- 'setAfterAuthUrl ' ,
110
- 'getBeforeRequestParams ' ,
111
- 'getBeforeModuleName ' ,
112
- 'getBeforeControllerName ' ,
113
- 'getBeforeAction ' ,
114
- ])
100
+ ->setMethods (
101
+ [
102
+ 'getLastCustomerId ' ,
103
+ 'isLoggedIn ' ,
104
+ 'getId ' ,
105
+ 'setLastCustomerId ' ,
106
+ 'unsBeforeAuthUrl ' ,
107
+ 'getBeforeAuthUrl ' ,
108
+ 'setBeforeAuthUrl ' ,
109
+ 'getAfterAuthUrl ' ,
110
+ 'setAfterAuthUrl ' ,
111
+ 'getBeforeRequestParams ' ,
112
+ 'getBeforeModuleName ' ,
113
+ 'getBeforeControllerName ' ,
114
+ 'getBeforeAction ' ,
115
+ ]
116
+ )
115
117
->getMock ();
116
118
117
119
$ this ->scopeConfig = $ this ->getMockForAbstractClass (\Magento \Framework \App \Config \ScopeConfigInterface::class);
You can’t perform that action at this time.
0 commit comments