File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
app/code/Magento/Customer/Model/Plugin Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ public function __construct(
77
77
78
78
/**
79
79
* Refresh the customer session on frontend post requests if an update session notification is registered.
80
- *
80
+ *
81
81
* @param ActionInterface $subject
82
82
* @return void
83
83
* @throws \Magento\Framework\Exception\LocalizedException
@@ -87,8 +87,7 @@ public function beforeExecute(ActionInterface $subject)
87
87
{
88
88
$ customerId = $ this ->session ->getCustomerId ();
89
89
90
- if ($ this ->isFrontendRequest () && $ this ->isPostRequest () && $ this ->isSessionUpdateRegisteredFor ($ customerId ))
91
- {
90
+ if ($ this ->isFrontendRequest () && $ this ->isPostRequest () && $ this ->isSessionUpdateRegisteredFor ($ customerId )) {
92
91
try {
93
92
$ customer = $ this ->customerRepository ->getById ($ customerId );
94
93
$ this ->session ->setCustomerData ($ customer );
@@ -103,7 +102,7 @@ public function beforeExecute(ActionInterface $subject)
103
102
104
103
/**
105
104
* Because RequestInterface has no isPost method the check is requied before calling it.
106
- *
105
+ *
107
106
* @return bool
108
107
*/
109
108
private function isPostRequest (): bool
@@ -113,7 +112,7 @@ private function isPostRequest(): bool
113
112
114
113
/**
115
114
* Check if the current application area is frontend.
116
- *
115
+ *
117
116
* @return bool
118
117
* @throws \Magento\Framework\Exception\LocalizedException
119
118
*/
@@ -124,7 +123,7 @@ private function isFrontendRequest(): bool
124
123
125
124
/**
126
125
* True if the session for the given customer ID needs to be refreshed.
127
- *
126
+ *
128
127
* @param int $customerId
129
128
* @return bool
130
129
*/
You can’t perform that action at this time.
0 commit comments