From e8b0dc7b8f8d68a169ddc8a0dbbacde4c79906c1 Mon Sep 17 00:00:00 2001 From: Demin Yin Date: Thu, 11 Jan 2024 20:57:22 -0800 Subject: [PATCH] coding style updates --- .php-cs-fixer.dist.php | 1 + examples/service/consul.php | 2 +- examples/service/nacos.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index d81ddf4..3ee9d68 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -25,6 +25,7 @@ 'constant_case' => ['case' => 'lower'], 'combine_consecutive_unsets' => true, 'declare_strict_types' => true, + 'fully_qualified_strict_types' => ['phpdoc_tags' => []], 'general_phpdoc_annotation_remove' => ['annotations' => ['author']], 'header_comment' => ['comment_type' => 'PHPDoc', 'header' => $header, 'location' => 'after_open', 'separate' => 'bottom'], 'increment_style' => ['style' => 'post'], diff --git a/examples/service/consul.php b/examples/service/consul.php index d40e76f..6e00b8b 100644 --- a/examples/service/consul.php +++ b/examples/service/consul.php @@ -16,7 +16,7 @@ const SERVICE_NAME = 'test_service'; run(function () { - $c = new \Swoole\NameResolver\Consul('http://127.0.0.1:8500'); + $c = new Swoole\NameResolver\Consul('http://127.0.0.1:8500'); $c->join('test_service', '127.0.0.1', 9502); var_dump($c->resolve(SERVICE_NAME)); }); diff --git a/examples/service/nacos.php b/examples/service/nacos.php index 460d819..8beece9 100644 --- a/examples/service/nacos.php +++ b/examples/service/nacos.php @@ -16,7 +16,7 @@ const SERVICE_NAME = 'test_service'; run(function () { - $c = new \Swoole\NameResolver\Nacos('http://127.0.0.1:8848'); + $c = new Swoole\NameResolver\Nacos('http://127.0.0.1:8848'); var_dump($c->join(SERVICE_NAME, '127.0.0.1', 9502)); var_dump($c->join(SERVICE_NAME, '127.0.0.1', 9501));