Skip to content

Commit

Permalink
Update header_comment (#3)
Browse files Browse the repository at this point in the history
* Update header_comment

* Update header_comment
  • Loading branch information
sy-records authored Dec 13, 2021
1 parent e8ca20f commit 69ae98c
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 50 deletions.
21 changes: 10 additions & 11 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
<?php

declare(strict_types=1);
/**
* 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 <lufei@simps.io>
*
* 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 <[email protected]>
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())
Expand All @@ -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',
Expand Down
8 changes: 5 additions & 3 deletions bin/mqtt
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
#!/usr/bin/env php
<?php

declare(strict_types=1);
/**
* This file is part of Simps
* This file is part of Simps.
*
* @see https://github.com/simps/mqtt
* @see https://github.com/simps/mqtt-cli
* @contact Lu Fei <lufei@simps.io>
*
* 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 (
[
Expand Down
11 changes: 5 additions & 6 deletions src/Command/PublishCommand.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
<?php

declare(strict_types=1);
/**
* 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 <lufei@simps.io>
*
* 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;
Expand Down
11 changes: 5 additions & 6 deletions src/Command/SubscribeCommand.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
<?php

declare(strict_types=1);
/**
* 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 <lufei@simps.io>
*
* 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;
Expand Down
11 changes: 5 additions & 6 deletions src/Event/AbstractEvent.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
<?php

declare(strict_types=1);
/**
* 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 <lufei@simps.io>
*
* 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;
Expand Down
11 changes: 5 additions & 6 deletions src/Handler/AbstractHandler.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
<?php

declare(strict_types=1);
/**
* 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 <lufei@simps.io>
*
* 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;
Expand Down
11 changes: 5 additions & 6 deletions src/Handler/PublishHandler.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
<?php

declare(strict_types=1);
/**
* 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 <lufei@simps.io>
*
* 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;
Expand Down
11 changes: 5 additions & 6 deletions src/Handler/SubscribeHandler.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
<?php

declare(strict_types=1);
/**
* 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 <lufei@simps.io>
*
* 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;
Expand Down

0 comments on commit 69ae98c

Please sign in to comment.