Completed
Push — master ( e4bb67...21b8cf )
by Taosikai
28:57 queued 13:59
created
src/Request/Request.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@
 block discarded – undo
145 145
      */
146 146
     protected function processUri($uri)
147 147
     {
148
-        return preg_replace_callback('#\{([a-zA-Z0-9_,]*)\}#i', function ($matches) {
148
+        return preg_replace_callback('#\{([a-zA-Z0-9_,]*)\}#i', function($matches) {
149 149
             return isset($this->tokens[$matches[1]]) ? $this->tokens[$matches[1]] : '';
150 150
         }, $uri);
151 151
     }
Please login to merge, or discard this patch.
src/EntityCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      */
18 18
     public function firstByAttribute($attributeName, $attributeValue)
19 19
     {
20
-        $callback = function ($entity) use ($attributeName, $attributeValue) {
20
+        $callback = function($entity) use ($attributeName, $attributeValue) {
21 21
             $method = 'get' . ucfirst($attributeName);
22 22
             return $entity->$method() == $attributeValue;
23 23
         };
Please login to merge, or discard this patch.
src/Client.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -335,7 +335,7 @@
 block discarded – undo
335 335
     /**
336 336
      * 获取好友的个性签名
337 337
      * @param Friend $friend
338
-     * @return string
338
+     * @return integer
339 339
      */
340 340
     public function getFriendLnick(Friend $friend)
341 341
     {
Please login to merge, or discard this patch.
src/Request/GetGroupDetailRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         $jsonData = \GuzzleHttp\json_decode($response->getBody(), true);
41 41
         if ($jsonData && $jsonData['retcode'] == 0) {
42 42
             //群成员的vip信息
43
-            $vipInfos  = (new Collection($jsonData['result']['vipinfo']))->combine('u', function($entity) {
43
+            $vipInfos = (new Collection($jsonData['result']['vipinfo']))->combine('u', function($entity) {
44 44
                 return $entity;
45 45
             })->toArray();
46 46
             //群成员的名片信息
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
             $members = [];
65 65
             foreach ($jsonData['result']['minfo'] as $memberData) {
66 66
                 $uin = $memberData['uin'];
67
-                $member  = EntityFactory::createEntity(GroupMember::class, [
67
+                $member = EntityFactory::createEntity(GroupMember::class, [
68 68
                     'flag' => isset($flags[$uin]) ? $flags[$uin] : null,
69 69
                     'nick' => $memberData['nick'],
70 70
                     'province' => $memberData['province'],
Please login to merge, or discard this patch.