Skip to content

Commit

Permalink
coding style updates
Browse files Browse the repository at this point in the history
  • Loading branch information
deminy committed Jan 12, 2024
1 parent 99fb018 commit e8b0dc7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down
2 changes: 1 addition & 1 deletion examples/service/consul.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
});
2 changes: 1 addition & 1 deletion examples/service/nacos.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit e8b0dc7

Please sign in to comment.