Skip to content

Commit 41c7353

Browse files
committed
Update php_cs
1 parent fd5e1ac commit 41c7353

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.php_cs.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ return PhpCsFixer\Config::create()
106106
PhpCsFixer\Finder::create()
107107
->in([
108108
__DIR__ . '/src',
109-
__DIR__ . '/bin',
110109
])
111110
->append([
112111
__FILE__,
112+
__DIR__ . '/bin/mqtt',
113113
])
114114
)
115115
->setUsingCache(false);

bin/mqtt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
/**
44
* This file is part of Simps
55
*
6-
* @link https://github.com/simps/mqtt
6+
* @see https://github.com/simps/mqtt
77
* @contact Lu Fei <lufei@simps.io>
88
*
99
* For the full copyright and license information,
1010
* please view the LICENSE file that was distributed with this source code
1111
*/
12-
1312
foreach (
1413
[
1514
__DIR__ . '/../../../autoload.php',
@@ -23,19 +22,19 @@ foreach (
2322
}
2423
}
2524

26-
use Symfony\Component\Console\Application;
2725
use Simps\MQTTCLI\Command\PublishCommand;
28-
use Simps\MQTTCLI\Command\SubscribeCommand;
26+
use Symfony\Component\Console\Application;
2927
use function Swoole\Coroutine\run;
3028

31-
$logo = <<<LOGO
29+
$logo = <<<'LOGO'
3230
____ _ _ ____ __ __ ___ _____ _____
3331
| _ \| | | | _ \| \/ |/ _ \_ _|_ _|
3432
| |_) | |_| | |_) | |\/| | | | || | | |
3533
| __/| _ | __/| | | | |_| || | | |
3634
|_| |_| |_|_| |_| |_|\__\_\|_| |_|
3735
LOGO;
3836

37+
\Swoole\Runtime::enableCoroutine(SWOOLE_HOOK_ALL);
3938
run(function () use ($logo) {
4039
try {
4140
$application = new Application("{$logo}\n\nPHPMQTT CLI Tools", 'v1.0.0');

0 commit comments

Comments
 (0)