Completed
Push — master ( a30943...b7600b )
by Taosikai
14:47
created
examples/bootstrap.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,15 +4,15 @@  discard block
 block discarded – undo
4 4
  */
5 5
 use Slince\SmartQQ\Credential;
6 6
 
7
-include __DIR__.'/../vendor/autoload.php';
7
+include __DIR__ . '/../vendor/autoload.php';
8 8
 
9 9
 date_default_timezone_set('Prc');
10 10
 
11 11
 //二维码图片
12
-define('LOGIN_QR_IMAGE', getcwd().'/smartqq-login-qr.png');
12
+define('LOGIN_QR_IMAGE', getcwd() . '/smartqq-login-qr.png');
13 13
 
14 14
 //登录凭证信息保存
15
-define('CREDENTIAL_JSON', getcwd().'/credential.json');
15
+define('CREDENTIAL_JSON', getcwd() . '/credential.json');
16 16
 
17 17
 /**
18 18
  * 打印结果到屏幕.
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 function printPrettyScreen($data)
23 23
 {
24 24
 //    printR($data);
25
-    @file_put_contents(getcwd().'/result.log', print_r($data, true)."\r\n", FILE_APPEND);
25
+    @file_put_contents(getcwd() . '/result.log', print_r($data, true) . "\r\n", FILE_APPEND);
26 26
 }
27 27
 
28 28
 /**
Please login to merge, or discard this patch.
examples/get_friend_lnick.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
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());
Please login to merge, or discard this patch.
examples/get_self_user.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
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());
Please login to merge, or discard this patch.
examples/poll_message.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
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());
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 while (true) {
39 39
     $messages = $smartQQ->pollMessages();
40 40
     if ($messages) {
41
-        printR('收到消息'.PHP_EOL);
41
+        printR('收到消息' . PHP_EOL);
42 42
         foreach ($messages as $message) {
43 43
             if ($message instanceof FriendMessage) {
44 44
                 $friend = $friends->firstByAttribute('uin', $message->getFromUin());
Please login to merge, or discard this patch.
examples/get_groups.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
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());
Please login to merge, or discard this patch.
examples/send_message.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 use Slince\SmartQQ\Message\Request\DiscussMessage;
9 9
 use Slince\SmartQQ\Message\Content;
10 10
 
11
-include __DIR__.'/bootstrap.php';
11
+include __DIR__ . '/bootstrap.php';
12 12
 
13 13
 //创建smartQQ客户端
14 14
 $smartQQ = new Client(getCredential());
Please login to merge, or discard this patch.
examples/login_for_credential.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.