@@ -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 | { |
@@ -343,7 +343,7 @@ |
||
| 343 | 343 | */ |
| 344 | 344 | public function getFriendQQ(Entity\Friend $friend) |
| 345 | 345 | { |
| 346 | - @trigger_error('The api is not supported now',E_USER_DEPRECATED); |
|
| 346 | + @trigger_error('The api is not supported now', E_USER_DEPRECATED); |
|
| 347 | 347 | |
| 348 | 348 | $request = new Request\GetQQRequest($friend, $this->getCredential()); |
| 349 | 349 | $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()); |
@@ -81,7 +81,7 @@ |
||
| 81 | 81 | { |
| 82 | 82 | while (true) { |
| 83 | 83 | try { |
| 84 | - $messages = $this->client->pollMessages(); |
|
| 84 | + $messages = $this->client->pollMessages(); |
|
| 85 | 85 | if ($messages) { |
| 86 | 86 | foreach ($messages as $message) { |
| 87 | 87 | // 收到消息时触发事件 |