File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
app/code/Magento/Persistent Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -35,8 +35,7 @@ class Authorization implements AuthorizationInterface
35
35
public function __construct (
36
36
CustomerSession $ customerSession ,
37
37
PersistentSession $ persistentSession
38
- )
39
- {
38
+ ) {
40
39
$ this ->customerSession = $ customerSession ;
41
40
$ this ->persistentSession = $ persistentSession ;
42
41
}
@@ -49,8 +48,7 @@ public function __construct(
49
48
public function isAllowed (
50
49
$ resource ,
51
50
$ privilege = null
52
- )
53
- {
51
+ ) {
54
52
if (
55
53
$ this ->persistentSession ->isPersistent () &&
56
54
$ this ->customerSession ->getCustomerId () &&
Original file line number Diff line number Diff line change @@ -80,8 +80,7 @@ public function testIsAuthorized(
80
80
?int $ customerId ,
81
81
?bool $ isCustomerEmulated ,
82
82
bool $ shouldBeAllowed
83
- ): void
84
- {
83
+ ): void {
85
84
$ this ->persistentSessionMock ->expects ($ this ->any ())->method ('isPersistent ' )->willReturn ($ isPersistent );
86
85
$ this ->customerSessionMock ->expects ($ this ->any ())->method ('getCustomerId ' )->willReturn ($ customerId );
87
86
$ this ->customerSessionMock ->expects ($ this ->any ())->method ('getIsCustomerEmulated ' )->willReturn ($ isCustomerEmulated );
You can’t perform that action at this time.
0 commit comments