From 69ae98c3f2de98981042be8e5cb84d1cf3321502 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E5=94=81?= <52o@qq52o.cn> Date: Mon, 13 Dec 2021 15:35:06 +0800 Subject: [PATCH] Update header_comment (#3) * Update header_comment * Update header_comment --- .php-cs-fixer.php | 21 ++++++++++----------- bin/mqtt | 8 +++++--- src/Command/PublishCommand.php | 11 +++++------ src/Command/SubscribeCommand.php | 11 +++++------ src/Event/AbstractEvent.php | 11 +++++------ src/Handler/AbstractHandler.php | 11 +++++------ src/Handler/PublishHandler.php | 11 +++++------ src/Handler/SubscribeHandler.php | 11 +++++------ 8 files changed, 45 insertions(+), 50 deletions(-) diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index b677977..bbf19c2 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -1,24 +1,23 @@ * * For the full copyright and license information, - * please view the LICENSE file that was distributed with this source code + * please view the LICENSE file that was distributed with this source code. */ - -declare(strict_types=1); - $header = <<<'TEXT' -This file is part of Simps +This file is part of Simps. -@link https://github.com/simps/mqtt +@link https://github.com/simps/mqtt-cli @contact Lu Fei For the full copyright and license information, -please view the LICENSE file that was distributed with this source code +please view the LICENSE file that was distributed with this source code. TEXT; return (new PhpCsFixer\Config()) @@ -31,8 +30,8 @@ 'header_comment' => [ 'comment_type' => 'PHPDoc', 'header' => $header, - 'separate' => 'bottom', - 'location' => 'after_open', + 'separate' => 'none', + 'location' => 'after_declare_strict', ], 'array_syntax' => [ 'syntax' => 'short', diff --git a/bin/mqtt b/bin/mqtt index f80b4a7..b643aab 100644 --- a/bin/mqtt +++ b/bin/mqtt @@ -1,13 +1,15 @@ #!/usr/bin/env php * * For the full copyright and license information, - * please view the LICENSE file that was distributed with this source code + * please view the LICENSE file that was distributed with this source code. */ foreach ( [ diff --git a/src/Command/PublishCommand.php b/src/Command/PublishCommand.php index e8a21d7..634d39f 100644 --- a/src/Command/PublishCommand.php +++ b/src/Command/PublishCommand.php @@ -1,16 +1,15 @@ * * For the full copyright and license information, - * please view the LICENSE file that was distributed with this source code + * please view the LICENSE file that was distributed with this source code. */ - -declare(strict_types=1); - namespace Simps\MQTTCLI\Command; use Simps\MQTTCLI\Handler\PublishHandler; diff --git a/src/Command/SubscribeCommand.php b/src/Command/SubscribeCommand.php index 114ff9a..2e50171 100644 --- a/src/Command/SubscribeCommand.php +++ b/src/Command/SubscribeCommand.php @@ -1,16 +1,15 @@ * * For the full copyright and license information, - * please view the LICENSE file that was distributed with this source code + * please view the LICENSE file that was distributed with this source code. */ - -declare(strict_types=1); - namespace Simps\MQTTCLI\Command; use Simps\MQTTCLI\Handler\SubscribeHandler; diff --git a/src/Event/AbstractEvent.php b/src/Event/AbstractEvent.php index 826080c..f09d723 100644 --- a/src/Event/AbstractEvent.php +++ b/src/Event/AbstractEvent.php @@ -1,16 +1,15 @@ * * For the full copyright and license information, - * please view the LICENSE file that was distributed with this source code + * please view the LICENSE file that was distributed with this source code. */ - -declare(strict_types=1); - namespace Simps\MQTTCLI\Event; use Simps\MQTT\Client; diff --git a/src/Handler/AbstractHandler.php b/src/Handler/AbstractHandler.php index 8a05fde..ac41921 100644 --- a/src/Handler/AbstractHandler.php +++ b/src/Handler/AbstractHandler.php @@ -1,16 +1,15 @@ * * For the full copyright and license information, - * please view the LICENSE file that was distributed with this source code + * please view the LICENSE file that was distributed with this source code. */ - -declare(strict_types=1); - namespace Simps\MQTTCLI\Handler; use Simps\MQTT\Client; diff --git a/src/Handler/PublishHandler.php b/src/Handler/PublishHandler.php index 78be79c..ebc56ee 100644 --- a/src/Handler/PublishHandler.php +++ b/src/Handler/PublishHandler.php @@ -1,16 +1,15 @@ * * For the full copyright and license information, - * please view the LICENSE file that was distributed with this source code + * please view the LICENSE file that was distributed with this source code. */ - -declare(strict_types=1); - namespace Simps\MQTTCLI\Handler; use Simps\MQTT\Hex\ReasonCode; diff --git a/src/Handler/SubscribeHandler.php b/src/Handler/SubscribeHandler.php index a529f3c..aeab478 100644 --- a/src/Handler/SubscribeHandler.php +++ b/src/Handler/SubscribeHandler.php @@ -1,16 +1,15 @@ * * For the full copyright and license information, - * please view the LICENSE file that was distributed with this source code + * please view the LICENSE file that was distributed with this source code. */ - -declare(strict_types=1); - namespace Simps\MQTTCLI\Handler; use Simps\MQTT\Hex\ReasonCode;