Completed
Pull Request — master (#62)
by lan tian
08:10
created
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.
src/phpsms/agents/Agent.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -72,11 +72,11 @@  discard block
 block discarded – undo
72 72
      *
73 73
      * @codeCoverageIgnore
74 74
      *
75
-     * @param       $url
75
+     * @param       string $url
76 76
      * @param array $query
77 77
      * @param       $port
78 78
      *
79
-     * @return mixed
79
+     * @return string
80 80
      */
81 81
     public function sockPost($url, $query, $port = 80)
82 82
     {
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
      *
113 113
      * @param string   $url    [请求的URL地址]
114 114
      * @param array    $params [请求的参数]
115
-     * @param int|bool $isPost [是否采用POST形式]
115
+     * @param boolean $isPost [是否采用POST形式]
116 116
      *
117 117
      * @return array ['request', 'response']
118 118
      *               request:是否请求成功
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
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
      * Pull the value out of the specified array by key.
279 279
      *
280 280
      * @param array      $options
281
-     * @param int|string $key
281
+     * @param string $key
282 282
      *
283 283
      * @return mixed
284 284
      */
@@ -665,7 +665,7 @@  discard block
 block discarded – undo
665 665
     /**
666 666
      * Serialize magic method.
667 667
      *
668
-     * @return array
668
+     * @return string[]
669 669
      */
670 670
     public function __sleep()
671 671
     {
Please login to merge, or discard this patch.