@@ -145,7 +145,7 @@ |
||
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 | } |
@@ -17,7 +17,7 @@ |
||
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 | }; |
@@ -335,7 +335,7 @@ |
||
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 | { |
@@ -40,7 +40,7 @@ discard block |
||
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 |
||
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'], |