Skip to content

Commit

Permalink
cs-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
何平 committed Jan 4, 2024
1 parent 9507229 commit 9a5ad6a
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 10 deletions.
1 change: 0 additions & 1 deletion app/Middleware/Auth/AuthMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
return $handler->handle($request);
}
} catch (JWTException|TokenValidException) {
return $this->response->fail(ErrorCode::UNAUTHORIZED);
}
return $this->response->fail(ErrorCode::UNAUTHORIZED);
}
Expand Down
5 changes: 3 additions & 2 deletions app/Model/System/SystemRole.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

namespace App\Model\System;

use Carbon\Carbon;
use CloudAdmin\Model\Model;

/**
Expand All @@ -22,8 +23,8 @@
* @property int $sort 排序
* @property int $created_by 创建者
* @property int $updated_by 更新者
* @property \Carbon\Carbon $created_at 创建时间
* @property \Carbon\Carbon $updated_at 更新时间
* @property Carbon $created_at 创建时间
* @property Carbon $updated_at 更新时间
* @property string $deleted_at 删除时间
* @property string $remark 备注
*/
Expand Down
5 changes: 3 additions & 2 deletions app/Model/System/SystemUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

namespace App\Model\System;

use Carbon\Carbon;
use CloudAdmin\Model\Model;

/**
Expand All @@ -30,8 +31,8 @@
* @property string $backend_setting 后台设置数据
* @property int $created_by 创建者
* @property int $updated_by 更新者
* @property \Carbon\Carbon $created_at 创建时间
* @property \Carbon\Carbon $updated_at 更新时间
* @property Carbon $created_at 创建时间
* @property Carbon $updated_at 更新时间
* @property string $deleted_at 删除时间
* @property string $remark 备注
*/
Expand Down
3 changes: 2 additions & 1 deletion cloud-admin/SDB/Business/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
namespace CloudAdmin\SDB\Business;

use Hyperf\Contract\ConfigInterface;
use Hyperf\Devtool\Describe\RoutesCommand;
use Hyperf\HttpServer\MiddlewareManager;
use Hyperf\HttpServer\Router\DispatcherFactory;
use Hyperf\HttpServer\Router\Handler;
Expand All @@ -30,7 +31,7 @@
use function is_string;

/**
* @see \Hyperf\Devtool\Describe\RoutesCommand
* @see RoutesCommand
*/
final class Route
{
Expand Down
4 changes: 3 additions & 1 deletion cloud-admin/Vo/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@

namespace CloudAdmin\Vo;

final class Collection extends \Hyperf\Collection\Collection
use Hyperf\Collection\Collection;

final class Collection extends Collection
{
public static function tree(array $data, string $idKey, string $parentKey, string $nestKey = 'children'): array
{
Expand Down
7 changes: 4 additions & 3 deletions tui.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,20 @@
use PhpTui\Tui\Widget\Borders;
use PhpTui\Tui\Widget\Direction;
use Swow\Coroutine;
use Swow\Socket;
use Swow\Sync\WaitReference;

require 'vendor/autoload.php';

$greeting = 'Hello';

$sayHello = serialize(static function (string $name) use ($greeting): void {
$sayHello = \serialize(static function (string $name) use ($greeting): void {
echo "{$greeting} {$name}!\n";
});
$sayHello = unserialize($sayHello);
$sayHello = \unserialize($sayHello);
$sayHello(Swow::class);
exit;
$socket = new \Swow\Socket(Swow\Socket::TYPE_TCP);
$socket = new Socket(Socket::TYPE_TCP);
$server = \stream_socket_server('tls://127.0.0.1:9501', context: \stream_context_create([
'ssl' => [
'alpn_protocols' => 'h2,http/1.1',
Expand Down

0 comments on commit 9a5ad6a

Please sign in to comment.