Completed
Push — master ( 8fa002...06ad05 )
by Taosikai
40:33 queued 25:33
created
src/Request/GetFriendsRequest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -49,19 +49,19 @@
 block discarded – undo
49 49
         //有时候获取好友接口retcode=100003时也可以获取数据,但数据不完整故当做无效返回
50 50
         if ($jsonData && 0 == $jsonData['retcode']) {
51 51
             //好友基本信息
52
-            $friendDatas = (new Collection($jsonData['result']['friends']))->combine('uin', function ($entity) {
52
+            $friendDatas = (new Collection($jsonData['result']['friends']))->combine('uin', function($entity) {
53 53
                 return $entity;
54 54
             })->toArray();
55 55
             //markNames
56
-            $markNames = (new Collection($jsonData['result']['marknames']))->combine('uin', function ($entity) {
56
+            $markNames = (new Collection($jsonData['result']['marknames']))->combine('uin', function($entity) {
57 57
                 return $entity;
58 58
             })->toArray();
59 59
             //分类
60
-            $categories = (new Collection($jsonData['result']['categories']))->combine('index', function ($entity) {
60
+            $categories = (new Collection($jsonData['result']['categories']))->combine('index', function($entity) {
61 61
                 return $entity;
62 62
             })->toArray();
63 63
             //vip信息
64
-            $vipInfos = (new Collection($jsonData['result']['vipinfo']))->combine('u', function ($entity) {
64
+            $vipInfos = (new Collection($jsonData['result']['vipinfo']))->combine('u', function($entity) {
65 65
                 return $entity;
66 66
             })->toArray();
67 67
             $friends = [];
Please login to merge, or discard this patch.
src/Request/GetLnickRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
     {
43 43
         $jsonData = \GuzzleHttp\json_decode($response->getBody(), true);
44 44
         if ($jsonData && 0 == $jsonData['retcode']) {
45
-            $info = (new Collection($jsonData['result']))->filter(function ($info) use ($friend) {
45
+            $info = (new Collection($jsonData['result']))->filter(function($info) use ($friend) {
46 46
                 return $info['uin'] == $friend->getUin();
47 47
             })->first();
48 48
 
Please login to merge, or discard this patch.
src/Request/GetDiscussDetailRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
         $jsonData = \GuzzleHttp\json_decode($response->getBody(), true);
48 48
         if ($jsonData && 0 == $jsonData['retcode']) {
49 49
             //成员在线状态
50
-            $statuses = (new Collection($jsonData['result']['mem_status']))->combine('uin', function ($entity) {
50
+            $statuses = (new Collection($jsonData['result']['mem_status']))->combine('uin', function($entity) {
51 51
                 return $entity;
52 52
             })->toArray();
53 53
             //成员基本信息
Please login to merge, or discard this patch.
src/Request/PollMessagesRequest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -129,13 +129,13 @@
 block discarded – undo
129 129
             $fontParameters['style']
130 130
         );
131 131
         unset($contents[0]);
132
-        $contentString = implode('', array_map(function ($content) {
132
+        $contentString = implode('', array_map(function($content) {
133 133
             if ($content && is_array($content) && 'face' === $content[0]) { //处理表情
134 134
                 $faceText = Content::searchFaceText($content[1]);
135 135
 
136
-                return $faceText ? '['.$faceText.']' : '';
136
+                return $faceText ? '[' . $faceText . ']' : '';
137 137
             } else {
138
-                return (string) $content;
138
+                return (string)$content;
139 139
             }
140 140
         }, $contents));
141 141
 
Please login to merge, or discard this patch.
src/Request/GetGroupDetailRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
         $jsonData = \GuzzleHttp\json_decode($response->getBody(), true);
47 47
         if ($jsonData && 0 == $jsonData['retcode']) {
48 48
             //群成员的vip信息
49
-            $vipInfos = (new Collection($jsonData['result']['vipinfo']))->combine('u', function ($entity) {
49
+            $vipInfos = (new Collection($jsonData['result']['vipinfo']))->combine('u', function($entity) {
50 50
                 return $entity;
51 51
             })->toArray();
52 52
             //群成员的名片信息, 如果全部成员都没有设置群名片则会不存在这个字段
Please login to merge, or discard this patch.
src/Client.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
         // 兼容二维码位置传参
83 83
         if (is_string($callback)) {
84 84
             /* @deprecated 后面会废除此用法,建议传闭包自己处理二维码 */
85
-            $callback = function ($qrcode) use ($callback) {
85
+            $callback = function($qrcode) use ($callback) {
86 86
                 Utils::getFilesystem()->dumpFile($callback, $qrcode);
87 87
             };
88 88
         }
Please login to merge, or discard this patch.