Skip to content

Commit 69ae98c

Browse files
authored
Update header_comment (#3)
* Update header_comment * Update header_comment
1 parent e8ca20f commit 69ae98c

8 files changed

+45
-50
lines changed

.php-cs-fixer.php

+10-11
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
11
<?php
2+
3+
declare(strict_types=1);
24
/**
3-
* This file is part of Simps
5+
* This file is part of Simps.
46
*
5-
* @link https://github.com/simps/mqtt
7+
* @link https://github.com/simps/mqtt-cli
68
* @contact Lu Fei <[email protected]>
79
*
810
* For the full copyright and license information,
9-
* please view the LICENSE file that was distributed with this source code
11+
* please view the LICENSE file that was distributed with this source code.
1012
*/
11-
12-
declare(strict_types=1);
13-
1413
$header = <<<'TEXT'
15-
This file is part of Simps
14+
This file is part of Simps.
1615
17-
@link https://github.com/simps/mqtt
16+
@link https://github.com/simps/mqtt-cli
1817
@contact Lu Fei <[email protected]>
1918
2019
For the full copyright and license information,
21-
please view the LICENSE file that was distributed with this source code
20+
please view the LICENSE file that was distributed with this source code.
2221
TEXT;
2322

2423
return (new PhpCsFixer\Config())
@@ -31,8 +30,8 @@
3130
'header_comment' => [
3231
'comment_type' => 'PHPDoc',
3332
'header' => $header,
34-
'separate' => 'bottom',
35-
'location' => 'after_open',
33+
'separate' => 'none',
34+
'location' => 'after_declare_strict',
3635
],
3736
'array_syntax' => [
3837
'syntax' => 'short',

bin/mqtt

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
#!/usr/bin/env php
22
<?php
3+
4+
declare(strict_types=1);
35
/**
4-
* This file is part of Simps
6+
* This file is part of Simps.
57
*
6-
* @see https://github.com/simps/mqtt
8+
* @see https://github.com/simps/mqtt-cli
79
* @contact Lu Fei <[email protected]>
810
*
911
* For the full copyright and license information,
10-
* please view the LICENSE file that was distributed with this source code
12+
* please view the LICENSE file that was distributed with this source code.
1113
*/
1214
foreach (
1315
[

src/Command/PublishCommand.php

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
<?php
2+
3+
declare(strict_types=1);
24
/**
3-
* This file is part of Simps
5+
* This file is part of Simps.
46
*
5-
* @link https://github.com/simps/mqtt
7+
* @link https://github.com/simps/mqtt-cli
68
* @contact Lu Fei <[email protected]>
79
*
810
* For the full copyright and license information,
9-
* please view the LICENSE file that was distributed with this source code
11+
* please view the LICENSE file that was distributed with this source code.
1012
*/
11-
12-
declare(strict_types=1);
13-
1413
namespace Simps\MQTTCLI\Command;
1514

1615
use Simps\MQTTCLI\Handler\PublishHandler;

src/Command/SubscribeCommand.php

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
<?php
2+
3+
declare(strict_types=1);
24
/**
3-
* This file is part of Simps
5+
* This file is part of Simps.
46
*
5-
* @link https://github.com/simps/mqtt
7+
* @link https://github.com/simps/mqtt-cli
68
* @contact Lu Fei <[email protected]>
79
*
810
* For the full copyright and license information,
9-
* please view the LICENSE file that was distributed with this source code
11+
* please view the LICENSE file that was distributed with this source code.
1012
*/
11-
12-
declare(strict_types=1);
13-
1413
namespace Simps\MQTTCLI\Command;
1514

1615
use Simps\MQTTCLI\Handler\SubscribeHandler;

src/Event/AbstractEvent.php

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
<?php
2+
3+
declare(strict_types=1);
24
/**
3-
* This file is part of Simps
5+
* This file is part of Simps.
46
*
5-
* @link https://github.com/simps/mqtt
7+
* @link https://github.com/simps/mqtt-cli
68
* @contact Lu Fei <[email protected]>
79
*
810
* For the full copyright and license information,
9-
* please view the LICENSE file that was distributed with this source code
11+
* please view the LICENSE file that was distributed with this source code.
1012
*/
11-
12-
declare(strict_types=1);
13-
1413
namespace Simps\MQTTCLI\Event;
1514

1615
use Simps\MQTT\Client;

src/Handler/AbstractHandler.php

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
<?php
2+
3+
declare(strict_types=1);
24
/**
3-
* This file is part of Simps
5+
* This file is part of Simps.
46
*
5-
* @link https://github.com/simps/mqtt
7+
* @link https://github.com/simps/mqtt-cli
68
* @contact Lu Fei <[email protected]>
79
*
810
* For the full copyright and license information,
9-
* please view the LICENSE file that was distributed with this source code
11+
* please view the LICENSE file that was distributed with this source code.
1012
*/
11-
12-
declare(strict_types=1);
13-
1413
namespace Simps\MQTTCLI\Handler;
1514

1615
use Simps\MQTT\Client;

src/Handler/PublishHandler.php

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
<?php
2+
3+
declare(strict_types=1);
24
/**
3-
* This file is part of Simps
5+
* This file is part of Simps.
46
*
5-
* @link https://github.com/simps/mqtt
7+
* @link https://github.com/simps/mqtt-cli
68
* @contact Lu Fei <[email protected]>
79
*
810
* For the full copyright and license information,
9-
* please view the LICENSE file that was distributed with this source code
11+
* please view the LICENSE file that was distributed with this source code.
1012
*/
11-
12-
declare(strict_types=1);
13-
1413
namespace Simps\MQTTCLI\Handler;
1514

1615
use Simps\MQTT\Hex\ReasonCode;

src/Handler/SubscribeHandler.php

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
<?php
2+
3+
declare(strict_types=1);
24
/**
3-
* This file is part of Simps
5+
* This file is part of Simps.
46
*
5-
* @link https://github.com/simps/mqtt
7+
* @link https://github.com/simps/mqtt-cli
68
* @contact Lu Fei <[email protected]>
79
*
810
* For the full copyright and license information,
9-
* please view the LICENSE file that was distributed with this source code
11+
* please view the LICENSE file that was distributed with this source code.
1012
*/
11-
12-
declare(strict_types=1);
13-
1413
namespace Simps\MQTTCLI\Handler;
1514

1615
use Simps\MQTT\Hex\ReasonCode;

0 commit comments

Comments
 (0)