Completed
Pull Request — master (#11)
by lan tian
02:09
created
src/phpsms/agents/Agent.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,11 +61,11 @@
 block discarded – undo
61 61
 
62 62
     /**
63 63
      * http post request
64
-     * @param       $url
64
+     * @param       string $url
65 65
      * @param array $query
66 66
      * @param       $port
67 67
      *
68
-     * @return mixed
68
+     * @return string
69 69
      */
70 70
     function sockPost($url, $query, $port = 80){
71 71
         $data = "";
Please login to merge, or discard this patch.
src/phpsms/Sms.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
 
156 156
     /**
157 157
      * set content for content sms
158
-     * @param $content
158
+     * @param string $content
159 159
      *
160 160
      * @return $this
161 161
      */
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
 
269 269
     /**
270 270
      * get sms data
271
-     * @return array
271
+     * @return string|null
272 272
      */
273 273
     public function getData()
274 274
     {
Please login to merge, or discard this patch.
src/phpsms/lib/CCPRestSmsSDK.php 1 patch
Doc Comments   +9 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,6 +27,11 @@  discard block
 block discarded – undo
27 27
     private $Filename = './log.txt'; //日志文件
28 28
     private $Handle;
29 29
 
30
+    /**
31
+     * @param string $ServerIP
32
+     * @param string $ServerPort
33
+     * @param string $SoftVersion
34
+     */
30 35
     public function __construct($ServerIP, $ServerPort, $SoftVersion, $filename)
31 36
     {
32 37
         $this->Batch = date('YmdHis');
@@ -77,9 +82,9 @@  discard block
 block discarded – undo
77 82
       * @param string $url
78 83
       * @param mixed $data
79 84
       * @param mixed $header
80
-      * @param mixed $post
85
+      * @param integer $post
81 86
       *
82
-      * @return mixed
87
+      * @return string
83 88
       */
84 89
      public function curl_post($url, $data, $header, $post = 1)
85 90
      {
@@ -181,11 +186,11 @@  discard block
 block discarded – undo
181 186
      * 语音验证码
182 187
      *
183 188
      * @param mixed $verifyCode     验证码内容,为数字和英文字母,不区分大小写,长度4-8位
184
-     * @param mixed $playTimes      播放次数,1-3次
189
+     * @param integer $playTimes      播放次数,1-3次
185 190
      * @param mixed $to             接收号码
186 191
      * @param mixed $displayNum     显示的主叫号码
187 192
      * @param mixed $respUrl        语音验证码状态通知回调地址,云通讯平台将向该Url地址发送呼叫结果通知
188
-     * @param mixed $lang           语言类型
193
+     * @param string $lang           语言类型
189 194
      * @param mixed $userData       第三方私有数据
190 195
      * @param mixed $welcomePrompt  欢迎提示音,在播放验证码语音前播放此内容(语音文件格式为wav)
191 196
      * @param mixed $playVerifyCode 语音验证码的内容全部播放此节点下的全部语音文件
Please login to merge, or discard this patch.