Skip to content

Commit

Permalink
Update: 修复代码风格
Browse files Browse the repository at this point in the history
  • Loading branch information
NHZEX committed Oct 19, 2023
1 parent 83f6839 commit 2fa007a
Show file tree
Hide file tree
Showing 17 changed files with 0 additions and 57 deletions.
2 changes: 0 additions & 2 deletions src/Components/access-control/test/Tool/TestTool.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ public function __construct()

/**
* @Operation("test")
*
* @return void
*/
public function test(): void
{
Expand Down
2 changes: 0 additions & 2 deletions src/Components/amqp/src/Contract/IMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,6 @@ public function setTicket(?int $ticket);

/**
* 设置 AMQP 消息.
*
* @return void
*/
public function setAMQPMessage(AMQPMessage $amqpMessage): void;

Expand Down
2 changes: 0 additions & 2 deletions src/Components/amqp/tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ function checkHttpServerStatus()

/**
* 开启服务器.
*
* @return void
*/
function startServer(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ class IndexController extends HttpController
* @Action
*
* @Route("/")
*
* @return void
*/
public function index(): void
{
Expand All @@ -34,8 +32,6 @@ public function index(): void
*
* @param string $username 用户名
* @param int $password 密码
*
* @return void
*/
public function login(string $username, int $password): void
{
Expand All @@ -45,8 +41,6 @@ public function login(string $username, int $password): void
* @Action
*
* @Route(method={"GET", "POST"})
*
* @return void
*/
public function multiMethod1(int $id, int $type, array $tags): void
{
Expand All @@ -58,8 +52,6 @@ public function multiMethod1(int $id, int $type, array $tags): void
* @Route(method={"PUT", "POST"})
*
* @param int[] $tags 标签
*
* @return void
*/
public function multiMethod2(int $id, int $type, array $tags): void
{
Expand All @@ -79,17 +71,13 @@ public function multiMethod2(int $id, int $type, array $tags): void
* @param string $username 用户名
* @param int $password 密码
* @param string $birthday 生日
*
* @return void
*/
public function register(string $username, int $password, string $birthday): void
{
}

/**
* @Action
*
* @return void
*/
public function get(int $id): void
{
Expand Down
2 changes: 0 additions & 2 deletions src/Components/apidoc/src/Tool/DocTool.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,6 @@ public function api(string $to, ?string $namespace): void

/**
* 处理路由.
*
* @return void
*/
private function parseRoute(Analysis $analysis, array $controllerClasses): void
{
Expand Down
2 changes: 0 additions & 2 deletions src/Components/grpc/tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ function checkHttpServerStatus()

/**
* 开启服务器.
*
* @return void
*/
function startServer(): void
{
Expand Down
9 changes: 0 additions & 9 deletions src/Components/jwt/tests/Unit/JWTTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@

class JWTTest extends TestCase
{
/**
* @return void
*/
public function testJWT(): void
{
$data = [
Expand Down Expand Up @@ -44,9 +41,6 @@ public function testJWT(): void
$token2 = JWT::parseToken($tokenStr, null, true); // 验证
}

/**
* @return void
*/
public function testJWTValidation(): void
{
$excepted = [
Expand All @@ -59,9 +53,6 @@ public function testJWTValidation(): void
$this->assertEquals(json_encode($excepted), json_encode($data));
}

/**
* @return void
*/
public function testJWTValidateFail(): void
{
$this->expectException(\Imi\JWT\Exception\InvalidTokenException::class);
Expand Down
2 changes: 0 additions & 2 deletions src/Components/kafka/src/Pool/KafkaPool.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@ public static function getInstance(?string $poolName = null): Producer

/**
* 释放连接实例.
*
* @return void
*/
public static function release(Producer $client): void
{
Expand Down
2 changes: 0 additions & 2 deletions src/Components/kafka/tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ function checkHttpServerStatus()

/**
* 开启服务器.
*
* @return void
*/
function startServer(): void
{
Expand Down
2 changes: 0 additions & 2 deletions src/Components/mqtt/tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ function checkMQTTServerStatus()

/**
* 开启服务器.
*
* @return void
*/
function startServer(): void
{
Expand Down
6 changes: 0 additions & 6 deletions src/Components/queue/src/Tool/QueueTool.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ class QueueTool extends BaseCommand
* @CommandAction(name="status", description="获取队列状态")
*
* @Argument(name="queue", type="string", required=true)
*
* @return void
*/
public function status(string $queue): void
{
Expand All @@ -35,8 +33,6 @@ public function status(string $queue): void
* @CommandAction(name="restoreFail", description="将失败消息恢复到队列")
*
* @Argument(name="queue", type="string", required=true)
*
* @return void
*/
public function restoreFail(string $queue): void
{
Expand All @@ -49,8 +45,6 @@ public function restoreFail(string $queue): void
* @CommandAction(name="restoreTimeout", description="将超时消息恢复到队列")
*
* @Argument(name="queue", type="string", required=true)
*
* @return void
*/
public function restoreTimeout(string $queue): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ public function index()

/**
* @Action
*
* @return void
*/
public function fail(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ class HandShake extends HttpController
* @Action
*
* @Route("/testHandShake")
*
* @return void
*/
public function index(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ class IndexController extends HttpController
* @Route("/")
*
* @WSConfig(parserClass=\Imi\Server\DataParser\JsonObjectParser::class)
*
* @return void
*/
public function index(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ public function login($data)
* @WSMiddleware(Imi\SwooleTracker\Example\WebSocketServer\MainServer\Middleware\Test::class)
*
* @param mixed $data
*
* @return void
*/
public function send($data): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ public function testUri(): void

/**
* 控制器指定 server 测试.
*
* @return void
*/
public function testOutsideController(): void
{
Expand Down
4 changes: 0 additions & 4 deletions tests/unit/Component/Bean/ReferenceBeanAspect.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ public function &around(AroundJoinPoint $joinPoint)
* "Imi\Test\Component\Bean\ReferenceBean::*"
* }
* )
*
* @return void
*/
public function afterReturning(AfterReturningJoinPoint $joinPoint): void
{
Expand All @@ -99,8 +97,6 @@ public function afterReturning(AfterReturningJoinPoint $joinPoint): void
* "Imi\Test\Component\Bean\ReferenceBean::*"
* }
* )
*
* @return void
*/
public function afterThrowing(AfterThrowingJoinPoint $joinPoint): void
{
Expand Down

0 comments on commit 2fa007a

Please sign in to comment.