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
3535 public function __construct (
3636 CustomerSession $ customerSession ,
3737 PersistentSession $ persistentSession
38- )
39- {
38+ ) {
4039 $ this ->customerSession = $ customerSession ;
4140 $ this ->persistentSession = $ persistentSession ;
4241 }
@@ -49,8 +48,7 @@ public function __construct(
4948 public function isAllowed (
5049 $ resource ,
5150 $ privilege = null
52- )
53- {
51+ ) {
5452 if (
5553 $ this ->persistentSession ->isPersistent () &&
5654 $ this ->customerSession ->getCustomerId () &&
Original file line number Diff line number Diff line change @@ -80,8 +80,7 @@ public function testIsAuthorized(
8080 ?int $ customerId ,
8181 ?bool $ isCustomerEmulated ,
8282 bool $ shouldBeAllowed
83- ): void
84- {
83+ ): void {
8584 $ this ->persistentSessionMock ->expects ($ this ->any ())->method ('isPersistent ' )->willReturn ($ isPersistent );
8685 $ this ->customerSessionMock ->expects ($ this ->any ())->method ('getCustomerId ' )->willReturn ($ customerId );
8786 $ this ->customerSessionMock ->expects ($ this ->any ())->method ('getIsCustomerEmulated ' )->willReturn ($ isCustomerEmulated );
You can’t perform that action at this time.
0 commit comments