@@ -25,7 +25,7 @@ |
||
25 | 25 | 'opencheckindatatype' => $openCheckinDataType, |
26 | 26 | 'starttime' => $startTime, |
27 | 27 | 'endtime' => $endTime, |
28 | - 'useridlist' => (array)$userIdList, |
|
28 | + 'useridlist' => (array) $userIdList, |
|
29 | 29 | ]; |
30 | 30 | |
31 | 31 | return $this->parseJSON('json', [self::API_CHECKIN_DATA, $params]); |
@@ -71,8 +71,8 @@ |
||
71 | 71 | ServiceProviders\ShakeAroundServiceProvider::class, |
72 | 72 | ServiceProviders\StaffServiceProvider::class, |
73 | 73 | ServiceProviders\SuiteServiceProvider::class, |
74 | - ServiceProviders\FundamentalServiceProvider::class, |
|
75 | - ServiceProviders\OAServiceProvider::class, |
|
74 | + ServiceProviders\FundamentalServiceProvider::class, |
|
75 | + ServiceProviders\OAServiceProvider::class, |
|
76 | 76 | ]; |
77 | 77 | |
78 | 78 | /** |
@@ -16,7 +16,7 @@ |
||
16 | 16 | */ |
17 | 17 | public function register(Container $pimple) |
18 | 18 | { |
19 | - $pimple['oa'] = function ($pimple) { |
|
19 | + $pimple['oa'] = function($pimple) { |
|
20 | 20 | return new API($pimple['access_token']); |
21 | 21 | }; |
22 | 22 | } |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | return new Tag($pimple['access_token']); |
37 | 37 | }; |
38 | 38 | |
39 | - $batch = function ($pimple) { |
|
39 | + $batch = function ($pimple) { |
|
40 | 40 | return new Batch($pimple['access_token']); |
41 | 41 | }; |
42 | 42 | |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | $pimple['user_tag'] = $tag; |
55 | 55 | $pimple['user.tag'] = $tag; |
56 | 56 | |
57 | - $pimple['user_batch'] = $batch; |
|
57 | + $pimple['user_batch'] = $batch; |
|
58 | 58 | $pimple['user.batch'] = $batch; |
59 | 59 | } |
60 | 60 | } |
@@ -24,19 +24,19 @@ |
||
24 | 24 | */ |
25 | 25 | public function register(Container $pimple) |
26 | 26 | { |
27 | - $pimple['user'] = function ($pimple) { |
|
27 | + $pimple['user'] = function($pimple) { |
|
28 | 28 | return new User($pimple['access_token']); |
29 | 29 | }; |
30 | 30 | |
31 | - $department = function ($pimple) { |
|
31 | + $department = function($pimple) { |
|
32 | 32 | return new Department($pimple['access_token']); |
33 | 33 | }; |
34 | 34 | |
35 | - $tag = function ($pimple) { |
|
35 | + $tag = function($pimple) { |
|
36 | 36 | return new Tag($pimple['access_token']); |
37 | 37 | }; |
38 | 38 | |
39 | - $batch = function ($pimple) { |
|
39 | + $batch = function($pimple) { |
|
40 | 40 | return new Batch($pimple['access_token']); |
41 | 41 | }; |
42 | 42 |
@@ -31,11 +31,11 @@ |
||
31 | 31 | return new Web($pimple['access_token']); |
32 | 32 | }; |
33 | 33 | |
34 | - $auth_work = function ($pimple) { |
|
34 | + $auth_work = function ($pimple) { |
|
35 | 35 | return new WorkWeb($pimple['access_token']); |
36 | 36 | }; |
37 | 37 | |
38 | - $pimple['auth_work'] = $auth_work; |
|
39 | - $pimple['auth.work'] = $auth_work; |
|
38 | + $pimple['auth_work'] = $auth_work; |
|
39 | + $pimple['auth.work'] = $auth_work; |
|
40 | 40 | } |
41 | 41 | } |
@@ -23,15 +23,15 @@ |
||
23 | 23 | */ |
24 | 24 | public function register(Container $pimple) |
25 | 25 | { |
26 | - $pimple['oauth'] = function ($pimple) { |
|
26 | + $pimple['oauth'] = function($pimple) { |
|
27 | 27 | return new App($pimple['access_token']); |
28 | 28 | }; |
29 | 29 | |
30 | - $pimple['auth'] = function ($pimple) { |
|
30 | + $pimple['auth'] = function($pimple) { |
|
31 | 31 | return new Web($pimple['access_token']); |
32 | 32 | }; |
33 | 33 | |
34 | - $auth_work = function ($pimple) { |
|
34 | + $auth_work = function($pimple) { |
|
35 | 35 | return new WorkWeb($pimple['access_token']); |
36 | 36 | }; |
37 | 37 |
@@ -16,7 +16,7 @@ |
||
16 | 16 | */ |
17 | 17 | public function register(Container $pimple) |
18 | 18 | { |
19 | - $pimple['fundamental.api'] = function ($pimple) { |
|
19 | + $pimple['fundamental.api'] = function($pimple) { |
|
20 | 20 | return new API($pimple['access_token']); |
21 | 21 | }; |
22 | 22 | } |
@@ -19,7 +19,7 @@ |
||
19 | 19 | const MSG_TYPE_CARD = 'card'; // 卡券 |
20 | 20 | const MSG_TYPE_FILE = 'file'; // 文件 |
21 | 21 | const MSG_TYPE_MPNEWS = 'mpnews'; // 图文 |
22 | - const MSG_TYPE_TEXTCARD = 'textcard'; // 文本卡片 |
|
22 | + const MSG_TYPE_TEXTCARD = 'textcard'; // 文本卡片 |
|
23 | 23 | |
24 | 24 | /** |
25 | 25 | * Get message builder. |
@@ -11,13 +11,13 @@ |
||
11 | 11 | { |
12 | 12 | const API_MESSAGE_SEND = 'https://qyapi.weixin.qq.com/cgi-bin/message/send'; |
13 | 13 | |
14 | - const MSG_TYPE_TEXT = 'text'; // 文本 |
|
15 | - const MSG_TYPE_NEWS = 'news'; // 图文 |
|
16 | - const MSG_TYPE_VOICE = 'voice'; // 语音 |
|
17 | - const MSG_TYPE_IMAGE = 'image'; // 图片 |
|
18 | - const MSG_TYPE_VIDEO = 'video'; // 视频 |
|
19 | - const MSG_TYPE_CARD = 'card'; // 卡券 |
|
20 | - const MSG_TYPE_FILE = 'file'; // 文件 |
|
14 | + const MSG_TYPE_TEXT = 'text'; // 文本 |
|
15 | + const MSG_TYPE_NEWS = 'news'; // 图文 |
|
16 | + const MSG_TYPE_VOICE = 'voice'; // 语音 |
|
17 | + const MSG_TYPE_IMAGE = 'image'; // 图片 |
|
18 | + const MSG_TYPE_VIDEO = 'video'; // 视频 |
|
19 | + const MSG_TYPE_CARD = 'card'; // 卡券 |
|
20 | + const MSG_TYPE_FILE = 'file'; // 文件 |
|
21 | 21 | const MSG_TYPE_MPNEWS = 'mpnews'; // 图文 |
22 | 22 | const MSG_TYPE_TEXTCARD = 'textcard'; // 文本卡片 |
23 | 23 |
@@ -30,7 +30,7 @@ |
||
30 | 30 | $class = get_class($message); |
31 | 31 | } |
32 | 32 | |
33 | - $handle = 'transform' . substr($class, strlen('EntWeChat\Message\\')); |
|
33 | + $handle = 'transform'.substr($class, strlen('EntWeChat\Message\\')); |
|
34 | 34 | |
35 | 35 | return method_exists($this, $handle) ? $this->$handle($message) : []; |
36 | 36 | } |
@@ -68,7 +68,7 @@ |
||
68 | 68 | Broadcast::MSG_TYPE_CARD, |
69 | 69 | Broadcast::MSG_TYPE_FILE, |
70 | 70 | Broadcast::MSG_TYPE_MPNEWS, |
71 | - Broadcast::MSG_TYPE_TEXTCARD, |
|
71 | + Broadcast::MSG_TYPE_TEXTCARD, |
|
72 | 72 | ]; |
73 | 73 | |
74 | 74 | /** |