Skip to content

Commit

Permalink
Apply fixes from StyleCI (overtrue#56)
Browse files Browse the repository at this point in the history
[ci skip] [skip ci]
  • Loading branch information
overtrue authored Dec 21, 2017
1 parent 5cac24b commit 44095b4
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Contracts/MessageInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
interface MessageInterface
{
const TEXT_MESSAGE = 'text';

const VOICE_MESSAGE = 'voice';

/**
Expand Down
3 changes: 3 additions & 0 deletions src/Gateways/AlidayuGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ class AlidayuGateway extends Gateway
use HasHttpRequest;

const ENDPOINT_URL = 'https://eco.taobao.com/router/rest';

const ENDPOINT_METHOD = 'alibaba.aliqin.fc.sms.num.send';

const ENDPOINT_VERSION = '2.0';

const ENDPOINT_FORMAT = 'json';

/**
Expand Down
6 changes: 6 additions & 0 deletions src/Gateways/AliyunGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,17 @@ class AliyunGateway extends Gateway
use HasHttpRequest;

const ENDPOINT_URL = 'http://dysmsapi.aliyuncs.com';

const ENDPOINT_METHOD = 'SendSms';

const ENDPOINT_VERSION = '2017-05-25';

const ENDPOINT_FORMAT = 'JSON';

const ENDPOINT_REGION_ID = 'cn-hangzhou';

const ENDPOINT_SIGNATURE_METHOD = 'HMAC-SHA1';

const ENDPOINT_SIGNATURE_VERSION = '1.0';

/**
Expand Down
4 changes: 4 additions & 0 deletions src/Gateways/BaiduGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,13 @@ class BaiduGateway extends Gateway
use HasHttpRequest;

const ENDPOINT_HOST = 'sms.bj.baidubce.com';

const ENDPOINT_URI = '/bce/v2/message';

const BCE_AUTH_VERSION = 'bce-auth-v1';

const DEFAULT_EXPIRATION_IN_SECONDS = 1800; //签名有效期默认1800秒

const SUCCESS_CODE = 1000;

/**
Expand Down
2 changes: 2 additions & 0 deletions src/Gateways/HuyiGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ class HuyiGateway extends Gateway
use HasHttpRequest;

const ENDPOINT_URL = 'http://106.ihuyi.com/webservice/sms.php?method=Submit';

const ENDPOINT_FORMAT = 'json';

const SUCCESS_CODE = 2;

/**
Expand Down
1 change: 1 addition & 0 deletions src/Gateways/JuheGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class JuheGateway extends Gateway
use HasHttpRequest;

const ENDPOINT_URL = 'http://v.juhe.cn/sms/send';

const ENDPOINT_FORMAT = 'json';

/**
Expand Down
2 changes: 2 additions & 0 deletions src/Gateways/LuosimaoGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ class LuosimaoGateway extends Gateway
use HasHttpRequest;

const ENDPOINT_TEMPLATE = 'https://%s.luosimao.com/%s/%s.%s';

const ENDPOINT_VERSION = 'v1';

const ENDPOINT_FORMAT = 'json';

/**
Expand Down
1 change: 1 addition & 0 deletions src/Gateways/SubmailGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class SubmailGateway extends Gateway
use HasHttpRequest;

const ENDPOINT_TEMPLATE = 'https://api.mysubmail.com/message/%s.%s';

const ENDPOINT_FORMAT = 'json';

/**
Expand Down
2 changes: 2 additions & 0 deletions src/Gateways/YunpianGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ class YunpianGateway extends Gateway
use HasHttpRequest;

const ENDPOINT_TEMPLATE = 'https://%s.yunpian.com/%s/%s/%s.%s';

const ENDPOINT_VERSION = 'v2';

const ENDPOINT_FORMAT = 'json';

/**
Expand Down
6 changes: 6 additions & 0 deletions src/Gateways/YuntongxunGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,17 @@ class YuntongxunGateway extends Gateway
use HasHttpRequest;

const ENDPOINT_TEMPLATE = 'https://%s:%s/%s/%s/%s/%s/%s?sig=%s';

const SERVER_IP = 'app.cloopen.com';

const DEBUG_SERVER_IP = 'sandboxapp.cloopen.com';

const DEBUG_TEMPLATE_ID = 1;

const SERVER_PORT = '8883';

const SDK_VERSION = '2013-12-26';

const SUCCESS_CODE = '000000';

/**
Expand Down
1 change: 1 addition & 0 deletions src/Messenger.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
class Messenger
{
const STATUS_SUCCESS = 'success';

const STATUS_FAILURE = 'failure';

/**
Expand Down

0 comments on commit 44095b4

Please sign in to comment.