@@ -55,7 +55,7 @@ |
||
| 55 | 55 | $json = Json::decode(Strings::partBetween($result, 'portraitCallBack(', ')')); |
| 56 | 56 | $this->_result['nickname'] = Charset::toUtf(I::get($json, $this->_qq . '.6'), 'GBK'); |
| 57 | 57 | } |
| 58 | - $this->_result['portrait'] = 'https://q2.qlogo.cn/headimg_dl?dst_uin='.$this->_qq.'&spec='. I::get($config, 'spec', 3); |
|
| 58 | + $this->_result['portrait'] = 'https://q2.qlogo.cn/headimg_dl?dst_uin=' . $this->_qq . '&spec=' . I::get($config, 'spec', 3); |
|
| 59 | 59 | |
| 60 | 60 | return $this; |
| 61 | 61 | } |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | if (is_array($error)) { |
| 67 | 67 | return $error; |
| 68 | 68 | } |
| 69 | - throw new Exception((string) $error); |
|
| 69 | + throw new Exception((string)$error); |
|
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | /** |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | if (null === $this->_toArrayCall) { |
| 90 | 90 | return $result; |
| 91 | 91 | } |
| 92 | - return (array) I::call($this->_toArrayCall, [$result]); |
|
| 92 | + return (array)I::call($this->_toArrayCall, [$result]); |
|
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | /** |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | 'query' => $number, |
| 32 | 32 | 'oe' => 'utf8', |
| 33 | 33 | ]), 'data.0', []); |
| 34 | - $this->_toArrayCall = function ($array) { |
|
| 34 | + $this->_toArrayCall = function($array) { |
|
| 35 | 35 | return [ |
| 36 | 36 | 'province' => I::get($array, 'prov'), |
| 37 | 37 | 'city' => I::get($array, 'city'), |