@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | use Slince\SmartQQ\Client; |
4 | 4 | |
5 | -include __DIR__.'/bootstrap.php'; |
|
5 | +include __DIR__ . '/bootstrap.php'; |
|
6 | 6 | |
7 | 7 | //创建smartQQ客户端 |
8 | 8 | $smartQQ = new Client(); |
@@ -358,7 +358,7 @@ |
||
358 | 358 | * |
359 | 359 | * @param Entity\Friend $friend |
360 | 360 | * |
361 | - * @return string |
|
361 | + * @return integer |
|
362 | 362 | */ |
363 | 363 | public function getFriendLnick(Entity\Friend $friend) |
364 | 364 | { |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | // 兼容二维码位置传参 |
85 | 85 | if (is_string($callback)) { |
86 | 86 | /* @deprecated 后面会废除此用法,建议传闭包自己处理二维码 */ |
87 | - $callback = function ($qrcode) use($callback){ |
|
87 | + $callback = function($qrcode) use($callback){ |
|
88 | 88 | Utils::getFilesystem()->dumpFile($callback, $qrcode); |
89 | 89 | }; |
90 | 90 | } |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | */ |
250 | 250 | public function getFriendQQ(Entity\Friend $friend) |
251 | 251 | { |
252 | - @trigger_error('The api is not supported now',E_USER_DEPRECATED); |
|
252 | + @trigger_error('The api is not supported now', E_USER_DEPRECATED); |
|
253 | 253 | |
254 | 254 | $request = new Request\GetQQRequest($friend, $this->getCredential()); |
255 | 255 | $response = $this->sendRequest($request); |
@@ -4,7 +4,7 @@ |
||
4 | 4 | */ |
5 | 5 | use Slince\SmartQQ\Client; |
6 | 6 | |
7 | -include __DIR__.'/bootstrap.php'; |
|
7 | +include __DIR__ . '/bootstrap.php'; |
|
8 | 8 | |
9 | 9 | //创建smartQQ客户端 |
10 | 10 | $smartQQ = new Client(getCredential()); |
@@ -4,7 +4,7 @@ |
||
4 | 4 | */ |
5 | 5 | use Slince\SmartQQ\Client; |
6 | 6 | |
7 | -include __DIR__.'/bootstrap.php'; |
|
7 | +include __DIR__ . '/bootstrap.php'; |
|
8 | 8 | |
9 | 9 | //创建smartQQ客户端 |
10 | 10 | $smartQQ = new Client(getCredential()); |
@@ -4,7 +4,7 @@ |
||
4 | 4 | */ |
5 | 5 | use Slince\SmartQQ\Client; |
6 | 6 | |
7 | -include __DIR__.'/bootstrap.php'; |
|
7 | +include __DIR__ . '/bootstrap.php'; |
|
8 | 8 | |
9 | 9 | //创建smartQQ客户端 |
10 | 10 | $smartQQ = new Client(getCredential()); |
@@ -4,7 +4,7 @@ |
||
4 | 4 | */ |
5 | 5 | use Slince\SmartQQ\Client; |
6 | 6 | |
7 | -include __DIR__.'/bootstrap.php'; |
|
7 | +include __DIR__ . '/bootstrap.php'; |
|
8 | 8 | |
9 | 9 | //创建smartQQ客户端 |
10 | 10 | $smartQQ = new Client(getCredential()); |
@@ -4,7 +4,7 @@ |
||
4 | 4 | */ |
5 | 5 | use Slince\SmartQQ\Client; |
6 | 6 | |
7 | -include __DIR__.'/bootstrap.php'; |
|
7 | +include __DIR__ . '/bootstrap.php'; |
|
8 | 8 | |
9 | 9 | //创建smartQQ客户端 |
10 | 10 | $smartQQ = new Client(getCredential()); |
@@ -4,7 +4,7 @@ |
||
4 | 4 | */ |
5 | 5 | use Slince\SmartQQ\Client; |
6 | 6 | |
7 | -include __DIR__.'/bootstrap.php'; |
|
7 | +include __DIR__ . '/bootstrap.php'; |
|
8 | 8 | |
9 | 9 | //创建smartQQ客户端 |
10 | 10 | $smartQQ = new Client(getCredential()); |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | use Slince\SmartQQ\Entity\Discuss; |
10 | 10 | use Slince\SmartQQ\Entity\DiscussDetail; |
11 | 11 | |
12 | -include __DIR__.'/bootstrap.php'; |
|
12 | +include __DIR__ . '/bootstrap.php'; |
|
13 | 13 | |
14 | 14 | //创建smartQQ客户端 |
15 | 15 | $smartQQ = new Client(getCredential()); |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | exit('不支持的消息类型'); |
67 | 67 | } |
68 | 68 | |
69 | - printR('收到消息'.PHP_EOL); |
|
69 | + printR('收到消息' . PHP_EOL); |
|
70 | 70 | printR($content); |
71 | 71 | echo str_repeat(PHP_EOL, 2); |
72 | 72 | }); |