Skip to content

Commit e3443e9

Browse files
authored
Format code by the latest cs-fixer. (#6617)
1 parent 71b66bd commit e3443e9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+51
-8
lines changed

src/ConfigProvider.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact group@hyperf.io
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\JsonRpc;
1314

1415
use Hyperf\JsonRpc\Listener\RegisterProtocolListener;

src/CoreMiddleware.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@
99
* @contact group@hyperf.io
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\JsonRpc;
1314

1415
use Closure;
1516
use Hyperf\HttpServer\Router\Dispatched;
1617
use Hyperf\Rpc\Protocol;
18+
use InvalidArgumentException;
1719
use Psr\Container\ContainerInterface;
1820
use Psr\Http\Message\ServerRequestInterface;
1921
use Swow\Psr7\Message\ResponsePlusInterface;
@@ -44,7 +46,7 @@ protected function handleFound(Dispatched $dispatched, ServerRequestInterface $r
4446

4547
try {
4648
$parameters = $this->parseMethodParameters($controller, $action, $request->getParsedBody());
47-
} catch (\InvalidArgumentException) {
49+
} catch (InvalidArgumentException) {
4850
return $this->responseBuilder->buildErrorResponse($request, ResponseBuilder::INVALID_PARAMS);
4951
}
5052

src/DataFormatter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact group@hyperf.io
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\JsonRpc;
1314

1415
use Hyperf\Rpc\Context;

src/DataFormatterFactory.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact group@hyperf.io
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\JsonRpc;
1314

1415
use Hyperf\Contract\NormalizerInterface;

src/Exception/BadRequestException.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact group@hyperf.io
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\JsonRpc\Exception;
1314

1415
use Hyperf\HttpMessage\Exception\BadRequestHttpException;

src/Exception/ClientException.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact group@hyperf.io
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\JsonRpc\Exception;
1314

1415
use RuntimeException;

src/Exception/Handler/HttpExceptionHandler.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact group@hyperf.io
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\JsonRpc\Exception\Handler;
1314

1415
class HttpExceptionHandler extends TcpExceptionHandler

src/Exception/Handler/TcpExceptionHandler.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact group@hyperf.io
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\JsonRpc\Exception\Handler;
1314

1415
use Hyperf\Contract\StdoutLoggerInterface;

src/HttpCoreMiddleware.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact group@hyperf.io
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\JsonRpc;
1314

1415
use Psr\Http\Message\ServerRequestInterface;

src/HttpServer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact group@hyperf.io
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\JsonRpc;
1314

1415
use Hyperf\Context\RequestContext;

0 commit comments

Comments
 (0)