Completed
Pull Request — master (#137)
by
unknown
23:45
created
src/phpsms/PhpSmsServiceProvider.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
     /**
55 55
      * Get the services provided by the provider.
56 56
      *
57
-     * @return array
57
+     * @return string[]
58 58
      */
59 59
     public function provides()
60 60
     {
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
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      * Get or set the configuration information.
57 57
      *
58 58
      * @param string|array $key
59
-     * @param mixed        $value
59
+     * @param boolean        $value
60 60
      * @param bool         $override
61 61
      *
62 62
      * @return mixed
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      * Get or set the custom params.
75 75
      *
76 76
      * @param string|array $key
77
-     * @param mixed        $value
77
+     * @param boolean        $value
78 78
      * @param bool         $override
79 79
      *
80 80
      * @return mixed
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
     /**
160 160
      * @codeCoverageIgnore
161 161
      *
162
-     * @param       $url
162
+     * @param       string $url
163 163
      * @param array $params
164 164
      * @param array $opts
165 165
      *
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
@@ -24,6 +24,11 @@  discard block
 block discarded – undo
24 24
     private $Batch;  //时间戳
25 25
     private $BodyType = 'xml'; //包体格式,可填值:json 、xml
26 26
 
27
+    /**
28
+     * @param string $ServerIP
29
+     * @param string $ServerPort
30
+     * @param string $SoftVersion
31
+     */
27 32
     public function __construct($ServerIP, $ServerPort, $SoftVersion, $BodyType = 'xml')
28 33
     {
29 34
         $this->Batch = date('YmdHis');
@@ -63,9 +68,9 @@  discard block
 block discarded – undo
63 68
       * @param string $url
64 69
       * @param mixed $data
65 70
       * @param mixed $header
66
-      * @param mixed $post
71
+      * @param integer $post
67 72
       *
68
-      * @return mixed
73
+      * @return string
69 74
       */
70 75
      public function curl_post($url, $data, $header, $post = 1)
71 76
      {
@@ -161,9 +166,9 @@  discard block
 block discarded – undo
161 166
      * 语音验证码
162 167
      *
163 168
      * @param mixed $verifyCode     验证码内容,为数字和英文字母,不区分大小写,长度4-8位
164
-     * @param mixed $playTimes      播放次数,1-3次
169
+     * @param integer $playTimes      播放次数,1-3次
165 170
      * @param mixed $to             接收号码
166
-     * @param mixed $displayNum     显示的主叫号码
171
+     * @param string|null $displayNum     显示的主叫号码
167 172
      * @param mixed $respUrl        语音验证码状态通知回调地址,云通讯平台将向该Url地址发送呼叫结果通知
168 173
      * @param mixed $lang           语言类型
169 174
      * @param mixed $userData       第三方私有数据
Please login to merge, or discard this patch.
src/phpsms/Sms.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
      * Set or get the dispatch scheme.
315 315
      *
316 316
      * @param string|array|null      $name
317
-     * @param string|array|bool|null $scheme
317
+     * @param boolean $scheme
318 318
      * @param bool                   $override
319 319
      *
320 320
      * @return mixed
@@ -519,7 +519,7 @@  discard block
 block discarded – undo
519 519
     /**
520 520
      * Set the type of Sms instance.
521 521
      *
522
-     * @param $type
522
+     * @param integer $type
523 523
      *
524 524
      * @throws PhpSmsException
525 525
      *
@@ -772,7 +772,7 @@  discard block
 block discarded – undo
772 772
     /**
773 773
      * Serialize magic method.
774 774
      *
775
-     * @return array
775
+     * @return string[]
776 776
      */
777 777
     public function __sleep()
778 778
     {
Please login to merge, or discard this patch.