File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 15
15
/**
16
16
* Sales module base helper
17
17
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
18
+ * @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
18
19
*/
19
20
class Guest extends \Magento \Framework \App \Helper \AbstractHelper
20
21
{
@@ -71,7 +72,7 @@ class Guest extends \Magento\Framework\App\Helper\AbstractHelper
71
72
const COOKIE_NAME = 'guest-view ' ;
72
73
73
74
/**
74
- * Cookie path
75
+ * Cookie path value
75
76
*/
76
77
const COOKIE_PATH = '/ ' ;
77
78
@@ -225,6 +226,7 @@ private function setGuestViewCookie($cookieValue)
225
226
*/
226
227
private function loadFromCookie ($ fromCookie )
227
228
{
229
+ // phpcs:ignore Magento2.Functions.DiscouragedFunction
228
230
$ cookieData = explode (': ' , base64_decode ($ fromCookie ));
229
231
$ protectCode = isset ($ cookieData [0 ]) ? $ cookieData [0 ] : null ;
230
232
$ incrementId = isset ($ cookieData [1 ]) ? $ cookieData [1 ] : null ;
Original file line number Diff line number Diff line change @@ -182,7 +182,8 @@ public function testLoadValidOrderNotEmptyPost($post)
182
182
Address::class,
183
183
['getLastname ' , 'getEmail ' , 'getPostcode ' ]
184
184
);
185
- $ billingAddressMock ->expects ($ this ->once ())->method ('getLastname ' )->willReturn (trim ($ post ['oar_billing_lastname ' ]));
185
+ $ billingAddressMock ->expects ($ this ->once ())->method ('getLastname ' )
186
+ ->willReturn (trim ($ post ['oar_billing_lastname ' ]));
186
187
$ billingAddressMock ->expects ($ this ->any ())->method ('getEmail ' )->willReturn (trim ($ post ['oar_email ' ]));
187
188
$ billingAddressMock ->expects ($ this ->any ())->method ('getPostcode ' )->willReturn (trim ($ post ['oar_zip ' ]));
188
189
$ this ->salesOrderMock ->expects ($ this ->once ())->method ('getBillingAddress ' )->willReturn ($ billingAddressMock );
You can’t perform that action at this time.
0 commit comments