File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff line change 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-
1312foreach (
1413 [
1514 __DIR__ . '/../../../autoload.php ' ,
@@ -23,19 +22,19 @@ foreach (
2322 }
2423}
2524
26- use Symfony \Component \Console \Application ;
2725use Simps \MQTTCLI \Command \PublishCommand ;
28- use Simps \ MQTTCLI \ Command \ SubscribeCommand ;
26+ use Symfony \ Component \ Console \ Application ;
2927use function Swoole \Coroutine \run ;
3028
31- $ logo = <<<LOGO
29+ $ logo = <<<' LOGO'
3230 ____ _ _ ____ __ __ ___ _____ _____
3331 | _ \| | | | _ \| \/ |/ _ \_ _|_ _|
3432 | |_) | |_| | |_) | |\/| | | | || | | |
3533 | __/| _ | __/| | | | |_| || | | |
3634 |_| |_| |_|_| |_| |_|\__\_\|_| |_|
3735LOGO;
3836
37+ \Swoole \Runtime::enableCoroutine (SWOOLE_HOOK_ALL );
3938run (function () use ($ logo ) {
4039 try {
4140 $ application = new Application ("{$ logo }\n\nPHPMQTT CLI Tools " , 'v1.0.0 ' );
You can’t perform that action at this time.
0 commit comments