Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
guanguans authored and github-actions[bot] committed Sep 11, 2022
1 parent 5f19ba8 commit c6c7719
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 38 deletions.
52 changes: 26 additions & 26 deletions src/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,32 +15,32 @@
/**
* Class Factory.
*
* @method static \Guanguans\Notify\Clients\BarkClient bark(array $options = [])
* @method static \Guanguans\Notify\Clients\ChanifyClient chanify(array $options = [])
* @method static \Guanguans\Notify\Clients\DingTalkClient dingTalk(array $options = [])
* @method static \Guanguans\Notify\Clients\DiscordClient discord(array $options = [])
* @method static \Guanguans\Notify\Clients\FeiShuClient feiShu(array $options = [])
* @method static \Guanguans\Notify\Clients\GitterClient gitter(array $options = [])
* @method static \Guanguans\Notify\Clients\GoogleChatClient googleChat(array $options = [])
* @method static \Guanguans\Notify\Clients\IGotClient iGot(array $options = [])
* @method static \Guanguans\Notify\Clients\LoggerClient logger(array $options = [])
* @method static \Guanguans\Notify\Clients\MailerClient mailer(array $options = [])
* @method static \Guanguans\Notify\Clients\MattermostClient mattermost(array $options = [])
* @method static \Guanguans\Notify\Clients\NowPushClient nowPush(array $options = [])
* @method static \Guanguans\Notify\Clients\PushBackClient pushBack(array $options = [])
* @method static \Guanguans\Notify\Clients\PushClient push(array $options = [])
* @method static \Guanguans\Notify\Clients\PushDeerClient pushDeer(array $options = [])
* @method static \Guanguans\Notify\Clients\PushPlusClient pushPlus(array $options = [])
* @method static \Guanguans\Notify\Clients\QqChannelBotClient qqChannelBot(array $options = [])
* @method static \Guanguans\Notify\Clients\RocketChatClient rocketChat(array $options = [])
* @method static \Guanguans\Notify\Clients\ServerChanClient serverChan(array $options = [])
* @method static \Guanguans\Notify\Clients\ShowdocPushClient showdocPush(array $options = [])
* @method static \Guanguans\Notify\Clients\TelegramClient telegram(array $options = [])
* @method static \Guanguans\Notify\Clients\SlackClient slack(array $options = [])
* @method static \Guanguans\Notify\Clients\WebhookClient webhook(array $options = [])
* @method static \Guanguans\Notify\Clients\WeWorkClient weWork(array $options = [])
* @method static \Guanguans\Notify\Clients\XiZhiClient xiZhi(array $options = [])
* @method static \Guanguans\Notify\Clients\ZulipClient zulip(array $options = [])
* @method static \Guanguans\Notify\Clients\BarkClient bark(array $options = [])
* @method static \Guanguans\Notify\Clients\ChanifyClient chanify(array $options = [])
* @method static \Guanguans\Notify\Clients\DingTalkClient dingTalk(array $options = [])
* @method static \Guanguans\Notify\Clients\DiscordClient discord(array $options = [])
* @method static \Guanguans\Notify\Clients\FeiShuClient feiShu(array $options = [])
* @method static \Guanguans\Notify\Clients\GitterClient gitter(array $options = [])
* @method static \Guanguans\Notify\Clients\GoogleChatClient googleChat(array $options = [])
* @method static \Guanguans\Notify\Clients\IGotClient iGot(array $options = [])
* @method static \Guanguans\Notify\Clients\LoggerClient logger(array $options = [])
* @method static \Guanguans\Notify\Clients\MailerClient mailer(array $options = [])
* @method static \Guanguans\Notify\Clients\MattermostClient mattermost(array $options = [])
* @method static \Guanguans\Notify\Clients\NowPushClient nowPush(array $options = [])
* @method static \Guanguans\Notify\Clients\PushBackClient pushBack(array $options = [])
* @method static \Guanguans\Notify\Clients\PushClient push(array $options = [])
* @method static \Guanguans\Notify\Clients\PushDeerClient pushDeer(array $options = [])
* @method static \Guanguans\Notify\Clients\PushPlusClient pushPlus(array $options = [])
* @method static \Guanguans\Notify\Clients\QqChannelBotClient qqChannelBot(array $options = [])
* @method static \Guanguans\Notify\Clients\RocketChatClient rocketChat(array $options = [])
* @method static \Guanguans\Notify\Clients\ServerChanClient serverChan(array $options = [])
* @method static \Guanguans\Notify\Clients\ShowdocPushClient showdocPush(array $options = [])
* @method static \Guanguans\Notify\Clients\TelegramClient telegram(array $options = [])
* @method static \Guanguans\Notify\Clients\SlackClient slack(array $options = [])
* @method static \Guanguans\Notify\Clients\WebhookClient webhook(array $options = [])
* @method static \Guanguans\Notify\Clients\WeWorkClient weWork(array $options = [])
* @method static \Guanguans\Notify\Clients\XiZhiClient xiZhi(array $options = [])
* @method static \Guanguans\Notify\Clients\ZulipClient zulip(array $options = [])
*/
class Factory
{
Expand Down
8 changes: 4 additions & 4 deletions tests/Feature/ChanifyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function testText()

Factory::chanify()
->setToken('CIDfh4gGEiJBQVdIWlVKS1JORVY0UlVETFZYVVpRTlNLTlVZVlZPT1JFGhR7vAyf8Uj5UQhhK4n6QfVzih96QyIECAEQAQ.E0eBnLbfNwWrWZ1YSAZfkCQWZAPdBl6pVr26lRf6')
->setMessage((new \Guanguans\Notify\Messages\Chanify\TextMessage([
->setMessage(new \Guanguans\Notify\Messages\Chanify\TextMessage([
'title' => 'This is title.',
'text' => 'This is text.',
// 'copy' => 'This is copy.',
Expand All @@ -32,7 +32,7 @@ public function testText()
// 'autocopy' => 0,
// 'sound' => 0,
// 'priority' => 10,
])))
]))
->send();
}

