Skip to content

Commit 0e40e85

Browse files
committed
update code
1 parent c96bcda commit 0e40e85

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

app/code/Magento/Webapi/Controller/Rest/SynchronousRequestProcessor.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2018 Adobe
4+
* All Rights Reserved.
55
*/
66
declare(strict_types=1);
77

@@ -20,7 +20,7 @@
2020
*/
2121
class SynchronousRequestProcessor implements RequestProcessorInterface
2222
{
23-
const PROCESSOR_PATH = "/^\\/V\\d+/";
23+
private const PROCESSOR_PATH = "/^\\/V\\d+/";
2424

2525
/**
2626
* @var RestResponse
@@ -79,7 +79,7 @@ public function __construct(
7979
}
8080

8181
/**
82-
* {@inheritdoc}
82+
* @inheritdoc
8383
*/
8484
public function process(\Magento\Framework\Webapi\Rest\Request $request)
8585
{
@@ -94,7 +94,9 @@ public function process(\Magento\Framework\Webapi\Rest\Request $request)
9494
* @var \Magento\Framework\Api\AbstractExtensibleObject $outputData
9595
*/
9696
try {
97+
// phpcs:disable Magento2.Functions.DiscouragedFunction
9798
$outputData = call_user_func_array([$service, $serviceMethodName], $inputParams);
99+
// phpcs:enable Magento2.Functions.DiscouragedFunction
98100
} catch (\Throwable $e) {
99101
throw new WebapiException(__($e->getMessage()));
100102
}
@@ -114,7 +116,7 @@ public function process(\Magento\Framework\Webapi\Rest\Request $request)
114116
}
115117

116118
/**
117-
* {@inheritdoc}
119+
* @inheritdoc
118120
*/
119121
public function canProcess(\Magento\Framework\Webapi\Rest\Request $request)
120122
{

0 commit comments

Comments
 (0)