From c6c77197e83ea83f9e520795601c206f5b3ad076 Mon Sep 17 00:00:00 2001 From: guanguans Date: Sun, 11 Sep 2022 16:33:01 +0000 Subject: [PATCH] Fix styling --- src/Factory.php | 52 +++++++++++++++++----------------- tests/Feature/ChanifyTest.php | 8 +++--- tests/Feature/DingTalkTest.php | 12 ++++---- tests/Feature/WeWorkTest.php | 4 +-- 4 files changed, 38 insertions(+), 38 deletions(-) diff --git a/src/Factory.php b/src/Factory.php index 3ddb2b48..8f45fc6c 100644 --- a/src/Factory.php +++ b/src/Factory.php @@ -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 { diff --git a/tests/Feature/ChanifyTest.php b/tests/Feature/ChanifyTest.php index db2ce585..5b4ab01c 100644 --- a/tests/Feature/ChanifyTest.php +++ b/tests/Feature/ChanifyTest.php @@ -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.', @@ -32,7 +32,7 @@ public function testText() // 'autocopy' => 0, // 'sound' => 0, // 'priority' => 10, - ]))) + ])) ->send(); } @@ -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(); } } diff --git a/tests/Feature/DingTalkTest.php b/tests/Feature/DingTalkTest.php index 647eb9e2..07daebd0 100644 --- a/tests/Feature/DingTalkTest.php +++ b/tests/Feature/DingTalkTest.php @@ -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']; @@ -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']; @@ -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']; diff --git a/tests/Feature/WeWorkTest.php b/tests/Feature/WeWorkTest.php index e0776f0f..43efcbc8 100644 --- a/tests/Feature/WeWorkTest.php +++ b/tests/Feature/WeWorkTest.php @@ -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'];