Expand All @@ -42,11 +42,11 @@ public function testLink()

Factory::chanify()
->setToken('CIDfh4gGEiJBQVdIWlVKS1JORVY0UlVETFZYVVpRTlNLTlVZVlZPT1JFGhR7vAyf8Uj5UQhhK4n6QfVzih96QyIECAEQAQ.E0eBnLbfNwWrWZ1YSAZfkCQWZAPdBl6pVr26lRf6')
->setMessage((new \Guanguans\Notify\Messages\Chanify\LinkMessage([
->setMessage(new \Guanguans\Notify\Messages\Chanify\LinkMessage([
'link' => 'https://github.com/guanguans/notify',
// 'sound' => 0,
// 'priority' => 10,
])))
]))
->send();
}
}
12 changes: 6 additions & 6 deletions tests/Feature/DingTalkTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ public function testText()
$ret = Factory::dingTalk()
->setToken('c44fec1ddaa8a833156efb77b7865d62ae13775418030d94d05da08bfca73e')
->setSecret('SECc32bb7345c0f73da2b9786f0f7dd5083bd768a29b82e6d460149d730eee517')
->setMessage((new \Guanguans\Notify\Messages\DingTalk\TextMessage([
->setMessage(new \Guanguans\Notify\Messages\DingTalk\TextMessage([
'content' => 'This is content(keyword).',
// 'atMobiles' => [13948484984],
// 'atDingtalkIds' => [123456],
// 'isAtAll' => false,
])))
]))
->send();

echo $ret['errcode'];
Expand All @@ -42,12 +42,12 @@ public function testLink()
$ret = Factory::dingTalk()
->setToken('c44fec1ddaa8a833156efb77b7865d62ae13775418030d94d05da08bfca73e')
->setSecret('SECc32bb7345c0f73da2b9786f0f7dd5083bd768a29b82e6d460149d730eee517')
->setMessage((new \Guanguans\Notify\Messages\DingTalk\LinkMessage([
->setMessage(new \Guanguans\Notify\Messages\DingTalk\LinkMessage([
'title' => 'This is content.',
'text' => 'This is text(keyword).',
'messageUrl' => 'https://github.com/guanguans/notify',
'picUrl' => 'https://avatars.githubusercontent.com/u/22309277?v=4',
])))
]))
->send();

echo $ret['errcode'];
Expand All @@ -61,13 +61,13 @@ public function testMarkdown()
$ret = Factory::dingTalk()
->setToken('c44fec1ddaa8a833156efb77b7865d62ae13775418030d94d05da08bfca73e')
->setSecret('SECc32bb7345c0f73da2b9786f0f7dd5083bd768a29b82e6d460149d730eee517')
->setMessage((new \Guanguans\Notify\Messages\DingTalk\MarkdownMessage([
->setMessage(new \Guanguans\Notify\Messages\DingTalk\MarkdownMessage([
'title' => 'This is title.',
'text' => '> This is text(keyword).',
// 'atMobiles' => [13948484984],
// 'atDingtalkIds' => [123456],
// 'isAtAll' => false,
])))
]))
->send();

echo $ret['errcode'];
Expand Down
4 changes: 2 additions & 2 deletions tests/Feature/WeWorkTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ public function testText()

$ret = Factory::weWork()
->setToken('73a3d5a3-ceff-4da8-bcf3-ff5891778f')
->setMessage((new \Guanguans\Notify\Messages\WeWork\TextMessage([
->setMessage(new \Guanguans\Notify\Messages\WeWork\TextMessage([
'content' => 'This is content.',
// 'mentioned_list' => ["wangqing", "@all"],
// 'mentioned_mobile_list' => ["13800001111", "@all"],
])))
]))
->send();

echo $ret['errcode'];
Expand Down

0 comments on commit c6c7719

Please sign in to comment.