File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
app/code/Magento/Checkout/Model/Backpressure Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 12
12
use Magento \Quote \Model \Backpressure \OrderLimitConfigManager ;
13
13
14
14
/**
15
- * Identifies which checkout related functionality needs backpressure management.
15
+ * Identifies which checkout related functionality needs backpressure management
16
16
*/
17
17
class WebapiRequestTypeExtractor implements BackpressureRequestTypeExtractorInterface
18
18
{
19
+ private const METHOD = 'savePaymentInformationAndPlaceOrder ' ;
20
+
19
21
/**
20
22
* @var OrderLimitConfigManager
21
23
*/
@@ -34,10 +36,8 @@ public function __construct(OrderLimitConfigManager $config)
34
36
*/
35
37
public function extract (string $ service , string $ method , string $ endpoint ): ?string
36
38
{
37
- if ($ method === 'savePaymentInformationAndPlaceOrder ' && $ this ->config ->isEnforcementEnabled ()) {
38
- return OrderLimitConfigManager::REQUEST_TYPE_ID ;
39
- }
40
-
41
- return null ;
39
+ return self ::METHOD === $ method && $ this ->config ->isEnforcementEnabled ()
40
+ ? OrderLimitConfigManager::REQUEST_TYPE_ID
41
+ : null ;
42
42
}
43
43
}
You can’t perform that action at this time.
0 commit comments